#
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 ...
|
#
f2da3419 |
| 29-Jan-2012 |
tsutsui <tsutsui@NetBSD.org> |
Add PXA25x based Zaurus SL-C700/750/760/860 support.
All porting work was done by TOYOKURA Atsushi, with several minor adjustments for integration by me and nonaka@.
His SL-C700 first running NetBS
Add PXA25x based Zaurus SL-C700/750/760/860 support.
All porting work was done by TOYOKURA Atsushi, with several minor adjustments for integration by me and nonaka@.
His SL-C700 first running NetBSD/zaurus was demonstrated on NetBSD booth at Open Source Canference 2011 Tokyo/Fall: http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall
Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
show more ...
|
#
09beb475 |
| 19-Jun-2011 |
nonaka <nonaka@NetBSD.org> |
more support SL-C1000.
|
#
9b35e244 |
| 13-Nov-2010 |
uebayasi <uebayasi@NetBSD.org> |
Some missing sys/device.h dependencies.
|
#
671ae660 |
| 12-Dec-2009 |
nonaka <nonaka@NetBSD.org> |
report collect charge state.
|
#
90e9d6e9 |
| 12-Dec-2009 |
nonaka <nonaka@NetBSD.org> |
Use mutex(9).
|
#
a75e0b5b |
| 12-Dec-2009 |
nonaka <nonaka@NetBSD.org> |
use APM_BATT_FLAG_CHARGING.
|
#
9a25b0cb |
| 03-Apr-2009 |
uwe <uwe@NetBSD.org> |
Switch apmdev to use apm(4) structures from dev/apm/apmvar.h. Add batteryid argument to aa_get_powstat method implementations.
|
#
a17a94ca |
| 11-Mar-2009 |
nonaka <nonaka@NetBSD.org> |
Reports the residual quantity of the battery in detail.
|
#
1a686006 |
| 29-Jan-2009 |
nonaka <nonaka@NetBSD.org> |
- device_t/softc split. - use aprint_* function.
|
#
1de7f198 |
| 29-Jul-2007 |
nonaka <nonaka@NetBSD.org> |
Added support to detect AC adapter and charge battery.
|
#
953d3b5b |
| 16-Dec-2006 |
ober <ober@NetBSD.org> |
Zaurus Port from OpenBSD by Nonaka Kimihiro OK gimpy
|