Commit Graph

96 Commits

Author SHA1 Message Date
mjl e959b27d7f Typo in comment. From OpenBSD. 2003-10-22 09:04:39 +00:00
manu 15af059557 On some machines, the keyboard is not enabled after a reset, rendering the
console useless. Fix that by explicitely enabling the keyboard when it is
attached.
2003-10-18 09:19:04 +00:00
simonb 90fc39f5b8 Make some variables unsigned since that's the type of parameter they're
passed as to other functions.
2003-09-13 12:31:35 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
uwe d16caf9f8c Add KB_DE | KB_MACHDEP placeholder. Need it for the Jornada 680/690
German (ABD) keyboard layout (to be added soon).
2003-04-23 04:03:58 +00:00
jmmv 013ec8e6f0 Add not sign, currency and cent keys to the spanish keymap.
Fixes my own PR kern/17990.
2003-03-14 15:45:53 +00:00
perry a314df3d18 change t_extended to t_extended0 for consistency with KBR_EXTENDED[01]
and t_extended1
Fix comment to note that PAUSE keycodes are being remaped to 7F, not
BREAK, which isn't strictly accurate by the various pieces of official
documentaiton.
2003-02-05 17:36:16 +00:00
thorpej b75a007d9f Add trailing ; to CFATTACH_DECL. 2002-10-02 16:51:16 +00:00
thorpej 71adb76f75 Use CFATTACH_DECL(). 2002-09-30 21:57:46 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
martin cef25316c6 Following discussion on tech-kern, nuke calls to microtime() and use
mono_time instead. We loose some precision here (depending on hz),
so bump up the reset-mouse threshold quite a bit (from >=25ms to >40ms).
2002-09-13 23:39:05 +00:00
chuck 17162d7b0f only power down on suspend, not standby (sugested by thorpej).
fixes problem noted at bottom of PR#17537.
2002-07-10 02:05:25 +00:00
martin fb950301fe Apply patch from Peter Seebach (in private Mail, similar to the one proposed
in PR kern/17506):

If we reset the mouse and discover a different protocol after the reset
than before, reset it again after one second. This makes protocol detection
after a KVA switched to another machine more reliable and should not affect
the standard situation with one mouse connected to one machine.
2002-07-08 07:43:31 +00:00
bouyer d6f2dbe491 Correct spannish mapping. Fix kern/15509 by Julio Merino <juli@merino.net>. 2002-06-20 21:03:19 +00:00
martin 2a09e1c999 Nuke all useages of polled kbd controller commands when not attaching or
probing.

Make sure to not initialize the protocol more than once, see rev. 1.11 of
the old psm_intelli.c driver (this caused hangs when starting X).

Unify the "ignore garbage" behaviour (which we already did if PMS_STANDARD
protocol was used), the old intelli-driver did the same and on some scroll
mice a stream of garbage is emitted shortly after reset.
2002-05-29 09:30:35 +00:00
martin 40813b3bd4 When using standard (no scroll wheel) protocol, ignore garbage between
two packets (just like the old psm.c driver did). And don't insist on the
first byte having bit 0x08 set.

This makes some odd trackball device work.

Thanks to Tyler Mitchell for reporting and testing.
2002-05-23 19:00:28 +00:00
martin bdd46f7081 (Mostly) backout previous, with some slight modifications.
Restore the reset thread, to make resetting the interface possible while
not blocking interrupts.
Make sure to throw away garbage input while the reset thread is at work
(by setting sc_enabled a bit later).
Issue a PMS_RESET command when resetting to address PR 16788.
2002-05-17 22:49:48 +00:00
jdolecek b631b39a19 Change the reset code to block interrupts and use polled commands; also
eliminate the kthread now that it's not necessary, and use callout instead.
This seems to fix the X mouse freeze problem.

Testing and some debug printf fixes by Martin Husemann.
2002-05-13 21:18:51 +00:00
ad 034f7b1db1 Name the thread after the device. 2002-04-22 15:16:56 +00:00
wiz 6a32f7f6a3 Move psm.c and psmreg.h to pms.c and pmsreg.h, since they contain the
pms (not psm) driver.
Fix a debugging message to print the correct function name.

Approved by Christos.
2002-04-22 10:44:46 +00:00
ad 49afc8d8b9 This file no longer used. 2002-04-18 13:41:35 +00:00
mycroft 36c2231c92 Remove pmsi. 2002-04-14 01:45:29 +00:00
christos 9d9ca1be8b PR/16102: Martin Husemann: psm.c on thinkpad ends up in constant reset cycle. 2002-03-28 21:54:27 +00:00
christos 3ab24c491b fix debugging macros. 2002-03-28 15:21:50 +00:00
christos ce4e71d1b0 New mouse code from Peter Seebach. 2002-03-20 17:06:51 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
yamt 05bfd84f7c fix a bug that timevals are compared incorrectly. 2002-03-13 04:36:49 +00:00
christos 7ef1545f01 PR/15839: Peter Seebach: PS/2 driver improvements 2002-03-10 22:21:21 +00:00
jmcneill cc72a54933 Add constraints to allow for disabling PS/2 mouse powerhooks. As requested
by Chuck Cranor.

To disable powerhooks with the pms and pmsi drivers, respectively:
  options PMS_DISABLE_POWERHOOK
  options PMSI_DISABLE_POWERHOOK
2002-02-27 00:30:07 +00:00
jmcneill 8a10d0653d Make sure not to set the intellimouse mode more than once at boot, but still
reset the intellimouse mode on suspend/resume. Fixes problems with pmsi mice
locking the keyboard controller when X starts.
2002-01-25 14:53:43 +00:00
jmcneill 273ca48725 Add power management hooks to pmsi driver and make sure that the
device is setup for the proper intellimode on resume.
2002-01-14 21:56:10 +00:00
jdolecek e71e5045dc Back off rev. 1.21, this is going to be handled via userland keymap file.
Discussed with Martin Husemann.
2001-12-24 12:39:55 +00:00
fvdl 14deefd5b1 pckbd_enable is called during autoconfig. Using pckbc_enqueue_cmd at
that time will have bad results, such as queue corruption because
of multiple TAILQ_INSERTs, etc, because it's not designed to work
in an interrupt/context-free environment. Use pckbc_poll_cmd instead.
2001-12-09 13:42:01 +00:00
lukem 0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
augustss 6a161b0a72 Add a DISGNOSTIC message. 2001-11-13 17:45:07 +00:00
lukem ab5d9d2b0c add RCSIDs 2001-11-13 07:24:43 +00:00
martin cd67a5ce17 Add polish keyboard map, from Dawid Szyma_ski <dawszy@netbsd.lubin.pl>. 2001-11-11 11:48:56 +00:00
tshiozak 1a1c09790a add power hook to PS/2 mouse driver; some mobile PCs has
unstable pointer, it arbitrarily awake the machine from standby state.
to prevent it, we need to stop the mouse controller before sleeping.
2001-09-13 14:16:12 +00:00
thorpej 4953d4e85f bzero -> memset 2001-07-07 16:51:47 +00:00
simonb b3e7ecfd97 Delete the XXX'd includes of <dev/isa/isavar.h> and <sys/kernel.h>.
These aren't needed.  Tested on i386 and alpha.
2001-06-01 00:38:31 +00:00
jdolecek 372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
lukem 3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
chuck 10ca4fd232 cause the "delete" key to actually send \177 like it used to
(and still does with pccons) rather than \033[3~ ...
2001-01-23 19:25:14 +00:00
aymeric e08387765d The key below <escape> is now ~ (KS_asciitilde) when shifted in the
french layout.
This is consistent with the XFree layout, and is very convenient.
2000-12-20 14:53:18 +00:00
mjl 2898929f94 Revert previous since the finnish keymap is already present under
the name "sv". Note to myself: Read PRs completely before acting.
Note to Santa Claus: I want a mailing list that carries all follow
ups to PRs!
2000-10-13 12:53:23 +00:00
mjl 38fd6528ac Add finnish keymap, from Heikki Kallasjoki in PR/11186. 2000-10-12 12:41:22 +00:00
takemura dcfcbaf8ae - Add ioctl commands to wsdisplay which set/get some LCD status,
backlight, brightness and contrast.
- Add 9 command key symbols which make wskbd to call wsdisplay's
  iocontrol.
- Add special key map variant KB_MACHDEP. This variant does not
  have any real keymap but it's just a placeholder for machine dependent
  maps which will be overwrite by machine dependent keyboard driver.
2000-10-01 03:29:12 +00:00
sommerfeld bcf02ec8ff If rnd is configured into the kernel, do rnd(4) entropy collection
from devices connected to pckbc:
 - Do actual sample collection in pckbc.
 - Add rndsource_element_t to the slot data.
 - Change pckbc_set_inputhandler() to take an additional argument,
the name of the device, which is (eventually) passed into
rnd_attach_source() to identify the source.
 - Change callers of pckbc_set_inputhander() appropriately.
2000-06-05 22:20:54 +00:00
drochner 415552f3db add spanish keymap, data from
Juan Jose Garcia Ripoll <jjgarcia@ind-cr.uclm.es>
2000-05-19 16:40:04 +00:00
tsarna 501c07e5d4 Add an "iopener" keymap variant, giving us.iopener and
us.iopener.swapctrlcaps.  This makes F1 ("Back") into Escape, and shifts
the other keys over by one, so F2-F12 ("Forward"-"Home") become F1-F11.
2000-04-14 23:11:08 +00:00