aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/acpi/boot.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index cd40aba6aa95..da718d672596 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -458,6 +458,14 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
458 return 0; 458 return 0;
459} 459}
460 460
461int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi)
462{
463 if (isa_irq >= 16)
464 return -1;
465 *gsi = isa_irq;
466 return 0;
467}
468
461/* 469/*
462 * success: return IRQ number (>=0) 470 * success: return IRQ number (>=0)
463 * failure: return < 0 471 * failure: return < 0