Commit fb251a7b authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] simplify ES7000 IRQ re-naming scheme

so that it works for all PCI interrupts.
Signed-off-by: default avatarNatalie Protasevich <Natalie.Protasevich@UNISYS.com>
Signed-off-by: default avatarLen Brown <Len.Brown@intel.com>
parent e5f49722
...@@ -996,6 +996,12 @@ void __init mp_config_acpi_legacy_irqs (void) ...@@ -996,6 +996,12 @@ void __init mp_config_acpi_legacy_irqs (void)
mp_bus_id_to_type[MP_ISA_BUS] = MP_BUS_ISA; mp_bus_id_to_type[MP_ISA_BUS] = MP_BUS_ISA;
Dprintk("Bus #%d is ISA\n", MP_ISA_BUS); Dprintk("Bus #%d is ISA\n", MP_ISA_BUS);
/*
* ES7000 has no legacy identity mappings
*/
if (es7000_plat)
return;
/* /*
* Locate the IOAPIC that manages the ISA IRQs (0-15). * Locate the IOAPIC that manages the ISA IRQs (0-15).
*/ */
......
...@@ -51,28 +51,30 @@ struct mip_reg *host_reg; ...@@ -51,28 +51,30 @@ struct mip_reg *host_reg;
int mip_port; int mip_port;
unsigned long mip_addr, host_addr; unsigned long mip_addr, host_addr;
static int __init #if defined(CONFIG_X86_IO_APIC) && (defined(CONFIG_ACPI_INTERPRETER) || defined(CONFIG_ACPI_BOOT))
/*
* GSI override for ES7000 platforms.
*/
static unsigned int base;
static int
es7000_rename_gsi(int ioapic, int gsi) es7000_rename_gsi(int ioapic, int gsi)
{ {
if (ioapic) if (!base) {
return gsi; int i;
else { for (i = 0; i < nr_ioapics; i++)
if (gsi == 0) base += nr_ioapic_registers[i];
return 13; }
if (gsi == 1)
return 16; if (!ioapic && (gsi < 16))
if (gsi == 4) gsi += base;
return 17; return gsi;
if (gsi == 6)
return 18;
if (gsi == 7)
return 19;
if (gsi == 8)
return 20;
return gsi;
}
} }
#endif // (CONFIG_X86_IO_APIC) && (CONFIG_ACPI_INTERPRETER || CONFIG_ACPI_BOOT)
/* /*
* Parse the OEM Table * Parse the OEM Table
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment