diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 11:46:39 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 11:46:39 -0400 |
commit | 3505969b3dffe2133d34c41076caa068ca2411b0 (patch) | |
tree | c9ab7937cd764e53a75ee7494b35b2115d3bd3fc /src/sys/include | |
parent | 82b2371744f22d4a080040429e9f9f172f712728 (diff) |
kern/amd64: ioapic: Add IRQ to vector routing
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/arch/amd64/ioapic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sys/include/arch/amd64/ioapic.h b/src/sys/include/arch/amd64/ioapic.h index 9cd8bd4..20b8058 100644 --- a/src/sys/include/arch/amd64/ioapic.h +++ b/src/sys/include/arch/amd64/ioapic.h @@ -48,4 +48,13 @@ void ioapic_init(void); */ void ioapic_gsi_mask(uint8_t gsi, uint8_t mask); +/* + * Route an IRQ number to a system interrupt vector + * via the internal redirection table + * + * @irq: Global system interrupt to route + * @vector: Vector this GSI should map to + */ +void ioapic_route_vec(uint8_t irq, uint8_t vector); + #endif /* !_MACHINE_IOAPIC_H_ */ |