aboutsummaryrefslogtreecommitdiff
path: root/devices/uart.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-10-08 19:50:00 +0300
committeraqua <aqua@iserlohn-fortress.net>2023-11-27 21:02:22 +0200
commitfc13fb2ba5993d06d9d6ae5e80bc337aebbdc119 (patch)
tree9607ab4d5f1d4069d4f761a0b25eada36088bd6b /devices/uart.h
parentrules.mk: make include paths absolute (diff)
downloadkernel-fc13fb2ba5993d06d9d6ae5e80bc337aebbdc119.tar.xz
Use meson build system
Diffstat (limited to 'devices/uart.h')
-rw-r--r--devices/uart.h32
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);