Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/zaurus/dev/zapm.c
RevisionDateAuthorComments
 1.14  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13  24-Apr-2021  thorpej branches: 1.13.8;
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?).
 1.12  29-Jan-2012  tsutsui branches: 1.12.62;
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).
 1.11  19-Jun-2011  nonaka branches: 1.11.2; 1.11.6;
more support SL-C1000.
 1.10  13-Nov-2010  uebayasi branches: 1.10.6;
Some missing sys/device.h dependencies.
 1.9  12-Dec-2009  nonaka branches: 1.9.4;
report collect charge state.
 1.8  12-Dec-2009  nonaka Use mutex(9).
 1.7  12-Dec-2009  nonaka use APM_BATT_FLAG_CHARGING.
 1.6  03-Apr-2009  uwe Switch apmdev to use apm(4) structures from dev/apm/apmvar.h.
Add batteryid argument to aa_get_powstat method implementations.
 1.5  11-Mar-2009  nonaka Reports the residual quantity of the battery in detail.
 1.4  29-Jan-2009  nonaka branches: 1.4.2;
- device_t/softc split.
- use aprint_* function.
 1.3  29-Jul-2007  nonaka branches: 1.3.6; 1.3.8; 1.3.12; 1.3.36; 1.3.44;
Added support to detect AC adapter and charge battery.
 1.2  30-Dec-2006  nonaka branches: 1.2.6;
remove unused files.
 1.1  16-Dec-2006  ober branches: 1.1.2;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.2.2  18-Dec-2006  yamt sync with head.
 1.1.2.1  16-Dec-2006  yamt file zapm.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.6.1  20-Aug-2007  ad Sync with HEAD.
 1.3.44.2  28-Apr-2009  skrll Sync with HEAD.
 1.3.44.1  03-Mar-2009  skrll Sync with HEAD.
 1.3.36.2  11-Mar-2010  yamt sync with head
 1.3.36.1  04-May-2009  yamt sync with head.
 1.3.12.2  03-Sep-2007  yamt sync with head.
 1.3.12.1  29-Jul-2007  yamt file zapm.c was added on branch yamt-lazymbuf on 2007-09-03 14:31:41 +0000
 1.3.8.2  15-Aug-2007  skrll Sync with HEAD.
 1.3.8.1  29-Jul-2007  skrll file zapm.c was added on branch nick-csl-alignment on 2007-08-15 13:48:03 +0000
 1.3.6.2  07-Aug-2007  matt Sync with HEAD.
 1.3.6.1  29-Jul-2007  matt file zapm.c was added on branch matt-mips64 on 2007-08-07 18:05:57 +0000
 1.4.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.4.1  05-Mar-2011  rmind sync with head
 1.10.6.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.11.6.1  18-Feb-2012  mrg merge to -current.
 1.11.2.1  17-Apr-2012  yamt sync with head
 1.12.62.1  23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.13.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed