A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/kernel/io.h

15 lines
383 B

3 years ago
unsigned char inb(unsigned short);
void outb(unsigned short, unsigned char);
3 years ago
3 years ago
unsigned short inw(unsigned short);
void outw(unsigned short, unsigned short);
3 years ago
static inline void io_wait();
3 years ago
// wrappers but with io_wait
unsigned char inb_w(unsigned short);
void outb_w(unsigned short, unsigned char);
unsigned short inw_w(unsigned short);
void outw_w(unsigned short, unsigned short);