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