summaryrefslogtreecommitdiffstats
path: root/sys/dev/hil
AgeCommit message (Collapse)AuthorFilesLines
2019-12-31Convert infinite sleeps to {m,t}sleep_nsec(9).mpi1-2/+3
ok kn@
2017-12-30Delete unnecessary <sys/file.h> includesguenther1-2/+1
ok millert@ krw@
2017-03-11Introduce a new knob to force the first USB keyboard as console input.mpi1-2/+1
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@
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.bru1-10/+17
ok stsp@ kettenis@
2015-05-15add some missing splx() callsjsg1-1/+2
ok deraadt@ kettenis@ krw@
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxmiod1-3/+3
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2013-11-18simplify kthread_create(). no more stdargderaadt1-2/+2
ok matthew guenther mikeb
2011-11-09Auto-repeat keys in WSKBD_RAW mode is not needed.shadchin1-39/+2
WSKBD_RAW mode used in X, but X independently implements auto-repeat keys. ok miod@
2010-11-20Missing splx() in hil_thread(). This turned out to be harmless due to themiod1-1/+2
way this code works (always ends up in tsleep eventually), but it never hurts to be correct.
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).grange1-4/+3
No functional changes. ok krw@ miod@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple Mightmiod1-2/+2
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2006-12-16Button boxes have their Y axis inverted, compared to mice, so compensatemiod1-8/+16
before feeding wscons.
2006-12-16Make hil(4) shared interrupts aware, by exiting early if the stat registermiod1-1/+10
does not indicate data being available; for some reason on hppa hil_intr() gets invoked when serial ports interrupt.
2006-11-05Handle loop reconfiguration in a kernel thread, instead of doing it frommiod2-13/+40
interrupt context.
2006-08-10Regenmiod1-4/+4
2006-08-10Embed device list comments in generated hildevs_data.h file; no functionalmiod2-8/+14
change.
2006-08-10Handle the ``arrow repeat'' special scancode on button boxes; from the oldmiod2-11/+27
X11R5 server, untested.
2006-08-10No need for needs-flag for hil and hilms.miod1-4/+4
2005-12-22Postpone the hil console detection logic to the first detection of a keyboard.miod2-6/+19
On hp300, hil would claim console against dnkbd if no dnkbd was found at the time the loop is probed, even if the loop is empty. Because of this, plugging dnkbd later would not select it as console keyboard, which is really annoying on kernels without wsmux, such as hp300 RAMDISK. Now the first keyboard plugged will become the console keyboard, whatever its type. No functional change on hppa, since the console path gives a definite console device setting.
2005-05-13Do not invoke hil_process_pendinc() from the interrupt handler if the loopmiod1-9/+4
is marked as busy.
2005-05-13Regenmiod1-7/+7
2005-05-13Separate button boxens from keyboards in the HIL device list.miod4-22/+31
hilkbd will still match both, but will neither do the auto-layout dance nor attach as console for button boxens.
2005-05-08When receiving an unplugged notification from the loop, do not take actionmiod1-15/+33
until the loop has reconfigured into a stable state. This can save up unnecessary detach/attach cycles for the low ids in the loop.
2005-05-08Simplify loop reconfiguration code.miod1-42/+27
2005-05-07PS/2 style and older style HIL keyboards have different layouts in theirmiod3-151/+420
international flavours, so provide two sets of mappings.
2005-05-07Regenmiod1-2/+3
2005-05-07KNF the output.miod1-2/+2
2005-02-28Fix confusion between KS_paragraph and KS_section; inspired from a PS/2miod1-3/+3
keyboard sv map error spotted by Jan Johansson.
2005-01-18WSDISPLAY_COMPAT_RAWKBD support for hilkbd.miod3-10/+232
2005-01-15If the loop is empty when we probe it, enable the interrupt anyways, so thatmiod1-2/+4
we can react on post-boot device plugs.
2005-01-11Reliability fixes:miod3-12/+100
- Let the loop initialize completely before attempting to probe its devices. Fixes the "no answer from device 1" problem. - Handle ``loop unplugged'' events and force detach of all children in this case.
2005-01-09Allow send_hil{,dev}_cmd to return failure, and handle this wheremiod3-30/+41
applicable. During device probe, if a device does not answer commands, display a warning message. This apparently happens on hp300 when the console is configured as remote (i.e. serial console). Unplugging and replugging the device works fine afterwards...
2004-09-15code locator is optionalmickey1-2/+2
2004-05-10obliterate undef, ok miodjolan1-3/+1
2004-04-06Hil keyboard layout for german keyboards, at least suitable for the PS/2-likemiod1-3/+51
layout. Based upon an old diff from paul@, tests and feedback otto@ paul@
2004-03-12Allow busy wait loops to fail, so that we don't spin if the hil loop does notmiod1-18/+59
behave correctly for some reason.
2003-12-20Relax a redundant printf format specifier.miod1-2/+2
2003-10-21typo from Tom Cosgrove;jmc1-2/+2
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert3-18/+6
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-27as mentioned in hardball ers a few delays are needed; mios@ testing on hp300 and okmickey1-3/+12
2003-03-28Fix various gremlins in the hilms code my simple test program did not catch,miod1-8/+29
but XFree did.
2003-03-28Better message to report an empty loop during probe.miod1-2/+2
2003-03-16A better explanation of why we need to operate hil keyboards in raw mode.miod1-3/+8
2003-02-26Better support for the ps/2-style HIL keyboards (those with a real numericmiod2-26/+37
pad and a few extra keys).
2003-02-26New hil child devices attachment framework, that allow them to be detachedmiod6-138/+241
at runtime. Handle reconfiguration notices from the loop, and do the necessary detach/attach work so that our vision of the loop is in sync with reality. Adapt all hil child devices to the above changes. "This is not as plug'n'play as usb, but you get the same feeling anyways..."
2003-02-19Leaving console polling mode works now, and workaround boot -a slow responsemiod1-5/+6
glitch.
2003-02-18Oops, remove debug code that was not supposed to be left heremiod1-6/+1
2003-02-18Real polled mode console support, enough to play hangman in ddb.miod3-16/+94
Still a minor issue left for tomorrow.
2003-02-18Track enable state and behave appropriately.miod1-4/+32
Also, better probe for leds on keyboard.
2003-02-15A simple and crude driver to play with the hil so-called ``ID module''miod2-1/+94
devices. The ID module only purpose is to provide a small, unique, bitstring, which was used for some copy-protection or licensing scheme under HP-UX. Right now this driver is useless, as it provides no way to communicate this information to userland, and only displays it while attaching, as such: hilid0 at hil0 code 2: ID module hilid0: security code 10 04 b4 41 ac 77 14 0f 41 00 00 00 00 00 00 00 hilid1 at hil0 code 3: ID module hilid1: security code 10 04 b4 41 e3 b8 13 0f 41 00 00 00 00 00 00 00 Too bad it's not even good enough to feed the kernel random generator...