diff options
author | nyan <nyan@FreeBSD.org> | 2003-09-23 08:38:49 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-09-23 08:38:49 +0000 |
commit | ccffa9c28858ac41b6b50bae5a6b3ac1eb4d26a3 (patch) | |
tree | 76e37e0a34453cc7327594c54ed4aa2bb0663e5a /sys/dev/uart/uart_cpu_amd64.c | |
parent | 2ae09c9acefe7434b4283d932e326a961af2723f (diff) | |
download | FreeBSD-src-ccffa9c28858ac41b6b50bae5a6b3ac1eb4d26a3.zip FreeBSD-src-ccffa9c28858ac41b6b50bae5a6b3ac1eb4d26a3.tar.gz |
Use bus_space_map() to initialize a bus_handle.
Diffstat (limited to 'sys/dev/uart/uart_cpu_amd64.c')
-rw-r--r-- | sys/dev/uart/uart_cpu_amd64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_cpu_amd64.c b/sys/dev/uart/uart_cpu_amd64.c index 1852d40..d52e3bc 100644 --- a/sys/dev/uart/uart_cpu_amd64.c +++ b/sys/dev/uart/uart_cpu_amd64.c @@ -83,7 +83,8 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) */ di->ops = uart_ns8250_ops; di->bas.bst = AMD64_BUS_SPACE_IO; - di->bas.bsh = ivar; + if (bus_space_map(di->bas.bst, ivar, 8, 0, &di->bas.bsh) != 0) + return (ENXIO); di->bas.regshft = 0; di->bas.rclk = 0; if (resource_int_value("uart", i, "baud", &ivar) != 0) |