aboutsummaryrefslogtreecommitdiff
path: root/devices/uart.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-12-04 16:25:08 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-12-04 17:10:01 +0200
commit16241aafa780ebf188b2ceb96d51bf5af5d6bbe2 (patch)
treec41a990a838eb1bcc369fd6c2efedac6785ec99f /devices/uart.h
parentAdd FILE struct (diff)
downloadkernel-16241aafa780ebf188b2ceb96d51bf5af5d6bbe2.tar.xz
Remove custom include paths in makefiles
Add symlinks target to top-level makefile
Diffstat (limited to 'devices/uart.h')
-rw-r--r--devices/uart.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/devices/uart.h b/devices/uart.h
new file mode 100644
index 0000000..ee74e98
--- /dev/null
+++ b/devices/uart.h
@@ -0,0 +1,17 @@
+#pragma once
+
+// TODO #include <arch/platform.h>
+#include <stdio.h>
+
+enum UART {
+ COM1 = 0x3f8,
+ COM2 = 0x2f8,
+ COM3 = 0x3E8,
+ COM4 = 0x2E8,
+ COM5 = 0x5F8,
+ COM6 = 0x4F8,
+ COM7 = 0x5E8,
+ COM8 = 0x4E8,
+};
+
+FILE *uart_init(enum UART port);