From 1ccd2529cc3d15e60ef2965a2996c932a788118e Mon Sep 17 00:00:00 2001 From: nyan Date: Sun, 16 May 2004 14:12:05 +0000 Subject: - Initialize uart_bus_space_io and uart_bus_space_mem. - Fix wrong comment. --- sys/dev/uart/uart_cpu_pc98.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/dev/uart/uart_cpu_pc98.c') diff --git a/sys/dev/uart/uart_cpu_pc98.c b/sys/dev/uart/uart_cpu_pc98.c index 2446c4f..ffe7957 100644 --- a/sys/dev/uart/uart_cpu_pc98.c +++ b/sys/dev/uart/uart_cpu_pc98.c @@ -36,8 +36,8 @@ __FBSDID("$FreeBSD$"); #include #include -bus_space_tag_t uart_bus_space_io; -bus_space_tag_t uart_bus_space_mem; +bus_space_tag_t uart_bus_space_io = I386_BUS_SPACE_IO; +bus_space_tag_t uart_bus_space_mem = I386_BUS_SPACE_MEM; int uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2) @@ -56,11 +56,11 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) return (0); /* - * There are 2 built-in serial ports on pc98 hardware. The - * first one is 8251 and the second one is I think an enhance - * version of that. However, for the sio driver, flags selected - * which type of uart was in the sytem. We use something similar - * to sort things out. + * There is a serial port on all pc98 hardware. It is 8251 or + * an enhance version of that. Some pc98 have the second serial + * port which is 16550A compatible. However, for the sio driver, + * flags selected which type of uart was in the sytem. We use + * something similar to sort things out. */ for (i = 0; i < 1; i++) { if (resource_int_value("uart", i, "flags", &flags)) -- cgit v1.1