summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/ofw_machdep.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-02-12 19:13:51 +0000
committermarius <marius@FreeBSD.org>2005-02-12 19:13:51 +0000
commit72f77d17e566e2695be53260aa60ebe59b3aa730 (patch)
tree8c3494abe479d4ea6134e8eeb29edf2080200ad4 /sys/sparc64/include/ofw_machdep.h
parent5d5869d1e1a6ae4ab65ccb7f5c22517e13a0ab31 (diff)
downloadFreeBSD-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/sparc64/include/ofw_machdep.h')
-rw-r--r--sys/sparc64/include/ofw_machdep.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/include/ofw_machdep.h b/sys/sparc64/include/ofw_machdep.h
index f7062f7..ac1fcc1 100644
--- a/sys/sparc64/include/ofw_machdep.h
+++ b/sys/sparc64/include/ofw_machdep.h
@@ -30,10 +30,9 @@
#include <sys/bus.h>
-int OF_decode_addr(phandle_t, int *, bus_addr_t *);
+int OF_decode_addr(phandle_t, int, int *, bus_addr_t *);
void OF_getetheraddr(device_t, u_char *);
void cpu_shutdown(void *);
void openfirmware_exit(void *);
#endif /* _MACHINE_OFW_MACHDEP_H_ */
-
OpenPOWER on IntegriCloud