mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
sysbus: apic: ioapic: convert to QEMU Object Model
This converts three devices because apic and ioapic are subclasses of sysbus. Converting subclasses independently of their base class is prohibitively hard. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
40021f0888
commit
999e12bbe8
131 changed files with 2734 additions and 1297 deletions
29
hw/lan9118.c
29
hw/lan9118.c
|
@ -1238,16 +1238,25 @@ static int lan9118_init1(SysBusDevice *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static SysBusDeviceInfo lan9118_info = {
|
||||
.init = lan9118_init1,
|
||||
.qdev.name = "lan9118",
|
||||
.qdev.size = sizeof(lan9118_state),
|
||||
.qdev.reset = lan9118_reset,
|
||||
.qdev.vmsd = &vmstate_lan9118,
|
||||
.qdev.props = (Property[]) {
|
||||
DEFINE_NIC_PROPERTIES(lan9118_state, conf),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
static Property lan9118_properties[] = {
|
||||
DEFINE_NIC_PROPERTIES(lan9118_state, conf),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void lan9118_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = lan9118_init1;
|
||||
}
|
||||
|
||||
static DeviceInfo lan9118_info = {
|
||||
.name = "lan9118",
|
||||
.size = sizeof(lan9118_state),
|
||||
.reset = lan9118_reset,
|
||||
.vmsd = &vmstate_lan9118,
|
||||
.props = lan9118_properties,
|
||||
.class_init = lan9118_class_init,
|
||||
};
|
||||
|
||||
static void lan9118_register_devices(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue