| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
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?).
|
|
|
|
|
|
and remove code to handle failures that can no longer happen.
|
|
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
|
|
This covers (I think) all the MI headers outside of external/ (and dist/).
|
|
|
|
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
|
|
Noted by maxv@, compile-tested for sparc.
|
|
All have been set to "nodiscard"; some should get a real implementation.
|
|
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
|
|
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.
|
|
- put variables only inside #ifdef inside that same #ifdef.
use __USE() where appropriate.
|
|
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
|
|
Approved by releng.
|
|
preceding kmem-vmem-pool-uvm patch
releng@ acknowledged
|
|
|
|
remove no-longer-valid wustl email address for me.
based on diff that rmind@ sent me.
no functional change with this commit.
|
|
|
|
|
|
|
|
|
|
XXX: more in src/sys/arch
|
|
|
|
|
|
|
|
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
|
|
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.)
|
|
|
|
|
|
|
|
|
|
|
|
to get softcs, makes the code compile under the stricter type checking
introduced earlier today
|
|
|
|
|
|
|
|
|
|
Noted by dogcow@, thanks!
|
|
- Add missing '}'
Noted by dogcow@, thanks!
|
|
Done with much help from chuck@, thanks!
|
|
|
|
|
|
destroy of 'struct disk' from attach / detach.
|
|
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
|
|
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
|