summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/nexusvar.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-01-13 11:20:52 +0000
committergrehan <grehan@FreeBSD.org>2004-01-13 11:20:52 +0000
commit5e6c3e74a5c479c3a0a6cf5c9aea54650ece04f5 (patch)
treeb733569176f4a5f304d22f60e74bdeb559b7fa8c /sys/powerpc/include/nexusvar.h
parentdf395ed429fc91a315335c46a1bae55a83a19fe5 (diff)
downloadFreeBSD-src-5e6c3e74a5c479c3a0a6cf5c9aea54650ece04f5.zip
FreeBSD-src-5e6c3e74a5c479c3a0a6cf5c9aea54650ece04f5.tar.gz
Remove hard-coded knowledge of specific OFW devices. Use bus_generic_probe
and add_child entry point to allow devices to use the identify method to add themselves if need be (e.g. openpic, syscons). Export interrupt-controller-add routine for extern int cntlr drivers. Eliminate recursive OFW device-tree walk and only iterate the top-level ala sparc64. Allow child devices to set the device type with write_ivars. Step 1 of many in removing the hard-dependency on OpenFirmware.
Diffstat (limited to 'sys/powerpc/include/nexusvar.h')
-rw-r--r--sys/powerpc/include/nexusvar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/powerpc/include/nexusvar.h b/sys/powerpc/include/nexusvar.h
index 2859fa3..df8a0f6 100644
--- a/sys/powerpc/include/nexusvar.h
+++ b/sys/powerpc/include/nexusvar.h
@@ -50,4 +50,9 @@ NEXUS_ACCESSOR(compatible, COMPATIBLE, char *)
#undef NEXUS_ACCESSOR
+/*
+ * Install the interrupt controller device
+ */
+int nexus_install_intcntlr(device_t);
+
#endif /* _MACHINE_NEXUSVAR_H_ */
OpenPOWER on IntegriCloud