-
Notifications
You must be signed in to change notification settings - Fork 1
/
util.h
19 lines (19 loc) · 764 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
#### ## ## ## ## ## ##
## ## ### ### ### ### ### ###
## ## #### #### #### #### #### ####
## ## ## ## ## ## ## ## ## ## ## ## ##
## ### ###### ## #### ## ## #### ## ######
## ## ## ## ## ### ## ## ### ## ## ##
########## ## ## ## ## ## ## ## ## ## ##
*/
#include "gamma.h"
#include <stdint.h>
void outb(uint16_t port, uint8_t val);
uint8_t inb(uint16_t port);
uint16_t inw(uint16_t port);
byte read_cmos(byte port, byte nmi_disable); // second controls non-maskable interrupts
void nmi_enable(void);
void nmi_disable(void);
void disable_interrupts(void);
void enable_interrupts(void);