mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -139,16 +139,23 @@ static DeviceInfo grackle_pci_info = {
|
|||
.class_init = grackle_pci_class_init,
|
||||
};
|
||||
|
||||
static SysBusDeviceInfo grackle_pci_host_info = {
|
||||
.qdev.name = "grackle-pcihost",
|
||||
.qdev.size = sizeof(GrackleState),
|
||||
.qdev.no_user = 1,
|
||||
.init = pci_grackle_init_device,
|
||||
static void pci_grackle_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = pci_grackle_init_device;
|
||||
}
|
||||
|
||||
static DeviceInfo grackle_pci_host_info = {
|
||||
.name = "grackle-pcihost",
|
||||
.size = sizeof(GrackleState),
|
||||
.no_user = 1,
|
||||
.class_init = pci_grackle_class_init,
|
||||
};
|
||||
|
||||
static void grackle_register_devices(void)
|
||||
{
|
||||
sysbus_register_withprop(&grackle_pci_host_info);
|
||||
sysbus_qdev_register(&grackle_pci_host_info);
|
||||
pci_qdev_register(&grackle_pci_info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue