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)
mp_bus_id_to_type[MP_ISA_BUS] = MP_BUS_ISA;
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).
*/
......
......@@ -51,28 +51,30 @@ struct mip_reg *host_reg;
int mip_port;
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)
{
if (ioapic)
return gsi;
else {
if (gsi == 0)
return 13;
if (gsi == 1)
return 16;
if (gsi == 4)
return 17;
if (gsi == 6)
return 18;
if (gsi == 7)
return 19;
if (gsi == 8)
return 20;
return gsi;
if (!base) {
int i;
for (i = 0; i < nr_ioapics; i++)
base += nr_ioapic_registers[i];
}
if (!ioapic && (gsi < 16))
gsi += base;
return gsi;
}
#endif // (CONFIG_X86_IO_APIC) && (CONFIG_ACPI_INTERPRETER || CONFIG_ACPI_BOOT)
/*
* 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