From f7ff668fa6b20884c1daea5faacda7e0e682492e Mon Sep 17 00:00:00 2001 From: sbosse Date: Sun, 12 Jan 2025 19:30:28 +0100 Subject: [PATCH] Sun 12 Jan 19:29:58 CET 2025 --- kernel/serial.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/serial.h b/kernel/serial.h index cfaad95..1f7af5d 100644 --- a/kernel/serial.h +++ b/kernel/serial.h @@ -12,6 +12,10 @@ void serial_init(); int serial_read(int port_no); int serial_read_nonblock(int port_no); void serial_write(int port_no, char a); +#define serial_putchar serial_write + +int serial_getchar(int port_no); + int serial_device_probe( int unit, int *blocksize, int *nblocks, char *info ); int serial_device_read( int unit, void *data, int length, int offset );