#
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 ...
|
#
d87a7c3d |
| 20-Feb-2011 |
matt <matt@NetBSD.org> |
Merge from matt-nb5-mips64. Add pci support. new interrupt code. Adapt to new world order for MIPS
|
#
c4104429 |
| 01-Feb-2011 |
matt <matt@NetBSD.org> |
Use aprint_* and misc cleanup.
|
#
0faeebce |
| 01-Feb-2011 |
matt <matt@NetBSD.org> |
Update to CFATTACH_DECL_NEW.
|
#
00bf4c87 |
| 12-Aug-2009 |
simonb <simonb@NetBSD.org> |
Remove many magic numbers for addresses and interrupt numbers, and use constants defined in SiByte/Broadcom standard header files. Switch from using offsets for locators to actual addresses.
Tested
Remove many magic numbers for addresses and interrupt numbers, and use constants defined in SiByte/Broadcom standard header files. Switch from using offsets for locators to actual addresses.
Tested on a swarm (my rhone is dead, but should be OK there too).
show more ...
|
#
54a1f88f |
| 16-Jun-2008 |
cegger <cegger@NetBSD.org> |
fix typo. should compile again.
|
#
175e9cfe |
| 13-Jun-2008 |
cegger <cegger@NetBSD.org> |
use __array_count
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
1f9cf5d3 |
| 26-Aug-2005 |
drochner <drochner@NetBSD.org> |
kill some more simple submatch() functions, use config_stdsubmatch()
|
#
fa3cb84d |
| 25-Aug-2005 |
drochner <drochner@NetBSD.org> |
replace the "locdesc_t" structure carrying the number of locators explicitely by a plain integer array the length in now known to all relevant parties, so this avoids duplication of information, and
replace the "locdesc_t" structure carrying the number of locators explicitely by a plain integer array the length in now known to all relevant parties, so this avoids duplication of information, and we can allocate that thing in drivers without hacks
show more ...
|
#
a02e2488 |
| 13-Sep-2004 |
drochner <drochner@NetBSD.org> |
autoconf cleanup: turn xxxsubmatch() functions into the locator passing variants
|
#
4b2744bf |
| 15-Jul-2003 |
lukem <lukem@NetBSD.org> |
__KERNEL_RCSID()
|
#
8a6b8c3b |
| 07-Feb-2003 |
cgd <cgd@NetBSD.org> |
Update to consistently use Broadcom GPL-compatible license on all SiByte code.
|
#
dbb0f0eb |
| 01-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Use aprint_normal() for cfprint routines.
|
#
89bf5a8f |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Add trailing ; to CFATTACH_DECL.
|
#
c4cbfcf0 |
| 01-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
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.
|
#
1b5ddfe4 |
| 05-Mar-2002 |
simonb <simonb@NetBSD.org> |
Add support for the on-chip peripherals on the Broadcom SiByte SB1250 CPU and support routines for the Broadcom CFE (Common Firmware Environment).
This code is provided by the Broadband Processor Bu
Add support for the on-chip peripherals on the Broadcom SiByte SB1250 CPU and support routines for the Broadcom CFE (Common Firmware Environment).
This code is provided by the Broadband Processor Business Unit at Broadcom Corp with minor updates by me.
show more ...
|