From 0013a788ef93f9c014905d801ca677afcad3a6a4 Mon Sep 17 00:00:00 2001 From: Sergey Kiselev Date: Fri, 13 Mar 2015 23:32:59 -0700 Subject: [PATCH] zeta-v2: fix comments --- Kernel/platform-zeta-v2/devtty.h | 12 ++++++------ Kernel/platform-zeta-v2/devtty_discard.c | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Kernel/platform-zeta-v2/devtty.h b/Kernel/platform-zeta-v2/devtty.h index db70d87a..69f8d789 100644 --- a/Kernel/platform-zeta-v2/devtty.h +++ b/Kernel/platform-zeta-v2/devtty.h @@ -2,12 +2,12 @@ #define __DEVTTY_DOT_H__ #define UART_NAME 0x0F -#define UART_CAP_FIFO 0x80 /* UART has functioning FIFO */ -#define UART_CAP_AFE 0x40 /* UART support autoflow control */ -#define UART_8250 1 -#define UART_16450 2 -#define UART_16550 3 -#define UART_16550A 4 +#define UART_CAP_FIFO 0x80 /* UART has a functioning FIFO */ +#define UART_CAP_AFE 0x40 /* UART supports auto-flow control */ +#define UART_8250 1 /* original INS8250 or INS8250-B */ +#define UART_16450 2 /* INS8250A, 16450 and clones */ +#define UART_16550 3 /* original 16550 with broken FIFO */ +#define UART_16550A 4 /* 16550A and clones */ #define UART_CLOCK 1843200UL void tty_putc(uint8_t minor, unsigned char c); diff --git a/Kernel/platform-zeta-v2/devtty_discard.c b/Kernel/platform-zeta-v2/devtty_discard.c index 6fea1563..782f1150 100644 --- a/Kernel/platform-zeta-v2/devtty_discard.c +++ b/Kernel/platform-zeta-v2/devtty_discard.c @@ -10,7 +10,7 @@ extern unsigned char uart0_type; unsigned char uart0_detect(); -/* uart0_init - detect UART type, enable FIFO if present +/* uart0_init - detect UART type, print it, enable FIFO if present */ void uart0_init() { const char *uart_name; @@ -46,6 +46,8 @@ void uart0_init() { kprintf(".\n"); } +/* uart0_init - detect UART type and capabilities + */ unsigned char uart0_detect() { unsigned char type, scratch; -- 2.34.1