mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[qemu] HVM acpi port init update.
Removed the acpi port depency on USB exist. Based on a patch from: Winston Wang <winston.l.wang@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
This commit is contained in:
1 parent
559b3dff6d
commit
54ec6e3d26
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -877,14 +877,14 @@ static void pc_init1(uint64_t ram_size, int vga_ram_size, int boot_device,
|
||||
|
||||
cmos_init(ram_size, boot_device, bs_table, timeoffset);
|
||||
|
||||
/* using PIIX4 acpi model */
|
||||
if (pci_enabled && acpi_enabled)
|
||||
pci_piix4_acpi_init(pci_bus, piix3_devfn + 3);
|
||||
|
||||
if (pci_enabled && usb_enabled) {
|
||||
usb_uhci_init(pci_bus, piix3_devfn + 2);
|
||||
}
|
||||
|
||||
/* using PIIX4 acpi model */
|
||||
if (pci_enabled && acpi_enabled)
|
||||
pci_piix4_acpi_init(pci_bus, piix3_devfn + (usb_enabled ? 3 : 2));
|
||||
|
||||
#ifndef CONFIG_DM
|
||||
if (pci_enabled && acpi_enabled) {
|
||||
piix4_pm_init(pci_bus, piix3_devfn + 3);
|
||||
|
||||
@@ -380,7 +380,7 @@ void pci_piix4_acpi_init(PCIBus *bus, int devfn)
|
||||
PCIAcpiState *d;
|
||||
uint8_t *pci_conf;
|
||||
|
||||
/* register a function 3 of PIIX4 */
|
||||
/* register a function devfn of PIIX4 */
|
||||
d = (PCIAcpiState *)pci_register_device(
|
||||
bus, "PIIX4 ACPI", sizeof(PCIAcpiState),
|
||||
devfn, NULL, NULL);
|
||||
|
||||