kern

view src/intr.h @ 33:373a9f50b4e6

8254 timer code
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 08 Jun 2011 03:02:42 +0300
parents cccaa40f5432
children 06172322fb76
line source
1 #ifndef INTR_H_
2 #define INTR_H_
4 #include <inttypes.h>
5 #include "asmops.h"
7 typedef void (*intr_func_t)(int, uint32_t);
10 void init_intr(void);
12 void interrupt(int intr_num, intr_func_t func);
14 /* defined in intr-asm.S */
15 int get_intr_state(void);
16 void set_intr_state(int s);
18 #endif /* INTR_H_ */