#
beecddb6 |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
3bee0c11 |
| 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 ...
|
#
d8e81853 |
| 19-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.
Mark hpcarm/bus.h obsolete.
|
#
4c494f76 |
| 29-May-2009 |
rjs <rjs@NetBSD.org> |
Make the following changes:
struct device * -> device_t struct cfdata * -> cfdata_t printf -> aprint_ device_t/softc split
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
155a80cb |
| 29-Sep-2006 |
cube <cube@NetBSD.org> |
A local change crept in when it wasn't meant to, I suppose. [hi rjs!]
|
#
f99ba5e5 |
| 28-Sep-2006 |
rjs <rjs@NetBSD.org> |
ANSIfy and fix missed proc -> lwp conversion.
|
#
4ece0d68 |
| 11-Apr-2006 |
peter <peter@NetBSD.org> |
Add missing disclaimer.
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
44bf0a7e |
| 26-Aug-2005 |
drochner <drochner@NetBSD.org> |
s/locdesc_t/int/g
|
#
996c273e |
| 30-Jun-2005 |
drochner <drochner@NetBSD.org> |
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
|
#
08716eae |
| 15-Jul-2003 |
lukem <lukem@NetBSD.org> |
__KERNEL_RCSID()
|
#
c5e91d44 |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
0f09ed48 |
| 27-Sep-2002 |
provos <provos@NetBSD.org> |
remove trailing \n in panic(). approved perry.
|
#
6c88de3b |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Introduce a new routine, config_match(), which invokes the cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
|
#
c0a235d4 |
| 20-Jul-2002 |
ichiro <ichiro@NetBSD.org> |
change path of include file
|
#
a179a1a6 |
| 01-Aug-2001 |
ichiro <ichiro@NetBSD.org> |
i mistake reverse a change
|
#
1b56a92c |
| 01-Aug-2001 |
ichiro <ichiro@NetBSD.org> |
add entry of Atmel microcontroller and uda1341 codec
|
#
e5e13da1 |
| 15-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
Mapping the SSP registers
|
#
60f2ec7e |
| 15-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
enable extended gpio operation
|
#
2d93d462 |
| 13-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
The definiton which overlapped was erased.
|
#
83030a03 |
| 11-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
cosmetic change, add more comment, delete unused include file
|
#
f8f0c904 |
| 10-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
I missed to add bus_space_tag_t mapping
|
#
f4083490 |
| 10-Jul-2001 |
ichiro <ichiro@NetBSD.org> |
add iPAQ virtual bus and PCIC of iPAQ
|