#
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 ...
|
#
2413b824 |
| 24-Mar-2014 |
christos <christos@NetBSD.org> |
- remove unused - use cpu_{g,s}etmodel
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
440f7c7b |
| 29-Mar-2008 |
tsutsui <tsutsui@NetBSD.org> |
Split device_t/softc, and misc cosmetic changes.
|
#
df1fb189 |
| 05-Dec-2007 |
tsutsui <tsutsui@NetBSD.org> |
Use queue(3) macro.
|
#
d974db0a |
| 17-Oct-2007 |
garbled <garbled@NetBSD.org> |
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the v
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
show more ...
|
#
c73835c1 |
| 12-Jul-2007 |
he <he@NetBSD.org> |
Adapt to the new signature of callout_init().
|
#
7d4b57d7 |
| 21-Jul-2006 |
tsutsui <tsutsui@NetBSD.org> |
Some KNF.
|
#
1eda58c4 |
| 19-Mar-2006 |
tsutsui <tsutsui@NetBSD.org> |
TAB/space cleanup.
|
#
458b3e43 |
| 23-Feb-2006 |
thorpej <thorpej@NetBSD.org> |
Use device_parent().
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
8ca927b4 |
| 28-Aug-2004 |
thorpej <thorpej@NetBSD.org> |
Use ANSI function decls, static, and const.
|
#
b6c031f5 |
| 17-Nov-2003 |
tsutsui <tsutsui@NetBSD.org> |
TAB/space cleanup.
|
#
aad01611 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
#
acc15558 |
| 05-Jul-2003 |
tsutsui <tsutsui@NetBSD.org> |
Some cosmetics on bus_space_tag_t initialization.
|
#
8e726b52 |
| 24-May-2003 |
gmcgarry <gmcgarry@NetBSD.org> |
Clean-up the DIO bus. Includes two main changes:
1) Pass address and ipl locators at attachment; 2) Remove hack which made the internal HP-IB controller look like a DIO device.
The hack to allo
Clean-up the DIO bus. Includes two main changes:
1) Pass address and ipl locators at attachment; 2) Remove hack which made the internal HP-IB controller look like a DIO device.
The hack to allow the nhpib driver to support internal and DIO controllers appears to be a leftover from 4.3BD where it was not possible to have a driver attach to different busses. NetBSD has supported bus-dependent attachments for a long time.
show more ...
|
#
c5e91d44 |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
97ef6567 |
| 15-Mar-2002 |
gmcgarry <gmcgarry@NetBSD.org> |
Add RCSIDs.
|
#
01643c9f |
| 25-Mar-2000 |
frueauf <frueauf@NetBSD.org> |
Fix typo: calllout_reset -> callout_reset.
|
#
b667a5a3 |
| 23-Mar-2000 |
thorpej <thorpej@NetBSD.org> |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
show more ...
|
#
11cae425 |
| 17-Sep-1999 |
thorpej <thorpej@NetBSD.org> |
Centralize the declaration and clearing of `cold'.
|
#
e9b40e3d |
| 01-Jul-1998 |
thorpej <thorpej@NetBSD.org> |
Dont' check sysflags here... just look for NHPIB or IHPIB device IDs.
|
#
871cf5e7 |
| 12-Jan-1998 |
thorpej <thorpej@NetBSD.org> |
Update for changes to config.
|