Commit Graph

102 Commits

Author SHA1 Message Date
jmcneill
4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
jmcneill
a0d3b0d7a8 aprintify 2007-12-01 14:35:51 +00:00
ad
a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
dsl
1b3b0fe4f7 include sys/cdefs.h before opt_xxx.h 2007-07-19 22:18:54 +00:00
ad
57410029b0 Initialize callouts before use. 2007-07-09 22:24:38 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
mlelstv
46e95ff4ed add missing W coordinate 2007-03-25 20:28:03 +00:00
mlelstv
f4a46a86ea Handle events from passthrough devices like the Thinkpad 'Navistick'. 2007-03-25 16:26:41 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
uwe
b2962c40b6 Don't call queries "PS/2 commands", it's confusing.
Add queries to read mode and model id (not used yet).
Fix SYNAPTICS_CAP_EXTNUM - it's 3 bits [14:12], not 2.
2007-01-17 23:14:03 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
christos
b4c0be5dc8 avoid empty if bodies. 2006-09-13 00:55:57 +00:00
bjh21
dacb75acff All ports that use the file do so through files.pckbport, so there's no
need to be cautious about including "pckbd.h".  This has the side-effect
that ports using pckbd but not defining __HAVE_NWSCONS will now get pckbd
attached as console if they call pckbport_cnattach(), but I don't think
any such ports exist.
2006-09-03 13:23:15 +00:00
christos
097de97608 reset kbc as the comment said. from joerg. 2006-06-18 20:53:10 +00:00
christos
1251317743 Jared asked me to commit the powerhooks for this 2006-06-18 02:25:18 +00:00
kardel
de4337ab21 merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
christos
89bc0d7869 Greek console keymap from Eye of the Beholder 2006-04-01 23:02:32 +00:00
thorpej
838ee1e0d9 Use device_private(). 2006-03-29 06:51:47 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
rpaulo
67a3f47423 Add a fake entry in pms_protocols array to avoid an out-of-bounds
access in do_enable() if PMS_SYNAPTICS_TOUCHPAD and PMSDEBUG are both
defined.
2005-11-08 22:12:16 +00:00
rpaulo
89c0260a2e s/SYNAPTICS_DEBUG/SYNAPTICSDEBUG/ to keep consistency. 2005-10-26 17:20:19 +00:00
jdolecek
bb7b3655f0 constify 2005-10-24 16:31:54 +00:00
drochner
e6a178f21f kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.
2005-08-25 22:33:18 +00:00
drochner
fa3cb84d62 replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
2005-08-25 18:35:38 +00:00
atatat
df13e3579e Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
2005-06-20 02:49:18 +00:00
christos
9bb3842990 avoid shadowed variable 2005-05-29 22:16:36 +00:00
abs
260edcc4db Fix for portuguese keymap '4' and '+' keys, from Rui Paulo 2005-05-05 22:31:13 +00:00
augustss
5b6d2a575d Make an new option PCKBD_CNATTACH_MAY_FAIL. When this option is set and no
keyboard is detected the pckbd keyboard is not used as the console.

Previously the pckbd keyboard was used as the console as soon as the
kernel had it configured into the kernel.  This is far from ideal on a
machine that has no PS/2 keyboard, but a USB keyboard attached since the
(non-existant) PS/2 keyboard becomes the console instead of the USB keyboard.

For now this option will be off by default to be backwards compatible.
2005-05-04 02:35:22 +00:00
yamt
85ea9d4e2a tweak order of #include to avoid an array of incomplete type.
found by gcc4.
2005-04-29 10:41:18 +00:00
abs
5fed39f04c Fix for Portuguese keymap from Rui Paulo 2005-04-24 08:18:47 +00:00
yamt
2fbfb3ac99 fix static/extern mismatch. found by gcc4. 2005-04-22 14:49:49 +00:00
matt
6cd3611cff P.k.py lp.kcrgow ao mabf ru go oycnn dak. _n.iajf_ t.fxrapeov
Allprk.e xf jrp.v
2005-04-01 05:49:26 +00:00
gavan
b246dedab4 Due to the increasing rarity of legacy keyboards, switch to a more contemporary default
layout for PC style keyboards.
2005-04-01 01:49:52 +00:00
perry
f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
jmcneill
0a95a06218 Fix synaptics touchpad resume, from Kentaro A. Kurahone. 2005-01-27 03:04:31 +00:00
scw
2d0fc26c46 Address PR kern/28990 by making Synaptics Touchpad support contingent
on "options PMS_SYNAPTICS_TOUCHPAD" in the kernel config file. See
the PR for details on why this is necessary.

While here, defflag PMS_DISABLE_POWERHOOK.
2005-01-18 10:22:51 +00:00
uwe
080b48020c Add KB_ES | KB_MACHDEP placeholder for Jornada 680/690 Spanish (ABE). 2005-01-11 01:39:36 +00:00
scw
71d14cde75 Major re-write of the recently-committed Synaptics Touchpad driver,
prompted by jittery and/or random movement during tap gestures, lack
of edge motion, and a general desire to make use of the extra features
available with the native protocol.

 - Ditch the kernel thread; it was overkill for the small amount of
   processing required to deal with touchpad events.

 - If we fail to probe a Synaptics touchpad, issue a RESET command
   to ensure that whatever device is out there is left in a sane
   state (thanks to Reinoud Zandijk for the hint).

 - Completely re-write gesture support.

 - Put the touchpad in 80 packets per second mode and count them so
   they can be used to time gesture durations (instead of using
   mono_time).

 - Enhance up/down button support with options to use them to emulate
   the middle button or Z-axis events (like a traditional wheel mouse).

 - Add 'edge motion'. If a drag gesture is in progress, and the reported
   finger position moves to the touchpad's border region, continue
   to report movement events at a fixed rate as if the finger carried
   on moving in the same direction. This restores some functionality
   usually provided by the touchpad's firmware in PS/2 mode.

 - Filter successive movement events to reduce jitter. When scaling
   movement events, fold the remainder into the next event to prevent
   loss of information during slow/small finger movements. Pointer
   movement is now much more refined.

 - Add support for touchpads which can report more than one finger on
   the pad simultaneously. Optionally use this feature for middle/right
   button emulation (i.e. tap two fingers to emulate middle button).
   This feature is disabled by default (for now) to avoid surprise
   pasting of clipboard text. ;-)
2005-01-02 22:37:12 +00:00
christos
ef8015e649 - cleanup some debugging stuff.
- don't create the sysctl nodes if we don't have a synaptics pad.
2004-12-28 20:47:18 +00:00
christos
81e1a623a6 PR/28774: Kentaro A. Kurahone: Add synaptics touchpad driver 2004-12-24 18:33:06 +00:00
hubertf
fa3cdcf564 Add & document WSKBD_USONLY: In order to strip down the space usage of wscons,
all keymaps except the US english one can be removed from the kernel
with this option, which results in a space gain of about 10kB.

XXX it would be nice if we could strip down more kernel facilities
2004-10-04 00:20:23 +00:00
drochner
96b589fc18 a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
 config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
 on "locators.h"
2004-09-13 12:55:47 +00:00
mycroft
1eb6dd26a9 Allow keypad PgUp/PgDn to scroll as well. 2004-08-14 16:42:36 +00:00
christos
7e7559f105 by popular demand, bind the scroll keys by default. 2004-08-08 19:24:49 +00:00
drochner
ef369e0ed6 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 17:26:53 +00:00
bjh21
39d9753ed9 ANSIfy, un-__P(), and generally KNF. 2004-03-18 21:05:19 +00:00
uwe
050ecd0171 Add KB_FR | KB_MACHDEP placeholder. Need it for the Jornada 680/690
French (ABF) keyboard layout (to be enabled soon).
2004-03-17 04:09:57 +00:00
bjh21
dff5222d3a Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it.  This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111.  The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers.  To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned.  Thy just use rather more function pointers than before.  Tested
on i386 and (with a new host driver) acorn32.  Compiled on several other
affected architectures.
2004-03-13 17:31:33 +00:00