summaryrefslogtreecommitdiff
path: root/arch/i386/pic.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.xyz>2021-01-24 21:10:57 -0600
committerDanny Holman <dholman@gymli.xyz>2021-01-24 21:10:57 -0600
commita4534660fecb1b571c24ad82e67bc6c2fb814cb9 (patch)
tree149984cb0e9a32765e63df0f696091817c2b6dd5 /arch/i386/pic.h
parentdd6656f7132d1727a055035ca94945fa4fbaae58 (diff)
x86: reorganize the i386 directory
Add structure to the internals of the x86 directory. Signed-off-by: Danny Holman <dholman@gymli.xyz>
Diffstat (limited to 'arch/i386/pic.h')
-rw-r--r--arch/i386/pic.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/i386/pic.h b/arch/i386/pic.h
deleted file mode 100644
index da4a2ee..0000000
--- a/arch/i386/pic.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef PIC_H
-#define PIC_H
-
-#include <stdint.h>
-
-static inline void outb(uint16_t port, uint8_t value) {
- asm volatile("outb %0, %1" : : "a"(value), "Nd"(port));
-}
-
-static inline uint8_t inb(uint16_t port) {
- uint8_t ret;
- asm volatile("inb %1, %0" : "=a"(ret) : "Nd"(port));
- return ret;
-}
-
-#endif