Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcarm/dev/j720tp.c
RevisionDateAuthorComments
 1.15  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.14  30-Aug-2021  rin Fix build without WSDISPLAY_COMPAT_RAWKBD.
 1.13  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12  24-Apr-2021  thorpej branches: 1.12.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.11  25-Feb-2014  pooka branches: 1.11.44;
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.10  29-May-2009  rjs branches: 1.10.12; 1.10.22; 1.10.26;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.9  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.8  26-Oct-2007  peter branches: 1.8.16; 1.8.18; 1.8.20;
Call callout_init before callout_stop.
 1.7  17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6  12-Jul-2007  he branches: 1.6.6; 1.6.8; 1.6.10; 1.6.14;
Adapt to the new signature of callout_init().
 1.5  04-Mar-2007  christos branches: 1.5.2; 1.5.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4  12-Nov-2006  plunky branches: 1.4.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.3  07-Oct-2006  peter Add support for touches on the HP hard icons, mostly copied from hpcsh but
also with support for raw kbd (for X).

No objection on port-hpcarm.
 1.2  27-Jun-2006  peter branches: 1.2.4; 1.2.6; 1.2.8;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.1  04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.12; 1.1.14;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.1.14.5  27-Oct-2007  yamt sync with head.
 1.1.14.4  03-Sep-2007  yamt sync with head.
 1.1.14.3  30-Dec-2006  yamt sync with head.
 1.1.14.2  21-Jun-2006  yamt sync with head.
 1.1.14.1  04-Mar-2006  yamt file j720tp.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +0000
 1.1.12.1  13-Jul-2006  gdamore Merge from HEAD.
 1.1.8.2  22-Apr-2006  simonb Sync with head.
 1.1.8.1  04-Mar-2006  simonb file j720tp.c was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.1  11-Aug-2006  yamt sync with head
 1.2.8.2  10-Dec-2006  yamt sync with head.
 1.2.8.1  22-Oct-2006  yamt sync with head
 1.2.6.2  09-Sep-2006  rpaulo sync with head
 1.2.6.1  27-Jun-2006  rpaulo file j720tp.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.2.4.1  18-Nov-2006  ad Sync with head.
 1.4.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.5.10.1  03-Oct-2007  garbled Sync with HEAD
 1.5.2.2  03-Dec-2007  ad Sync with HEAD.
 1.5.2.1  15-Jul-2007  ad Sync with head.
 1.6.14.1  13-Nov-2007  bouyer Sync with HEAD
 1.6.10.1  06-Nov-2007  matt sync with HEAD
 1.6.8.1  28-Oct-2007  joerg Sync with HEAD.
 1.6.6.2  01-Nov-2007  rjs Sync with HEAD.
 1.6.6.1  06-Oct-2007  rjs Switch to new interrupt code.
 1.8.20.2  20-Jun-2009  yamt sync with head
 1.8.20.1  16-May-2008  yamt sync with head.
 1.8.18.1  18-May-2008  yamt sync with head.
 1.8.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.10.26.1  18-May-2014  rmind sync with head
 1.10.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.12.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.44.1  02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.12.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed