History log of /openbsd-current/sys/dev/ic/pckbcvar.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.17 25-Jul-2023 miod

Extend the PCKBC_CANT_TRANSLATE feature, specific to Tadpole/RDI hardware,
to also support scan code set #3 in addition to the existing scan code set #2.

This makes the built-in keyboard on the Tadpole UltraBook IIe work.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.16 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.15 24-May-2015 miod

Follow the recent pckbc@isa changes and always establish all the necessary
interrupts at pckbc attach time, and get rid of the `intr_establish'
pckbc callback.

Tested on hppa (gsckbc) and sgi (pckbc@hpc); not tested on sparc64 (pckbc@ebus)
but this attachment was already behaving this way and its intr_establish
callback was an empty function.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.14 23-May-2013 tobias

Revert Active PS/2 support for now, until we find a solution suitable
for chipsets which stopped working.

ok mpi


# 1.13 20-Apr-2013 tobias

Enable active PS/2 multiplexing if available.
Supported for i386 and amd64 except SMALL_KERNEL.

Based on Miod's former work on this subject.

ok mpi


Revision tags: OPENBSD_5_3_BASE
# 1.12 10-Aug-2012 shadchin

simplify pckbc_xt_translation()
* call only for set translation on (once in /sys/dev/pckbd.c)
therefore we can delete unused code.
* change behavior (more standard) - return zero on success

ok miod@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 02-Feb-2012 deraadt

disable the polling timeout when we suspend; discovered by some code
guenther is working on
ok miod


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.10 23-Nov-2010 shadchin

removed slot argument of function pckbc_cnattach
because it is always PCKBC_KBD_SLOT

ok krw@, miod@


Revision tags: OPENBSD_4_8_BASE
# 1.9 22-Jul-2010 deraadt

Reset the keyboard controller on resume, and also alert the children
(pckbd and pms) to do their part
started by mlarkin, cleaned up by me
ok miod


# 1.8 21-Jul-2010 miod

Disable the heuristics for legacy free systems if pckbc flags are set to 1
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.7 29-Jul-2008 miod

Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), based
on an attachment dependent flag; the Tadople SPARCLE needs it.
ok kettenis@ deraadt@


# 1.6 16-Jul-2008 miod

Add a new parameter to pckbc_cnattach(): flags to put in the pckbc bowels.
For now, only one such flag is defined, PCKBC_CANT_TRANSLATE. It hints
pckbc that the device does not behave correctly to the ``set translation''
commands.

Set this flag if we are running on a Tadpole Ultrabook machine, which needs it.
This makes the built-in keyboard work correctly on this laptop (with the
help of the software translation pckbd diff).

tested & ok kettenis@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 31-Jan-2007 mickey

run a timeout (calling intr handler) to recover from in buffer oflows that make no ints; w/ help from miod@ and ok miod@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.4 02-Nov-2004 miod

Remove __HAVE_NWSCONS and related remnants of pre-wscons days; no functional
change.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.3 02-Apr-2004 deraadt

remove terms 3 & 4 for drochner@NetBSD.org; as seen on netbsd lists


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.2 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.1 13-Nov-2000 aaron

branches: 1.1.4; 1.1.8;
Machine-independent PC-like keyboard driver; from NetBSD. XXX - Not used
anywhere quite yet, but useful to have these files in the tree while we work
towards wscons for i386 and alpha.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.15 24-May-2015 miod

Follow the recent pckbc@isa changes and always establish all the necessary
interrupts at pckbc attach time, and get rid of the `intr_establish'
pckbc callback.

Tested on hppa (gsckbc) and sgi (pckbc@hpc); not tested on sparc64 (pckbc@ebus)
but this attachment was already behaving this way and its intr_establish
callback was an empty function.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.14 23-May-2013 tobias

Revert Active PS/2 support for now, until we find a solution suitable
for chipsets which stopped working.

ok mpi


# 1.13 20-Apr-2013 tobias

Enable active PS/2 multiplexing if available.
Supported for i386 and amd64 except SMALL_KERNEL.

Based on Miod's former work on this subject.

ok mpi


Revision tags: OPENBSD_5_3_BASE
# 1.12 10-Aug-2012 shadchin

simplify pckbc_xt_translation()
* call only for set translation on (once in /sys/dev/pckbd.c)
therefore we can delete unused code.
* change behavior (more standard) - return zero on success

ok miod@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 02-Feb-2012 deraadt

disable the polling timeout when we suspend; discovered by some code
guenther is working on
ok miod


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.10 23-Nov-2010 shadchin

removed slot argument of function pckbc_cnattach
because it is always PCKBC_KBD_SLOT

ok krw@, miod@


Revision tags: OPENBSD_4_8_BASE
# 1.9 22-Jul-2010 deraadt

Reset the keyboard controller on resume, and also alert the children
(pckbd and pms) to do their part
started by mlarkin, cleaned up by me
ok miod


# 1.8 21-Jul-2010 miod

Disable the heuristics for legacy free systems if pckbc flags are set to 1
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.7 29-Jul-2008 miod

Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), based
on an attachment dependent flag; the Tadople SPARCLE needs it.
ok kettenis@ deraadt@


# 1.6 16-Jul-2008 miod

Add a new parameter to pckbc_cnattach(): flags to put in the pckbc bowels.
For now, only one such flag is defined, PCKBC_CANT_TRANSLATE. It hints
pckbc that the device does not behave correctly to the ``set translation''
commands.

Set this flag if we are running on a Tadpole Ultrabook machine, which needs it.
This makes the built-in keyboard work correctly on this laptop (with the
help of the software translation pckbd diff).

tested & ok kettenis@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 31-Jan-2007 mickey

run a timeout (calling intr handler) to recover from in buffer oflows that make no ints; w/ help from miod@ and ok miod@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.4 02-Nov-2004 miod

Remove __HAVE_NWSCONS and related remnants of pre-wscons days; no functional
change.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.3 02-Apr-2004 deraadt

remove terms 3 & 4 for drochner@NetBSD.org; as seen on netbsd lists


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.2 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.1 13-Nov-2000 aaron

branches: 1.1.4; 1.1.8;
Machine-independent PC-like keyboard driver; from NetBSD. XXX - Not used
anywhere quite yet, but useful to have these files in the tree while we work
towards wscons for i386 and alpha.