aboutsummaryrefslogtreecommitdiff
path: root/src/inc/cpu.h
diff options
context:
space:
mode:
authorMarvin Borner2020-07-22 18:26:56 +0200
committerMarvin Borner2020-07-22 18:26:56 +0200
commit40cc5e32663cd0350b791b8e54825f564489343f (patch)
tree3561c2f379b98ac3c3005f9048bb5535a0d3952d /src/inc/cpu.h
parentc0a2074864e668b005eea8f50c6719bceb66bf20 (diff)
Imported some things from master
Diffstat (limited to 'src/inc/cpu.h')
-rw-r--r--src/inc/cpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/inc/cpu.h b/src/inc/cpu.h
new file mode 100644
index 0000000..ad83896
--- /dev/null
+++ b/src/inc/cpu.h
@@ -0,0 +1,16 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+
+#ifndef CPU_H
+#define CPU_H
+
+#include <def.h>
+
+u8 inb(u16 port);
+u16 inw(u16 port);
+u32 inl(u16 port);
+
+void outb(u16 port, u8 data);
+void outw(u16 port, u16 data);
+void outl(u16 port, u32 data);
+
+#endif