summaryrefslogtreecommitdiff
path: root/arch/i386/include/kernel
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:32:27 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:32:27 -0600
commitec2aafe64ade291a2a77d7f3771f784ff9cee722 (patch)
treeea3a2373681fe5e7b7146685d987ec3e9ab81cb0 /arch/i386/include/kernel
parent5af237109c8d0c5fa1b0772dbe56d1530ef4a1d5 (diff)
arch: i386: pic.h: make register_irq_handler accessible
Make the register_irq_function accessible from files including pic.h. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/include/kernel')
-rw-r--r--arch/i386/include/kernel/pic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/pic.h b/arch/i386/include/kernel/pic.h
index 779237e..af7b5ba 100644
--- a/arch/i386/include/kernel/pic.h
+++ b/arch/i386/include/kernel/pic.h
@@ -45,6 +45,8 @@ void pic_remap(void);
uint16_t pic_get_irr(void);
uint16_t pic_get_isr(void);
+void register_irq_handler(uint8_t irq, void (*handler)(struct isr_frame *frame));
+
void irq_set_mask(uint8_t irq);
void irq_clear_mask(uint8_t irq);