#
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 ...
|
#
70747dc1 |
| 10-Nov-2019 |
chs <chs@NetBSD.org> |
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
#
8fbc729d |
| 26-Apr-2015 |
mlelstv <mlelstv@NetBSD.org> |
Use C99-style initializers for struct dkdriver.
|
#
4a331aac |
| 31-Dec-2014 |
christos <christos@NetBSD.org> |
make more drivers use disk_ioctl, and add a dev parameter to it so that we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converte
make more drivers use disk_ioctl, and add a dev parameter to it so that we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converted.
show more ...
|
#
1a918832 |
| 25-Jul-2014 |
dholland <dholland@NetBSD.org> |
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
#
da8feef9 |
| 25-Jul-2014 |
dholland <dholland@NetBSD.org> |
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
#
76258fa0 |
| 16-Mar-2014 |
dholland <dholland@NetBSD.org> |
Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found
Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
show more ...
|
#
39930996 |
| 19-Oct-2013 |
mrg <mrg@NetBSD.org> |
- remove set but unused variable. - put variables only inside #ifdef inside that same #ifdef. use __USE() where appropriate.
|
#
5f819ca3 |
| 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.
|
#
41ba3596 |
| 12-Feb-2012 |
matt <matt@NetBSD.org> |
Change old-style function defintions to C89 prototypes.
Approved by releng.
|
#
56030b41 |
| 01-Feb-2011 |
chuck <chuck@NetBSD.org> |
udpate license clauses on my code to match the new-style BSD licenses. remove no-longer-valid wustl email address for me. based on diff that rmind@ sent me.
no functional change with this commit.
|
#
7cf29912 |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct device * -> device_t, no functional changes intended.
|
#
d16a259f |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct cfdata * -> cfdata_t, no functional changes intended.
|
#
d779b85d |
| 18-Apr-2009 |
tsutsui <tsutsui@NetBSD.org> |
Remove extra whitespace added by a stupid tool. XXX: more in src/sys/arch
|
#
e2cb8590 |
| 18-Mar-2009 |
cegger <cegger@NetBSD.org> |
bcopy -> memcpy
|
#
c363a9cb |
| 18-Mar-2009 |
cegger <cegger@NetBSD.org> |
bzero -> memset
|
#
82357f6d |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
#
454af1c0 |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
show more ...
|
#
70de9736 |
| 13-Jan-2009 |
yamt <yamt@NetBSD.org> |
g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
#
da1cef74 |
| 12-Jan-2009 |
cegger <cegger@NetBSD.org> |
cast to char to printf DISKPART
|
#
1a9e64b4 |
| 11-Jun-2008 |
drochner <drochner@NetBSD.org> |
mechanical changes to use device_private() or device_lookup_private() to get softcs, makes the code compile under the stricter type checking introduced earlier today
|
#
2ebebb84 |
| 05-Apr-2008 |
cegger <cegger@NetBSD.org> |
make this compile
|
#
1344fa8b |
| 05-Apr-2008 |
cegger <cegger@NetBSD.org> |
use aprint_*_dev and device_xname
|
#
08a754e3 |
| 06-Feb-2008 |
elad <elad@NetBSD.org> |
It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.
Noted by dogcow@, thanks!
|