#
da38dc41 |
| 19-Jan-2022 |
thorpej <thorpej@NetBSD.org> |
Pass the device_t into spi_configure(), and make the API contract that spi_configure() will print errors if they occur; the driver is off the hook.
|
#
93f31c05 |
| 19-Jan-2022 |
thorpej <thorpej@NetBSD.org> |
Probe / match routines should not have side-effects: do the spi_configure() calls in the attach routines.
|
#
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 ...
|
#
01632a17 |
| 27-Jan-2021 |
thorpej <thorpej@NetBSD.org> |
Use DEVICE_COMPAT_EOL.
|
#
3f1bcda8 |
| 17-Jan-2021 |
thorpej <thorpej@NetBSD.org> |
Use designated initializers and a consistent termination style in compat_data[].
|
#
6401b2e2 |
| 21-Aug-2019 |
martin <martin@NetBSD.org> |
Make this at least compile - I have no way to test.
|
#
7c1413c2 |
| 19-Aug-2019 |
hkenken <hkenken@NetBSD.org> |
Fix typo.
|
#
a0ea7d17 |
| 04-Jul-2019 |
hkenken <hkenken@NetBSD.org> |
Avoid workqueue_check_duplication().
|
#
4c296152 |
| 14-Dec-2015 |
hkenken <hkenken@NetBSD.org> |
use workqueue(9)
|
#
b5f9bdcb |
| 29-Mar-2014 |
hkenken <hkenken@NetBSD.org> |
Add optical joystick support for NetWalker. + OJ6SH-T25 (Sharp "Optical TOUCH CRUISER" sensor) + 2 Mouse buttons (GPIO)
|