summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/interrupts.h
blob: f9689063e8407495eddd39b35eaab8517e158808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <stdbool.h>
#include <stdint.h>

#define IRQ_COM1 4
#define IRQ_IBASE 0x20
#define IRQ_PS2KB 1
#define IRQ_PS2MOUSE 12
#define IRQ_RTL8139 11
#define IRQ_HPET 8

extern void (*irq_fn[16])(void);
extern const char _isr_stubs;
struct IsrFrame;

void irq_init(void);
void irq_eoi(uint8_t line);
void isr_stage3(uint8_t interrupt, struct IsrFrame *stackframe);