aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc_nexus.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2005-11-22 16:37:45 +0000
committerMarius Strobl <marius@FreeBSD.org>2005-11-22 16:37:45 +0000
commitbba6f0a901e05837ff4081a218f12d166b5f486c (patch)
treef7aa9cb591140cfeccbd2287da1d295b5b9b8703 /sys/sparc64/fhc/fhc_nexus.c
parent933b731c6707924377977342fa92a6d9cea9662e (diff)
downloadsrc-bba6f0a901e05837ff4081a218f12d166b5f486c.tar.gz
src-bba6f0a901e05837ff4081a218f12d166b5f486c.zip
- Add a new method ofw_bus_default_get_devinfo() that allows to retrieve
a newly introduced struct ofw_bus_devinfo which can hold the OFW info of a device recallable via the ofw_bus KOBJ interface. Introduce a set of functions ofw_bus_gen_get_*() which use ofw_bus_default_get_devinfo() to provide generic subroutines for implementing the rest of the ofw_bus KOBJ interface in a bus driver. This is inspired by bus_get_resource_list() and bus_generic_rl_*_resource() and allows to reduce code duplication in bus drivers as they only have to provide an ofw_bus_default_get_devinfo() implementation in order to provide the ofw_bus KOBJ interface via ofw_bus_gen_get_*(). - While here add a comment to ofw_bus_if.m describing the intention of the ofw_bus KOBJ interface. Reviewed by: marcel
Notes
Notes: svn path=/head/; revision=152683
Diffstat (limited to 'sys/sparc64/fhc/fhc_nexus.c')
0 files changed, 0 insertions, 0 deletions