diff options
author | marius <marius@FreeBSD.org> | 2005-11-22 16:37:45 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-11-22 16:37:45 +0000 |
commit | fa92f23f1819b63d981e32c4aa232f819e0a2dc9 (patch) | |
tree | f7aa9cb591140cfeccbd2287da1d295b5b9b8703 /sys/conf/files.powerpc | |
parent | de081fdfb1f76a022d06b493c13e2f05514b894f (diff) | |
download | FreeBSD-src-fa92f23f1819b63d981e32c4aa232f819e0a2dc9.zip FreeBSD-src-fa92f23f1819b63d981e32c4aa232f819e0a2dc9.tar.gz |
- 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
Diffstat (limited to 'sys/conf/files.powerpc')
-rw-r--r-- | sys/conf/files.powerpc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files.powerpc b/sys/conf/files.powerpc index 7bcc533..7521189 100644 --- a/sys/conf/files.powerpc +++ b/sys/conf/files.powerpc @@ -76,6 +76,7 @@ crypto/des/des_enc.c optional netsmbcrypto dev/ofw/openfirm.c standard dev/ofw/ofw_bus_if.m standard +dev/ofw/ofw_bus_subr.c standard dev/ofw/ofw_console.c standard dev/ofw/ofw_disk.c optional ofwd |