diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-11-08 17:19:45 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-11-08 17:54:13 +0200 |
commit | dbdaa77fb5924b4b9e6b374a44ef76481a38d3d2 (patch) | |
tree | abd4daf428532ac026a538e20138907b36c795c3 /devices/uart_16550.h | |
parent | Add python-sphinx docs (diff) | |
download | kernel-dbdaa77fb5924b4b9e6b374a44ef76481a38d3d2.tar.xz |
Add FILE struct
Diffstat (limited to 'devices/uart_16550.h')
-rw-r--r-- | devices/uart_16550.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devices/uart_16550.h b/devices/uart_16550.h index bb219cc..5e5ee13 100644 --- a/devices/uart_16550.h +++ b/devices/uart_16550.h @@ -1,5 +1,7 @@ #pragma once +#include <stdio.h> + enum UART { COM1 = 0x3f8, COM2 = 0x2f8, @@ -11,6 +13,6 @@ enum UART { COM8 = 0x4E8, }; -int uart_init(enum UART port); -void uart_write(enum UART port, char a); -int uart_puts(enum UART port, const char *string, int length); +FILE *uart_init(enum UART port); +// void uart_write(enum UART port, char a); +// int uart_puts(enum UART port, const char *string, int length); |