#
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 ...
|
#
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.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
a2a38285 |
| 19-Oct-2007 |
ad <ad@NetBSD.org> |
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
46ed4b50 |
| 26-Aug-2005 |
drochner <drochner@NetBSD.org> |
s/locdesc_t/int/g
|
#
f31bd063 |
| 27-Feb-2005 |
perry <perry@NetBSD.org> |
nuke trailing whitespace
|
#
96b589fc |
| 13-Sep-2004 |
drochner <drochner@NetBSD.org> |
a round of autoconf cleanup: -convert submatch() style functions (passed to config_search() or config_found_sm()) to the locator passing variants -pass interface attributes in some cases -make subma
a round of autoconf cleanup: -convert submatch() style functions (passed to config_search() or config_found_sm()) to the locator passing variants -pass interface attributes in some cases -make submatch() functions look uniformly as far as possible -avoid macros which just hide cfdata members, and reduce dependencies on "locators.h"
show more ...
|
#
703e7687 |
| 01-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Use aprint_normal() in cfprint routines.
|
#
c9b3657c |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Add trailing ; to CFATTACH_DECL.
|
#
9d4a6407 |
| 30-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
3d94c421 |
| 13-Jan-2002 |
takemura <takemura@NetBSD.org> |
Added new config hook type PCIINTR (handling PCI interrupt). Added config hook APIs, config_connect, config_disconnect and config_connected_call. Supported PCIINTR type event in hpcio.
|
#
b84f53ef |
| 13-Nov-2001 |
lukem <lukem@NetBSD.org> |
add RCSID
|
#
a9d7b546 |
| 13-Jun-2001 |
uch <uch@NetBSD.org> |
make this work.
|
#
859a6a49 |
| 04-Jun-2001 |
uch <uch@NetBSD.org> |
ANSI KNF.
|
#
a8304325 |
| 01-May-2001 |
takemura <takemura@NetBSD.org> |
Fix 'busname' to attach nodes correctly.
|
#
26b0905d |
| 30-Apr-2001 |
takemura <takemura@NetBSD.org> |
Machine independent GPIO interface.
|