tape-kernel
1.0
a modular modern independent kernel
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1
#ifndef IO_H
2
#define IO_H
3
4
#include "
../lib/types.h
"
5
6
#define inb __inb
7
#define outb __outb
8
#define inw __inw
9
#define outw __outw
10
#define reboot __reboot
11
12
uint8_t
__inb
(
uint16_t
port);
13
void
__outb
(
uint16_t
port,
uint8_t
val);
14
uint16_t
__inw
(
uint16_t
port);
15
void
__outw
(
uint16_t
port,
uint16_t
val);
16
void
__reboot
(
void
);
17
18
#endif
__outb
void __outb(uint16_t port, uint8_t val)
__outw
void __outw(uint16_t port, uint16_t val)
__inb
uint8_t __inb(uint16_t port)
__inw
uint16_t __inw(uint16_t port)
__reboot
void __reboot(void)
types.h
uint16_t
unsigned short uint16_t
Definition
types.h:29
uint8_t
unsigned char uint8_t
Definition
types.h:28
src
io
io.h
Generated by
1.16.1