diff options
author | marius <marius@FreeBSD.org> | 2005-02-12 19:13:51 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-02-12 19:13:51 +0000 |
commit | 72f77d17e566e2695be53260aa60ebe59b3aa730 (patch) | |
tree | 8c3494abe479d4ea6134e8eeb29edf2080200ad4 /sys/dev | |
parent | 5d5869d1e1a6ae4ab65ccb7f5c22517e13a0ab31 (diff) | |
download | FreeBSD-src-72f77d17e566e2695be53260aa60ebe59b3aa730.zip FreeBSD-src-72f77d17e566e2695be53260aa60ebe59b3aa730.tar.gz |
- Re-write OF_decode_addr() with a bus-neutral approach, adding support
for nodes hanging off of Central (untested), FireHose (untested) and
PCI (tested) busses.
- Add an additional parameter to OF_decode_addr() which specifies the
index of the register bank to decode.
These should allow to eventually add support for the Z8530 hanging off of
FireHose to uart(4) and to write support for PCI-based graphics adapters.
Suggested by: tmm (back in '03)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/uart/uart_cpu_sparc64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_cpu_sparc64.c b/sys/dev/uart/uart_cpu_sparc64.c index efb8ba7..2b4abb7 100644 --- a/sys/dev/uart/uart_cpu_sparc64.c +++ b/sys/dev/uart/uart_cpu_sparc64.c @@ -200,7 +200,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) } if (input == -1) return (ENXIO); - error = OF_decode_addr(input, &space, &addr); + error = OF_decode_addr(input, 0, &space, &addr); if (error) return (error); |