xref: /openbmc/qemu/hw/isa/fdc37m81x-superio.c (revision 33a24910)
1 /*
2  * SMS FDC37M817 Super I/O
3  *
4  * Copyright (c) 2018 Philippe Mathieu-Daudé
5  *
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  */
10 
11 #include "qemu/osdep.h"
12 #include "hw/isa/superio.h"
13 
14 static void fdc37m81x_class_init(ObjectClass *klass, void *data)
15 {
16     ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass);
17 
18     sc->serial.count = 2; /* NS16C550A */
19     sc->parallel.count = 1;
20     sc->floppy.count = 1; /* SMSC 82077AA Compatible */
21     sc->ide.count = 0;
22 }
23 
24 static const TypeInfo types[] = {
25     {
26         .name          = TYPE_FDC37M81X_SUPERIO,
27         .parent        = TYPE_ISA_SUPERIO,
28         .class_init    = fdc37m81x_class_init,
29     },
30 };
31 
32 DEFINE_TYPES(types)
33