diff options
author | nyan <nyan@FreeBSD.org> | 2003-09-23 09:25:38 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-09-23 09:25:38 +0000 |
commit | 5ff63b94e08d5106843d8df7bb1d213200cd203c (patch) | |
tree | 81235bda429271091a4b5cf67aef8cd0cb60242b /sys/dev/uart/uart_cpu_amd64.c | |
parent | de10d50d42dd5a6ffddcbbc32f349f76080e03bc (diff) | |
download | FreeBSD-src-5ff63b94e08d5106843d8df7bb1d213200cd203c.zip FreeBSD-src-5ff63b94e08d5106843d8df7bb1d213200cd203c.tar.gz |
- Keep the base address in struct uart_bas for sab82532 and z8530 modules.
- Remove buggy uart_cpu_busaddr() function.
Diffstat (limited to 'sys/dev/uart/uart_cpu_amd64.c')
-rw-r--r-- | sys/dev/uart/uart_cpu_amd64.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/uart/uart_cpu_amd64.c b/sys/dev/uart/uart_cpu_amd64.c index d52e3bc..ff8aa27 100644 --- a/sys/dev/uart/uart_cpu_amd64.c +++ b/sys/dev/uart/uart_cpu_amd64.c @@ -36,13 +36,6 @@ __FBSDID("$FreeBSD$"); #include <dev/uart/uart.h> #include <dev/uart/uart_cpu.h> -bus_addr_t -uart_cpu_busaddr(struct uart_bas *bas) -{ - - return (bas->bsh); -} - int uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2) { @@ -82,6 +75,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) * ns8250 and successors on i386. */ di->ops = uart_ns8250_ops; + di->bas.iobase = ivar; di->bas.bst = AMD64_BUS_SPACE_IO; if (bus_space_map(di->bas.bst, ivar, 8, 0, &di->bas.bsh) != 0) return (ENXIO); |