#
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 ...
|
#
575a7585 |
| 07-Jul-2016 |
msaitoh <msaitoh@NetBSD.org> |
KNF. Remove extra spaces. No functional change.
|
#
c701b867 |
| 13-Oct-2012 |
tsutsui <tsutsui@NetBSD.org> |
struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@)
|
#
bc6f8d14 |
| 06-Jul-2008 |
tsutsui <tsutsui@NetBSD.org> |
Split device_t/softc with misc cosmetic changes.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
996c273e |
| 30-Jun-2005 |
drochner <drochner@NetBSD.org> |
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
|
#
10b1a7be |
| 22-Jan-2005 |
chs <chs@NetBSD.org> |
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
|
#
0ded7469 |
| 13-Dec-2004 |
chs <chs@NetBSD.org> |
for drivers that support only one instance, use a global variable to ensure that only one instance is configured rather than requiring that its unit number be zero.
|
#
ed517291 |
| 15-Jul-2003 |
lukem <lukem@NetBSD.org> |
__KERNEL_RCSID()
|
#
4bf871a7 |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Add trailing ; to CFATTACH_DECL.
|
#
82af7d52 |
| 01-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
d1ad2ac4 |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Rather than referencing the cfdriver directly in the cfdata entries, instead use a string naming the driver. The cfdriver is then looked up in a list which is built at run-time.
|
#
74e4ac42 |
| 15-Dec-2001 |
fredette <fredette@NetBSD.org> |
Be sure to mark in the prototype attach args that a physical address is required for each device on this bus.
|
#
a5c8b5d1 |
| 30-Nov-2001 |
fredette <fredette@NetBSD.org> |
Implement bus_space_mmap.
|
#
ee7503cf |
| 27-Jun-2001 |
fredette <fredette@NetBSD.org> |
Converted to use the new bus-specific attach args.
|
#
8f6cff26 |
| 14-Jun-2001 |
fredette <fredette@NetBSD.org> |
Now uses the common sun68k bus_space/bus_dma and autoconf code.
|
#
857e8fbc |
| 10-Apr-2001 |
fredette <fredette@NetBSD.org> |
The mainbus doesn't define a device name in the attach args after attaching the special busses, so just match when it isn't, instead of calling strcmp with it.
|
#
ec984a04 |
| 06-Apr-2001 |
fredette <fredette@NetBSD.org> |
Added.
|