Commit Graph

102 Commits

Author SHA1 Message Date
christos
953e0bb7b8 fix debugging printf 2013-03-06 04:22:03 +00:00
christos
3fdfd2de8e Deal with Foxconn NanoPC nT-i1250 returning BAT_FAIL and don't infinite loop
From OpenBSD.
2013-03-06 03:26:17 +00:00
jdc
343abb5591 Add the extra keys found on the Tadpole SPARCle to the keysym list. 2012-10-13 17:51:51 +00:00
jdc
b0cdfa37f7 Add two flags to keyboard/mouse attachment:
PCKBC_CANT_TRANSLATE for keyboards that cannot translate to XT scancodes
  PCKBC_NEED_AUXWRITE for mice that don't probe first time
These flags can be set by the port-specific attachments.

Add the translation table and function to handle set 2 to set 1 keyboard
translation in software.

Based on OpenBSD sys/dev/ic/pckbc.c revisions 1.10, 1.16, 1.17, and
sys/dev/pckbc/pckbd.c revision 1.15, and 8042 scan code information at:

  http://www.computer-engineering.org/ps2keyboard/

Note, that this changes the signature of pckbc_cnattach(), so ride the
kernel version bump for namei.
2012-10-13 17:51:28 +00:00
dsl
f4005a420d Remove a couple of (void *) casts added in the previous commin.
They aren't needed here (script error).
2012-06-03 13:52:46 +00:00
dsl
e21a34c25e Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
jmcneill
b2424d9a22 add support for elantech (v2) touchpads that report input pressure 2012-01-07 10:27:58 +00:00
jakllsch
eefea85339 Correct and improve some comments. Collect unused variables. Add a define. 2011-09-10 18:38:20 +00:00
jakllsch
2eb0dcce4e Replace pms_synaptics_send_command() and identical pms_elantech_send_command()
with pms_sliced_command().  Linux shows that this sequence can also be used by
"Logitech PS/2++" protocol as well.
2011-09-09 14:29:47 +00:00
jakllsch
33419b02ae const-ify input command buffer argument to
pckbport_poll_cmd and pckbport_enqueue_cmd.
2011-09-09 14:00:01 +00:00
jakllsch
9779175e56 Sprinkle static. 2011-09-08 16:34:09 +00:00
jakllsch
e09b9d681e Cosmetic changes. 2011-09-08 15:27:50 +00:00
jakllsch
4df4fc4c6f Make whitespace more consistent. 2011-09-08 15:26:26 +00:00
jakllsch
3d6f16cbff options PMS_DISABLE_POWERHOOK has been obsolete for a while now,
remove what little still remains of it.
2011-09-07 19:05:13 +00:00
christos
e55e3f51cc fixes from gilbert dot fernandes at orange dot fr 2011-07-22 23:22:38 +00:00
christos
f00e05ebcb fixes from OpenBSD 2011-07-22 19:20:28 +00:00
christos
f11ae0d12b PR/35473: Wigcher Spanninga: Add Dutch keyboard support to wscons 2011-07-22 18:17:11 +00:00
joerg
c22277f893 Use proper format string 2011-05-24 16:42:53 +00:00
cegger
849bcd741c add PS/2 registers from synaptics spec:
PMS_RESET_WRAP_MODE, PMS_SET_WRAP_MODE, PMS_ACK, PMS_ERROR and PMS_RESEND

while here use #define<tab> consistently.
2011-02-08 07:32:47 +00:00
cegger
a40029a856 use aprint_debug_dev and get rid of SYNAPTICSDEBUG 2011-01-29 20:37:24 +00:00
uebayasi
1d247bb84c wakeup needs sys/proc.h. 2010-11-15 05:58:18 +00:00
plunky
56e30c61a6 send the SET_SCALE11 command before the 'sliced' command as per the
Linux driver (and elantech(4)), via PR kern/42853
2010-03-21 20:04:43 +00:00
plunky
4cac2374d5 Extended capability probes can confuse the passthrough device,
reset the touchpad on enable to cure that.
2010-03-21 19:57:05 +00:00
plunky
88c4db2ecc some definitions from the Linux driver (via PR kern/42853) 2010-03-21 19:53:52 +00:00
dyoung
c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
dyoung
cd6e1fbf91 Expand PMF_FN_* macros. 2010-01-08 19:53:10 +00:00
ahoka
2e4db2573f Add hungarian qwertz keyboard layout. 2009-07-28 18:48:27 +00:00
jakllsch
18f1b5273b Ignore scancodes E0 2A, E0 AA, E0 36, E0 B6 when decoding.
For the 10 keys on the editing keypad, these prefix/postfix
scancodes indicate the state of the Left Shift and Right Shift
keys and Num Lock indicator.

This change prevents a spurious WSCONS_EVENT_KEY_UP event upon
press as well as the corresponding WSCONS_EVENT_KEY_DOWN event
upon release.
2009-07-16 20:44:54 +00:00
tonnerre
8faae88204 Add support for Swiss german kezboard to wskbd.
Contributed by Marc Balmer.
2009-06-13 20:21:56 +00:00
mkirby
ff12b9febc Add a Czech (QWERTY) keyboard layout, and teach wscons about latin 2 characters.
Original code from Lubomir Kundrak, adapted to current and cleaned up by me.

Fixes PR kern/16216

ok agc@ jdc@
2009-04-06 17:32:09 +00:00
ad
0458d57a95 use aprint_error 2009-03-08 15:06:56 +00:00
ghen
a349a96a6f Enable Colemak altgr keys. 2009-02-03 17:50:28 +00:00
jmcneill
9f9ac957a5 Silence printf in common "device not found" error path. 2008-12-30 10:44:30 +00:00
jmcneill
0af0b213b5 Remove debug printfs 2008-12-14 00:53:52 +00:00
jmcneill
3e8db25945 Add Elantech multi-touch driver. 2008-12-14 00:42:33 +00:00
drochner
733bb117b5 remove a KBC_ENABLE call in the console poll method -- this was
just a workaround and is not necessary anymore
2008-06-11 17:35:02 +00:00
ghen
41f841e610 Add support for the Colemak keyboard layout variant, see http://colemak.com 2008-05-21 07:39:24 +00:00
ad
1498ad220e Make various bits of debug code compile again. 2008-04-30 14:07:13 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cube
88906c66df Use proper types. 2008-03-15 18:59:07 +00:00
cube
7582ef2fff Split device_t and softc for pckbd(4) and pms(4). 2008-03-15 18:46:22 +00:00
dyoung
f612df5fb6 Use PMF_FN_ARGS, PMF_FN_PROTO. 2008-02-29 06:38:28 +00:00
joerg
36e75d7a01 Ensure that the keyboard is enabled before polling it.
This allows pressing a key to reboot the machine.
2008-02-21 01:42:20 +00:00
jmcneill
a0a5798f83 Change synaptics 'unusual delay' printf to aprint_debug. I'm tired of
seeing it over and over again.
2008-01-28 22:30:27 +00:00
jmcneill
1ec278b34c Don't call do_enable on synaptics resume if !sc->sc_enabled 2008-01-28 22:29:00 +00:00
jmcneill
6d105ec7c2 De-noisify resume handler. 2008-01-28 22:28:32 +00:00
dyoung
636e434283 Support pcppi(4) detachment.
Use device_t, device_private().  Get rid of a struct device * cast.
2008-01-10 07:58:39 +00:00
christos
d879c8360a defflag one moe variable. 2008-01-06 19:42:33 +00:00
ad
0664a0459b Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
lukem
388339aa58 use __KERNEL_RCSID() 2007-12-11 11:25:46 +00:00