summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/interrupts/irq.h
diff options
context:
space:
mode:
authordzwdz2022-08-03 21:34:58 +0200
committerdzwdz2022-08-03 21:34:58 +0200
commit4a844820866094ff7d57435a16b7c23a9126814d (patch)
treea13643ddf95a4b310e9d615857bb0eed1038cd28 /src/kernel/arch/amd64/interrupts/irq.h
parentc510603cedcd3e39681ae38560f62adc9d70a53b (diff)
amd64: cleanup the irq code, #define the magic numbers
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/irq.h')
-rw-r--r--src/kernel/arch/amd64/interrupts/irq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/interrupts/irq.h b/src/kernel/arch/amd64/interrupts/irq.h
index f523154..3340101 100644
--- a/src/kernel/arch/amd64/interrupts/irq.h
+++ b/src/kernel/arch/amd64/interrupts/irq.h
@@ -2,5 +2,9 @@
#include <stdbool.h>
#include <stdint.h>
+#define IRQ_IBASE 0x20
+#define IRQ_PS2 1
+#define IRQ_COM1 4
+
void irq_init(void);
void irq_eoi(uint8_t line);