summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/interrupts.h
blob: 288bd78863c693d9713a04afdfbec4dbe286dfb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;

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