summaryrefslogtreecommitdiff
path: root/sys/dev/hil
AgeCommit message (Collapse)Author
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
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 compensateMiod Vallat
before feeding wscons.
2006-12-16Make hil(4) shared interrupts aware, by exiting early if the stat registerMiod Vallat
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 fromMiod Vallat
interrupt context.
2006-08-10RegenMiod Vallat
2006-08-10Embed device list comments in generated hildevs_data.h file; no functionalMiod Vallat
change.
2006-08-10Handle the ``arrow repeat'' special scancode on button boxes; from the oldMiod Vallat
X11R5 server, untested.
2006-08-10No need for needs-flag for hil and hilms.Miod Vallat
2005-12-22Postpone the hil console detection logic to the first detection of a keyboard.Miod Vallat
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 loopMiod Vallat
is marked as busy.
2005-05-13RegenMiod Vallat
2005-05-13Separate button boxens from keyboards in the HIL device list.Miod Vallat
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 actionMiod Vallat
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.Miod Vallat
2005-05-07PS/2 style and older style HIL keyboards have different layouts in theirMiod Vallat
international flavours, so provide two sets of mappings.
2005-05-07RegenMiod Vallat
2005-05-07KNF the output.Miod Vallat
2005-02-28Fix confusion between KS_paragraph and KS_section; inspired from a PS/2Miod Vallat
keyboard sv map error spotted by Jan Johansson.
2005-01-18WSDISPLAY_COMPAT_RAWKBD support for hilkbd.Miod Vallat
2005-01-15If the loop is empty when we probe it, enable the interrupt anyways, so thatMiod Vallat
we can react on post-boot device plugs.
2005-01-11Reliability fixes:Miod Vallat
- 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 whereMiod Vallat
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 optionalMichael Shalayeff
2004-05-10obliterate undef, ok miodJolan Luff
2004-04-06Hil keyboard layout for german keyboards, at least suitable for the PS/2-likeMiod Vallat
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 notMiod Vallat
behave correctly for some reason.
2003-12-20Relax a redundant printf format specifier.Miod Vallat
2003-10-21typo from Tom Cosgrove;Jason McIntyre
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
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 ↵Michael Shalayeff
and ok
2003-03-28Fix various gremlins in the hilms code my simple test program did not catch,Miod Vallat
but XFree did.
2003-03-28Better message to report an empty loop during probe.Miod Vallat
2003-03-16A better explanation of why we need to operate hil keyboards in raw mode.Miod Vallat
2003-02-26Better support for the ps/2-style HIL keyboards (those with a real numericMiod Vallat
pad and a few extra keys).
2003-02-26New hil child devices attachment framework, that allow them to be detachedMiod Vallat
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 responseMiod Vallat
glitch.
2003-02-18Oops, remove debug code that was not supposed to be left hereMiod Vallat
2003-02-18Real polled mode console support, enough to play hangman in ddb.Miod Vallat
Still a minor issue left for tomorrow.
2003-02-18Track enable state and behave appropriately.Miod Vallat
Also, better probe for leds on keyboard.
2003-02-15A simple and crude driver to play with the hil so-called ``ID module''Miod Vallat
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...
2003-02-15Provide a "code" locator for hil devices. This will let people ask theirMiod Vallat
kernels to attach hilkbd0 (console keyboard) or hilms0 (main mouse) to a specific device in the loop, by using UKC or compiling a new kernel. Using this and the previous console changes, it is now possible on a loop with multiple keyboards, to choose which keyboard will be the console keyboard.
2003-02-15Rework the console management on hppa:Miod Vallat
- only attach a keyboard as a console if it matches the PDC keyboard path - on hil, as there can be multiple keyboards on the loop, attach only the first hilkbd device configured as console keyboard. Right now this means the one with the lowest hil code, which was the existing behaviour so far. - do not try to switch to the wscons consdev structure early at all in wscons_machdep, but rather wait for the console to be completely configured (i.e. both wskbd and wsdisplay are attached) to switch. With feedback and help from mickey@
2003-02-15- Better type usage in the various hil code: prefer u_int8_t to u_char, butMiod Vallat
do not stick to u_int8_t when native word size can do the job better. - Allow send_hildev_cmd() to return the command response buffer to its caller, rather than forcing it to look at the guts of its parent device softc... this will be needed shortly.
2003-02-15Remove misleading (and incorrect) HIL_STATMASK definition.Miod Vallat
2003-02-12A simple driver for HIL mice and tablets. Most of the work being alreadyMiod Vallat
done by the loop, this is mostly an HIL packet decoding routine.
2003-02-12Move values related to device identification data to hilreg.h, with betterMiod Vallat
names.
2003-02-11I found a french HIL keyboard in a closet, so add a simple french layout.Miod Vallat
Nobody will want to use such a keyboard anyways, as there is no ~ (tilde) key on it.
2003-02-11Oops, forgot to commit the most important file...Miod Vallat
2003-02-11RegenMiod Vallat