misc/pca955*: Move models under hw/gpio
[qemu/kevin.git] / hw / isa / fdc37m81x-superio.c
blob55e91fbca17f9043a75e0899a23573ef0a30aa4f
1 /*
2 * SMS FDC37M817 Super I/O
4 * Copyright (c) 2018 Philippe Mathieu-Daudé
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #include "qemu/osdep.h"
12 #include "hw/isa/superio.h"
14 static void fdc37m81x_class_init(ObjectClass *klass, void *data)
16 ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass);
18 sc->serial.count = 2; /* NS16C550A */
19 sc->parallel.count = 1;
20 sc->floppy.count = 1; /* SMSC 82077AA Compatible */
21 sc->ide.count = 0;
24 static const TypeInfo types[] = {
26 .name = TYPE_FDC37M81X_SUPERIO,
27 .parent = TYPE_ISA_SUPERIO,
28 .class_init = fdc37m81x_class_init,
32 DEFINE_TYPES(types)