From 3505969b3dffe2133d34c41076caa068ca2411b0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 11:46:39 -0400 Subject: kern/amd64: ioapic: Add IRQ to vector routing Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/ioapic.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sys/include/arch/amd64/ioapic.h') 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_ */ -- cgit v1.2.3