|
@@ -197,15 +197,6 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev, bool aux)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
|
|
-{
|
|
|
|
- PCIDevice *dev;
|
|
|
|
-
|
|
|
|
- dev = pci_create_simple(bus, devfn, "piix3-ide-xen");
|
|
|
|
- pci_ide_create_devs(dev, hd_table);
|
|
|
|
- return dev;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void pci_piix_ide_exitfn(PCIDevice *dev)
|
|
static void pci_piix_ide_exitfn(PCIDevice *dev)
|
|
{
|
|
{
|
|
PCIIDEState *d = PCI_IDE(dev);
|
|
PCIIDEState *d = PCI_IDE(dev);
|
|
@@ -217,17 +208,6 @@ static void pci_piix_ide_exitfn(PCIDevice *dev)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-/* hd_table must contain 4 block drivers */
|
|
|
|
-/* NOTE: for the PIIX3, the IRQs and IOports are hardcoded */
|
|
|
|
-PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
|
|
-{
|
|
|
|
- PCIDevice *dev;
|
|
|
|
-
|
|
|
|
- dev = pci_create_simple(bus, devfn, "piix3-ide");
|
|
|
|
- pci_ide_create_devs(dev, hd_table);
|
|
|
|
- return dev;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/* hd_table must contain 4 block drivers */
|
|
/* hd_table must contain 4 block drivers */
|
|
/* NOTE: for the PIIX4, the IRQs and IOports are hardcoded */
|
|
/* NOTE: for the PIIX4, the IRQs and IOports are hardcoded */
|
|
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
@@ -239,6 +219,7 @@ PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
return dev;
|
|
return dev;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/* NOTE: for the PIIX3, the IRQs and IOports are hardcoded */
|
|
static void piix3_ide_class_init(ObjectClass *klass, void *data)
|
|
static void piix3_ide_class_init(ObjectClass *klass, void *data)
|
|
{
|
|
{
|
|
DeviceClass *dc = DEVICE_CLASS(klass);
|
|
DeviceClass *dc = DEVICE_CLASS(klass);
|