#
c7fb772b |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
2685996b |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass a
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
show more ...
|
#
82b8caba |
| 28-Oct-2017 |
riastradh <riastradh@NetBSD.org> |
Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
#
5a2b751d |
| 25-Jun-2017 |
maxv <maxv@NetBSD.org> |
spl leak, found by Mootja
|
#
d2d9a4a6 |
| 09-Nov-2013 |
christos <christos@NetBSD.org> |
fix unused variable warning
|
#
cbab9cad |
| 27-Oct-2012 |
chs <chs@NetBSD.org> |
split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
#
529e91fc |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct device * -> device_t, no functional changes intended.
|
#
32c49409 |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct cfdata * -> cfdata_t, no functional changes intended.
|
#
2ec6410a |
| 05-Apr-2009 |
uwe <uwe@NetBSD.org> |
Register with pmf(9), tell it we don't need anything.
|
#
9a25b0cb |
| 03-Apr-2009 |
uwe <uwe@NetBSD.org> |
Switch apmdev to use apm(4) structures from dev/apm/apmvar.h. Add batteryid argument to aa_get_powstat method implementations.
|
#
e4d63225 |
| 30-Mar-2009 |
uwe <uwe@NetBSD.org> |
Fix battery_state vs. battery_flags confusion. Fill all fields of struct apm_power_info in hpcapm_get_powstat.
|
#
a2a38285 |
| 19-Oct-2007 |
ad <ad@NetBSD.org> |
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
#
168cd830 |
| 16-Nov-2006 |
christos <christos@NetBSD.org> |
__unused removal on arguments; approved by core.
|
#
44b35078 |
| 12-Oct-2006 |
uwe <uwe@NetBSD.org> |
-Wextra fixes
|
#
9eddf385 |
| 09-Oct-2006 |
peter <peter@NetBSD.org> |
Remove (the default) #define XXXDEBUG and add the options to the relevant files.xxx file.
|
#
223213b9 |
| 24-Sep-2006 |
peter <peter@NetBSD.org> |
Improve some debug texts.
|
#
b320dcd1 |
| 22-Aug-2006 |
uwe <uwe@NetBSD.org> |
Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable. From Adam Wysocki on port-hpcsh@.
|
#
92c7bba3 |
| 29-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Use device_private().
|
#
4e0a2c59 |
| 27-Feb-2006 |
peter <peter@NetBSD.org> |
Remove the include <machine/autoconf.h>, it is a) not needed any more and b) not available on all hpc ports.
|
#
3ca5c268 |
| 24-Feb-2006 |
cube <cube@NetBSD.org> |
Rework hpcapm(4) attachment definition so it is not required to attach at mainbus, and convert its two users, hpcsh and hpcmips, to that.
Many thanks to Valeriy Ushakov and Ben Collver for testing.
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
588f33c3 |
| 30-Jul-2005 |
nakayama <nakayama@NetBSD.org> |
Get AC/battery state via config_hook_call if hooks are registered.
|
#
f31bd063 |
| 27-Feb-2005 |
perry <perry@NetBSD.org> |
nuke trailing whitespace
|
#
fc3043bc |
| 03-Jul-2004 |
uch <uch@NetBSD.org> |
hpcmips independent part are moved to sys/dev/hpc/
|