mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
hvmloader: Fix acpi static tables for new ACPI ioports location.
This change some fadt values -- the address of the acpi ioports -- and the pm1a_evt_address value wrote for the pci bus. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
1 parent
cb6c757fa4
commit
e0dbccc8fe
2 files changed
+9
-9
No files matched your search
@@ -56,14 +56,14 @@ struct acpi_20_fadt Fadt = {
|
||||
|
||||
.sci_int = 9,
|
||||
|
||||
.pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS,
|
||||
.pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS,
|
||||
.pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS,
|
||||
.gpe0_blk = ACPI_GPE0_BLK_ADDRESS,
|
||||
.pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS_V1,
|
||||
.pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS_V1,
|
||||
.pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS_V1,
|
||||
.gpe0_blk = ACPI_GPE0_BLK_ADDRESS_V1,
|
||||
.pm1_evt_len = ACPI_PM1A_EVT_BLK_BIT_WIDTH / 8,
|
||||
.pm1_cnt_len = ACPI_PM1A_CNT_BLK_BIT_WIDTH / 8,
|
||||
.pm_tmr_len = ACPI_PM_TMR_BLK_BIT_WIDTH / 8,
|
||||
.gpe0_blk_len = ACPI_GPE0_BLK_LEN,
|
||||
.gpe0_blk_len = ACPI_GPE0_BLK_LEN_V1,
|
||||
|
||||
.p_lvl2_lat = 0x0fff, /* >100, means we do not support C2 state */
|
||||
.p_lvl3_lat = 0x0fff, /* >1000, means we do not support C3 state */
|
||||
@@ -85,21 +85,21 @@ struct acpi_20_fadt Fadt = {
|
||||
.address_space_id = ACPI_SYSTEM_IO,
|
||||
.register_bit_width = ACPI_PM1A_EVT_BLK_BIT_WIDTH,
|
||||
.register_bit_offset = ACPI_PM1A_EVT_BLK_BIT_OFFSET,
|
||||
.address = ACPI_PM1A_EVT_BLK_ADDRESS,
|
||||
.address = ACPI_PM1A_EVT_BLK_ADDRESS_V1,
|
||||
},
|
||||
|
||||
.x_pm1a_cnt_blk = {
|
||||
.address_space_id = ACPI_SYSTEM_IO,
|
||||
.register_bit_width = ACPI_PM1A_CNT_BLK_BIT_WIDTH,
|
||||
.register_bit_offset = ACPI_PM1A_CNT_BLK_BIT_OFFSET,
|
||||
.address = ACPI_PM1A_CNT_BLK_ADDRESS,
|
||||
.address = ACPI_PM1A_CNT_BLK_ADDRESS_V1,
|
||||
},
|
||||
|
||||
.x_pm_tmr_blk = {
|
||||
.address_space_id = ACPI_SYSTEM_IO,
|
||||
.register_bit_width = ACPI_PM_TMR_BLK_BIT_WIDTH,
|
||||
.register_bit_offset = ACPI_PM_TMR_BLK_BIT_OFFSET,
|
||||
.address = ACPI_PM_TMR_BLK_ADDRESS,
|
||||
.address = ACPI_PM_TMR_BLK_ADDRESS_V1,
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ static void pci_setup(void)
|
||||
pci_writew(devfn, 0x22, 0x0000);
|
||||
pci_writew(devfn, 0x3c, 0x0009); /* Hardcoded IRQ9 */
|
||||
pci_writew(devfn, 0x3d, 0x0001);
|
||||
pci_writel(devfn, 0x40, ACPI_PM1A_EVT_BLK_ADDRESS | 1);
|
||||
pci_writel(devfn, 0x40, ACPI_PM1A_EVT_BLK_ADDRESS_V1 | 1);
|
||||
pci_writeb(devfn, 0x80, 0x01); /* enable PM io space */
|
||||
break;
|
||||
case 0x0101:
|
||||
|
||||