diff options
Diffstat (limited to 'devices/uart.h')
-rw-r--r-- | devices/uart.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/devices/uart.h b/devices/uart.h deleted file mode 100644 index 53a4f41..0000000 --- a/devices/uart.h +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#ifdef __ARCH__ -#include <stdio.h> -#include <sys/io.h> - -#else -// from stdio -typedef struct FILE { - int id; - void (*putc)(const struct FILE *, char); - int (*puts)(const struct FILE *, const char *, int); - void (*flush)(const struct FILE *); -} FILE; - -// from sys/io -unsigned char inb(unsigned short); -void outb(unsigned char, unsigned short); - -enum UART { - COM1 = 0x3f8, - COM2 = 0x2f8, - COM3 = 0x3e8, - COM4 = 0x2e8, - COM5 = 0x5f8, - COM6 = 0x4f8, - COM7 = 0x5e8, - COM8 = 0x4e8, -}; -#endif - -FILE *uart_init(unsigned short port); |