diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-08 01:10:01 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-08 01:11:58 -0400 |
commit | 25f1f6f830282a667927dfefb5b91e72a5e69e6e (patch) | |
tree | 62cb53d51cc046298ee1a8fc807343d05b27d10a /src/sys/include | |
parent | a68110d699aec9cb593f217674ec2476019a095b (diff) |
Introduce a helper function to convert legacy ISA IRQ numbers to the GSI
numbers assigned to an I/O APIC pin
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/arch/amd64/ioapic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/include/arch/amd64/ioapic.h b/src/sys/include/arch/amd64/ioapic.h index 20b8058..c0d935e 100644 --- a/src/sys/include/arch/amd64/ioapic.h +++ b/src/sys/include/arch/amd64/ioapic.h @@ -49,6 +49,13 @@ void ioapic_init(void); void ioapic_gsi_mask(uint8_t gsi, uint8_t mask); /* + * Convert an ISA IRQ number into a global system + * interrupt, returnes a less than zero value on + * failure. + */ +int ioapic_get_gsi(uint8_t irq); + +/* * Route an IRQ number to a system interrupt vector * via the internal redirection table * |