Home | History | Annotate | Download | only in vr
History log of /src/sys/arch/hpcmips/vr/vrkiu.c
RevisionDateAuthorComments
 1.42  03-Feb-2025  andvar fix various typos in comments.
 1.41  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.40  24-Apr-2021  thorpej branches: 1.40.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.39  27-Oct-2012  chs branches: 1.39.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.38  18-Mar-2009  cegger branches: 1.38.12; 1.38.22;
Ansify function definitions w/o arguments. Generated with sed.
 1.37  11-Dec-2005  christos branches: 1.37.78; 1.37.86; 1.37.92;
merge ktrace-lwp.
 1.36  13-Mar-2004  bjh21 Remove needless includes of <dev/pckbc/wskbdmap_mfii.h>.
 1.35  23-Oct-2003  he Correct a few more instances where NULL was used in an integral context.
 1.34  15-Jul-2003  lukem __KERNEL_RCSID()
 1.33  02-Oct-2002  thorpej branches: 1.33.6;
Use CFATTACH_DECL().
 1.32  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.31  10-Mar-2002  takemura Attached vrkiu at vrc4173bcu.
 1.30  27-Jan-2002  takemura Added vripif.
 1.29  16-Sep-2001  uch branches: 1.29.4;
ANSIfy, KNF.
 1.28  11-Jun-2001  enami branches: 1.28.2; 1.28.4;
make GENERIC compile again.
 1.27  11-Jun-2001  enami Move some struct definition into header file.
 1.26  22-Feb-2001  uch branches: 1.26.2;
hpc common files are moved to dev/hpc.
 1.25  21-Sep-2000  takemura skbd -> hpckbd. hpckbd supports vrkiu as well as m38813c and tc5165.
 1.24  05-Aug-2000  shin detect and eliminate phantom keys.
 1.23  22-Jul-2000  takemura vrkiu_getc() will call over and over. but we want to see 'not implemented'
only once.
 1.22  03-Jun-2000  takemura branches: 1.22.2;
Add platid, VADEM CLIO C-1000 and C1050.
Note: CLIO C-1000 is identical with SHARP Tripad PV6000.
 1.21  04-May-2000  takemura branches: 1.21.2;
Raw keyboard mode support. I'd tested this on MC/R530.
I don't sure if skbd work or not.
 1.20  04-May-2000  shin fix scancode -> keycode mappings:

MC-CS arrow keys
PV-6000 semicolon and apostrophe
 1.19  31-Mar-2000  jun add Mobile Pro 700
 1.18  13-Mar-2000  sato HPC/PsPC keyboard types.
 1.17  11-Mar-2000  shin fix PV-6000/C-1000 keycode mapping.
 1.16  25-Feb-2000  mycroft Fix an obscure bug:
If we enter DDB from the keyboard, kc_scandata[] wasn't updated before the
debugger was entered, and the first call to cngetc() would see the ESC and
stack another DDB entry on top. This was... poor.
 1.15  18-Feb-2000  mycroft Make the z50 tab key work.
 1.14  06-Feb-2000  dbj choose first keymap that matches.
Otherwise, the NEC MobilePro 770 chooses the wrong one.
This is consistent with keymap searching order from before revision 1.12,
although I haven't investigated why choosing the last match instead of the first
causes the MobilePro 770 to lose
 1.13  28-Jan-2000  takemura Delete unused lines.
 1.12  22-Jan-2000  takemura Fix a problem which is reported in PR port-hpcmips/9207.
Vrkiu_cngetc() had returned WSCONS_EVENT_ALL_KEYS_UP if there are no event to
report. Modification keys like shift-key had been canceled by that event.
 1.11  17-Jan-2000  shin move keymap initialization into vrkiu_init().
 1.10  11-Dec-1999  castor Replace unused keys with IGN instead of UNK for NEC MobilePro 750c,
to match usage of other systems.
Also, modify ALT keys to return AltL keysym so debugger key sequence
will work.
 1.9  09-Dec-1999  jun MobilePro750c keyboard mapping table contributed by "Castor Fu" <castor@geocast.com>
 1.8  09-Dec-1999  jun add mobilepro750c_keytrans
 1.7  29-Nov-1999  shin fix Fujitsu INTERTOP CX300 keymap.
 1.6  22-Nov-1999  shin forgot to change 'VRKIU_LAYOUT' to 'PCKBD_LAYOUT'.
 1.5  21-Nov-1999  shin add scan code mapping for

IBM WorkPad z50
NEC MobilePro 770, 800
Sharp Tripad PV6000 / Vadem Clio
NEC MC-CS series
Fujitsu Intertop CX300

change keyboard layout according to model(default).
add options PCKBD_LAYOUT to override default.
 1.4  05-Nov-1999  takemura branches: 1.4.2;
Clear interrupt register before check keys.
 1.3  03-Nov-1999  enami make sure to sync mask bit and array index.
 1.2  24-Oct-1999  takemura Wsdisplay and wskbd are supported as a console device.
 1.1  16-Sep-1999  takemura branches: 1.1.1;
Initial revision
 1.1.1.1  16-Sep-1999  takemura branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6;
Import NetBSD/hpcmips source files from hpcmips repository.
file list:
sys/arch/hpcmips/
distrib/hpcmips/
etc/etc.hpcmips/
lib/libc/arch/mips/fplib/
lib/libc/arch/mips/fplib/Makefile.inc
lib/libc/arch/mips/fplib/environment.h
lib/libc/arch/mips/fplib/fplib_glue.c
lib/libc/arch/mips/fplib/fplib_libc.c
lib/libc/arch/mips/fplib/hpcmips-gcc.h
lib/libc/arch/mips/fplib/softfloat-macros.h
lib/libc/arch/mips/fplib/softfloat-specialize.h
lib/libc/arch/mips/fplib/softfloat.c
lib/libc/arch/mips/fplib/softfloat.h
lib/libc/arch/mips/gen/ieee.h
lib/libc/arch/mips/gen/sf_fabs.c
lib/libc/arch/mips/gen/sf_flt_rounds.c
lib/libc/arch/mips/gen/sf_fpgetmask.c
lib/libc/arch/mips/gen/sf_fpgetround.c
lib/libc/arch/mips/gen/sf_fpgetsticky.c
lib/libc/arch/mips/gen/sf_fpsetmask.c
lib/libc/arch/mips/gen/sf_fpsetround.c
lib/libc/arch/mips/gen/sf_fpsetsticky.c
lib/libc/arch/mips/gen/sf_isinf.c
lib/libc/arch/mips/gen/sf_ldexp.c
lib/libc/arch/mips/gen/sf_modf.c
 1.1.1.1.6.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.1.1.4.1  15-Nov-1999  fvdl Sync with -current
 1.1.1.1.2.2  12-Mar-2001  bouyer Sync with HEAD.
 1.1.1.1.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.2.2  05-Nov-1999  takemura Clear interrupt register before check keys.
 1.4.2.1  05-Nov-1999  takemura file vrkiu.c was added on branch comdex-fall-1999 on 1999-11-05 04:28:15 +0000
 1.21.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.22.2.2  10-Aug-2000  shin pull up revision 1.24 (Approved by releng-1-5):

detect and eliminate phantom keys.
 1.22.2.1  06-Aug-2000  takemura Pull up revision 1.23 (requested by takemura)

vrkiu_getc() will call over and over. but we want to see 'not implemented'
only once.
 1.26.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.28.4.1  01-Oct-2001  fvdl Catch up with -current.
 1.28.2.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.28.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.28.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.28.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.29.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.29.4.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.29.4.2  28-Feb-2002  nathanw Catch up to -current.
 1.29.4.1  16-Sep-2001  nathanw file vrkiu.c was added on branch nathanw_sa on 2002-02-28 04:10:07 +0000
 1.33.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.33.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.33.6.1  03-Aug-2004  skrll Sync with HEAD
 1.37.92.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.37.86.1  28-Apr-2009  skrll Sync with HEAD.
 1.37.78.1  04-May-2009  yamt sync with head.
 1.38.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.38.12.1  30-Oct-2012  yamt sync with head
 1.39.52.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.40.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed