summaryrefslogtreecommitdiff
path: root/sys/dev/pckbc
AgeCommit message (Collapse)Author
2011-10-17Blacklist alps devices that might have a clitpad untill the driver get fixedMartin Pieuchot
2011-10-17Fix the synchronization of some alps pads, issue reported by Bryan (brakeb)Martin Pieuchot
on misc@ Similar diff tested by okan@ and Mathieu (ptr.jetable) ok shadchin@
2011-10-04Add support for ALPS touchpads.Martin Pieuchot
This also fix the "slow touchpad" problem due to the fact that some ALPS devices respond to some Synaptics messages and stay in un half-configured state. Tested by Rivo Nurges, armani@, shadchin@ and matthieu@ ok shadchin@
2011-08-24revert the last commit. pms_enable_alps() does not guaranteeAlexandr Shadchin
the accuracy detection ALPS. ok mpi@
2011-08-22Adding stub for ALPS touchpad, which not supported yet.Alexandr Shadchin
This fixed "react strangely" when the pms driver probes for a synaptic-compatible touchpad. Tested and ok mpi@
2011-08-17Adding support Synaptics touchpad. Thanks all for test.Alexandr Shadchin
ok miod@, matthieu@
2011-04-05Icelandic keyboard mapping. Commited from an Icelandic keyboard.Miod Vallat
2011-03-17Ansify non-ansified function definitions. No functional change.Alexandr Shadchin
ok miod@
2011-01-03remove sc->sc_kbcslot, as is always PCKBC_AUX_SLOTAlexandr Shadchin
ok krw, miod
2010-12-27cleanup pms_enable_intelli: magic numbers -> definesAlexandr Shadchin
ok krw, miod
2010-12-27remove unneeded MakefileAlexandr Shadchin
ok krw, miod
2010-12-24fix crash:Alexandr Shadchin
after boot and before the first activation (wsmoused or X), sc->protocol is not initialized, and any call ioctl lead to crash (example 'wsconsctl -a') thanks and ok krw@
2010-12-23Add a common interface for various devicesAlexandr Shadchin
This is to make it easier to add additional mice types in future ok krw@, miod@, nicm@
2010-12-16small cleanup ioctl WSKBDIO_GETLEDSAlexandr Shadchin
ok miod@
2010-12-03removed slot argument of function pckbd_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok miod@, krw@
2010-11-15Aesthetic improvements to make it appear more normal and knf'y.Kenneth R Westerback
No functional change. From Alexandr Scadchin again.
2010-11-15More cleanup. Add DEVNAME() macro and generic functions for variousKenneth R Westerback
actions (set/get/reset/enable/disable) to wrap pms_cmd() invocations. No functional change. From Alexandr Scadchin again.
2010-11-05Minor code cleanups. No functional change. From Alexandr Shadchin.Kenneth R Westerback
ok nicm@
2010-10-19Unify some error messages to simplify reset code. No functionalKenneth R Westerback
change. ok nicm@ From shadchin.
2010-10-17Ansify non-ansified function definitions. No functional change.Kenneth R Westerback
ok nicm@ From shadchin.
2010-10-16Remove some duplicated code. No need to flush/reset at attach and thenKenneth R Westerback
again at PMS_STATE_CHANGE events. Tested my myself, ian@ and nicm@ without regressions on usual problematic machines. From shadchin.
2010-10-07Fix some pms(4) vs wsmoused issues. From Alexandr Shadchin viaKenneth R Westerback
tech@. Tested on the usual problematic machines by myself, nicm@ and ian@.
2010-10-02Fix Ian@'s pms keyboard/mouse while keeping my eeePC working.Kenneth R Westerback
For posterity: there is one time when pckbc commands must be thrown, and one time when pckbc commands must be polled. Diff from shadchin. ok miod@
2010-09-29The attach function can return 1 now because there is no more priorityTheo de Raadt
scheme relating to pmsi. from alexandr.shadchin@gmail.com
2010-09-27Make sure the SEND_DEV_ID command is sent synchronously, so the response bufferMiod Vallat
is valid when we look at it. Repairs intellimouse (former pmsi) operation.
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-08-28Provide a way to get < and > symbols on 101-key slovenian layouts; fromMiod Vallat
Zavisa Nikac (firstname dot lastname at inet dot hr)
2010-08-28In pckbd_scancode_translate(), correctly translate the break sequenceMiod Vallat
between scan code sets 1 and 2.
2010-07-30Don't reset pms/pmsi devices when attempting to set the mode. Makes nicm@'s,Kenneth R Westerback
todd@'s and my machines all work as expected. Various other success stories and no reports of failures. Also fix DEBUG compiles by removing a return that was unneeded anyway. "gud" miod@
2010-07-25In pmsi_setintellimode(), make sure we send commands withMiod Vallat
pckbc_enqueue_cmd() if interrupts are enabled at this point.
2010-07-24add suspend/resume code, modelled along pms. on at least one ASUS laptopTheo de Raadt
(which krw is the lucky owner of) this requires a much bigger hammer. we have to reset it and put it back into the right mode ok krw
2010-07-22Don't do anything on suspend/resume for now (there is a diff brewing,Theo de Raadt
but it has some problems still..)
2010-07-22Toggle the mouse through the disabled and enabled states when suspendingTheo de Raadt
and restoring. Fixes most mice.
2010-07-21Disable the heuristics for legacy free systems if pckbc flags are set to 1Miod Vallat
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.
2010-07-08For DVACT_SUSPEND and DVACT_RESUME we should always return success.Theo de Raadt
2009-12-07Support uk.swapctrlcaps as a valid keymap.Owain Ainsworth
ok miod@
2009-11-23pckbd_activate() should return failure if it knows; ok piroftiTheo de Raadt
2009-11-23better style is DVACT_SUSPEND before DVACT_RESUMETheo de Raadt
2009-11-23Fix pckbd and acpihpet suspend/resume cases to fit with the future frameworkPaul Irofti
that's going to get in really soon. Okay mlarkin@, deraadt@.
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-13Forgot to add break to the switch cases. Silly.Paul Irofti
Okay deraadt@.
2009-08-13Add wake/suspend support for pckbd(4).Paul Irofti
Patch initially from mlarkin@. KNF and refactoring by me. Suggestions and okay deraadt@.
2009-05-03Make sure pckbd_scancode_translate() returns a scancode with the break/releaseMiod Vallat
bit set if needed, in all cases. This fixes rawkbd operation on controllers which require the kernel to perform scancode translation. Found by and ok kettenis@
2008-11-21Move #include <dev/pckbc/wskbdmap_mfii.h> after includingRobert Nagy
dev/wscons/wsksymvar.h where struct wskbd_mapdata gets declared. ok miod@
2008-08-09Add the fr-dvorak-be'po layout as fr.dvorak for ps/2 and usb keyboards.Miod Vallat
This is only the simplified layout, which is final; the complete layout with extra symbols is still being discussed.
2008-07-30repair commentTheo de Raadt
2008-07-16If pckbc_xt_translation() fails, do not try to force the keyboard in tableMiod Vallat
1; instead, try table 2 first, then 1: some older keyboards, connected to a castrated 8042, do not know how to talk in table 1 (or worse, will report they do while they don't). If automatic translation is not possible, remember which table the keyboard ended configured in, and convert the scancodes from table 2 to table 1 if necessary. ok kettenis@
2008-07-16It is no longer necessary to regen gsckbdmap after changing this file.Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@