mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43: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
37
hw/tcx.c
37
hw/tcx.c
|
@ -638,20 +638,29 @@ static void tcx24_screen_dump(void *opaque, const char *filename)
|
|||
return;
|
||||
}
|
||||
|
||||
static SysBusDeviceInfo tcx_info = {
|
||||
.init = tcx_init1,
|
||||
.qdev.name = "SUNW,tcx",
|
||||
.qdev.size = sizeof(TCXState),
|
||||
.qdev.reset = tcx_reset,
|
||||
.qdev.vmsd = &vmstate_tcx,
|
||||
.qdev.props = (Property[]) {
|
||||
DEFINE_PROP_TADDR("addr", TCXState, addr, -1),
|
||||
DEFINE_PROP_HEX32("vram_size", TCXState, vram_size, -1),
|
||||
DEFINE_PROP_UINT16("width", TCXState, width, -1),
|
||||
DEFINE_PROP_UINT16("height", TCXState, height, -1),
|
||||
DEFINE_PROP_UINT16("depth", TCXState, depth, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
static Property tcx_properties[] = {
|
||||
DEFINE_PROP_TADDR("addr", TCXState, addr, -1),
|
||||
DEFINE_PROP_HEX32("vram_size", TCXState, vram_size, -1),
|
||||
DEFINE_PROP_UINT16("width", TCXState, width, -1),
|
||||
DEFINE_PROP_UINT16("height", TCXState, height, -1),
|
||||
DEFINE_PROP_UINT16("depth", TCXState, depth, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void tcx_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = tcx_init1;
|
||||
}
|
||||
|
||||
static DeviceInfo tcx_info = {
|
||||
.name = "SUNW,tcx",
|
||||
.size = sizeof(TCXState),
|
||||
.reset = tcx_reset,
|
||||
.vmsd = &vmstate_tcx,
|
||||
.props = tcx_properties,
|
||||
.class_init = tcx_class_init,
|
||||
};
|
||||
|
||||
static void tcx_register_devices(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue