summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_cpu_pc98.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2004-05-16 14:12:05 +0000
committernyan <nyan@FreeBSD.org>2004-05-16 14:12:05 +0000
commit1ccd2529cc3d15e60ef2965a2996c932a788118e (patch)
tree1d43c00ac1e7c6ff0882f9fa1ed9156e5e626bbb /sys/dev/uart/uart_cpu_pc98.c
parentb23d48ae40f935df630d5fcd3944cb2f798814c4 (diff)
downloadFreeBSD-src-1ccd2529cc3d15e60ef2965a2996c932a788118e.zip
FreeBSD-src-1ccd2529cc3d15e60ef2965a2996c932a788118e.tar.gz
- Initialize uart_bus_space_io and uart_bus_space_mem.
- Fix wrong comment.
Diffstat (limited to 'sys/dev/uart/uart_cpu_pc98.c')
-rw-r--r--sys/dev/uart/uart_cpu_pc98.c14
1 files changed, 7 insertions, 7 deletions
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 <dev/uart/uart.h>
#include <dev/uart/uart_cpu.h>
-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))
OpenPOWER on IntegriCloud