Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcsh/dev/pfckbd.c
RevisionDateAuthorComments
 1.33  01-Jun-2023  andvar fix various typos in comments.
 1.32  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.31  24-Apr-2021  thorpej branches: 1.31.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.30  07-Aug-2017  uwe branches: 1.30.18;
Don't reschedule the callout in the scanning function itself, as that
conflicts with using the same function for polled console.

Makes early ddb work with wscons console again on my Jornada 690.
 1.29  12-Feb-2012  matt branches: 1.29.6; 1.29.22; 1.29.24; 1.29.40;
Change old-style function defintions to C89 prototypes.

Approved by releng.
 1.28  19-Jul-2011  dyoung branches: 1.28.2; 1.28.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.27  05-Apr-2009  uwe Register with pmf(9), tell it we don't need anything.
 1.26  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.25  28-Apr-2008  martin branches: 1.25.8; 1.25.14;
Remove clause 3 and 4 from TNF licenses
 1.24  27-Mar-2008  uwe branches: 1.24.2; 1.24.4;
Convert to use CFATTACH_DECL_NEW (no softc).
 1.23  17-Oct-2007  garbled branches: 1.23.16;
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.22  24-Sep-2007  kiyohara Add psh3pwr.
 1.21  09-Jul-2007  ad branches: 1.21.8; 1.21.10; 1.21.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.20  23-Feb-2006  uwe branches: 1.20.24; 1.20.26; 1.20.32;
Order functions so that there's a logic order.
Add comments. Misc cosmetic.
 1.19  23-Feb-2006  uwe s/STATIC/static/
Propagate "static" to function definitions.
 1.18  21-Jan-2006  uwe branches: 1.18.2; 1.18.4;
pfckbd_input: make edge and mask unsigned ints to avoid lint warning
about obscure semantics change in ANSI C. Saves one extu.w too.
Move edge assignment out of if conditional expression.
 1.17  21-Jan-2006  uwe Use C99 __func__ instead of gcc __FUNCTION__ to make lint happy.
 1.16  11-Dec-2005  christos branches: 1.16.2;
merge ktrace-lwp.
 1.15  23-May-2005  kiyohara branches: 1.15.2;
1. Fixed GPIO bits. (PCCR and PCDR)
2. Save and restore PCDR, PDDR, PEDR.
 1.14  18-Jan-2005  uwe Use uint<N>_t instead of u_int<N>_t.
 1.13  18-Jan-2005  uwe Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does. Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
 1.12  14-Dec-2003  uwe branches: 1.12.8;
Use callout_schedule instead of callout_reset to re-establish keyboard
callouts.

While here, #if 0 the code in pfckbd_callout_hp to read (and ignore)
PFC registers G and H.
 1.11  15-Jul-2003  lukem __KERNEL_RCSID()
 1.10  24-Dec-2002  uwe branches: 1.10.2;
When scanning HP keyboard, disable output on all scan lines except the
one we are currently scanning. This is what Hitachi's sample WinCE
code does. Thanks to YAEGASHI Takeshi for pointing this out!
This makes same row chords work properly, most importantly
Ctrl-@, Ctrl-W, Ctrl-S, Ctrl-Alt-F1 (ctrl row), Ctrl-Alt-F3 (alt row).
 1.9  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7  28-Feb-2002  uch branches: 1.7.12;
Cleanup register definition
 1.6  17-Feb-2002  uch SH3/SH4 common kernel support.
 1.5  29-Jan-2002  uch clean up debug print and configuration.
 1.4  27-Jan-2002  uch clean up debug print and configuration.
 1.3  14-Sep-2001  uch HITACHI PERSONA keyboard support. patch by KIYOHARA Takashi.
 1.2  02-Mar-2001  uch branches: 1.2.2; 1.2.4; 1.2.6;
fix matrix switch initial value.
 1.1  24-Feb-2001  uch Jornada 690 keyboard driver (matrix switch connected SH3 PFC module)
 1.2.6.4  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.6.3  16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.2.6.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2  12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1  02-Mar-2001  bouyer file pfckbd.c was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.2.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.7.12.3  29-Dec-2002  thorpej Sync with HEAD.
 1.7.12.2  18-Oct-2002  nathanw Catch up to -current.
 1.7.12.1  28-Feb-2002  nathanw file pfckbd.c was added on branch nathanw_sa on 2002-10-18 02:37:22 +0000
 1.10.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.10.2.4  24-Jan-2005  skrll Sync with HEAD.
 1.10.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1  03-Aug-2004  skrll Sync with HEAD
 1.12.8.1  29-Apr-2005  kent sync with -current
 1.15.2.3  27-Oct-2007  yamt sync with head.
 1.15.2.2  03-Sep-2007  yamt sync with head.
 1.15.2.1  21-Jun-2006  yamt sync with head.
 1.16.2.2  01-Mar-2006  yamt sync with head.
 1.16.2.1  01-Feb-2006  yamt sync with head.
 1.18.4.1  22-Apr-2006  simonb Sync with head.
 1.18.2.1  09-Sep-2006  rpaulo sync with head
 1.20.32.1  03-Oct-2007  garbled Sync with HEAD
 1.20.26.1  11-Jul-2007  mjf Sync with head.
 1.20.24.2  09-Oct-2007  ad Sync with head.
 1.20.24.1  15-Jul-2007  ad Sync with head.
 1.21.12.1  06-Oct-2007  yamt sync with head.
 1.21.10.1  06-Nov-2007  matt sync with HEAD
 1.21.8.1  02-Oct-2007  joerg Sync with HEAD.
 1.23.16.2  02-Jun-2008  mjf Sync with HEAD.
 1.23.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.24.4.2  04-May-2009  yamt sync with head.
 1.24.4.1  16-May-2008  yamt sync with head.
 1.24.2.1  18-May-2008  yamt sync with head.
 1.25.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.25.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.28.6.1  18-Feb-2012  mrg merge to -current.
 1.28.2.1  17-Apr-2012  yamt sync with head
 1.29.40.1  09-Aug-2017  snj Pull up following revision(s) (requested by uwe in ticket #203):
sys/arch/hpcsh/dev/pfckbd.c: revision 1.30
Don't reschedule the callout in the scanning function itself, as that
conflicts with using the same function for polled console.
Makes early ddb work with wscons console again on my Jornada 690.
 1.29.24.1  28-Aug-2017  skrll Sync with HEAD
 1.29.22.1  09-Aug-2017  snj Pull up following revision(s) (requested by uwe in ticket #1466):
sys/arch/hpcsh/dev/pfckbd.c: revision 1.30
Don't reschedule the callout in the scanning function itself, as that
conflicts with using the same function for polled console.
Makes early ddb work with wscons console again on my Jornada 690.
 1.29.6.1  03-Dec-2017  jdolecek update from HEAD
 1.30.18.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.31.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed