1 #include <common/glib.h>
2 
3 //driver/uart/uart.rs --rust function
4 enum uart_port_io_addr
5 {
6     COM1 = 0x3f8,
7     COM2 = 0x2f8,
8     COM3 = 0x3e8,
9     COM4 = 0x2e8,
10     COM5 = 0x5f8,
11     COM6 = 0x4f8,
12     COM7 = 0x5e8,
13     COM8 = 0x4E8,
14 };
15 extern int c_uart_init(uint16_t port, uint32_t baud_rate);
16 extern void c_uart_send(uint16_t port, char c);
17 extern void c_uart_send_str(uint16_t port, const char *str);