summaryrefslogtreecommitdiffstats
path: root/sys/dev/kbd
Commit message (Collapse)AuthorAgeFilesLines
* - Properly keep track of I/O port resources.yokota2000-03-194-94/+128
| | | | - Use bus_space_read/write() to access the ports.
* - Add Support for the following PS/2 mice:yokota2000-03-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Microsoft IntelliMouse Explorer: 2 buttons on top, 2 side buttons and a wheel which also acts as the middle button. The mouse is recognized as "IntelliMouse Explorer". - Genius NetScroll Optical: 2 buttons on top, 2 side buttons and a wheel which also acts as the middle button. The mouse is recognized as "NetMouse/NetScroll Optical". - MouseSystems SmartScroll Mouse (OEM from Genius?): 3 buttons on top, 1 side button and a wheel. The mouse is recognized as Genius "NetScroll". - IBM ScrollPoint: 2 buttons on top and a stick between the buttons. The stick can perform "horizontal scroll" in W*ndows environment. The horizontal movement of the stick is detected. It is currently mapped to the Z axis movement in the same way as the first wheel. The mouse is recognized as "MouseMan+", as it is considered to be a variation of MouseMan. - A4 Tech 4D and 4D+ mice. These mice have two wheels! The movement of the second wheel is reported as the Z axis movement in the same way as the first wheel. These mice are recognized as "4D Mouse" and "4D+ Mouse". - Tweak IntelliMouse support code a bit so that less-than-compatible wheel mice can work properly with the psm driver. - Add driver configuration flags which correspond to the kernel options PSM_HOOKRESUME and PSM_RESETAFTERSUSPEND, so that we don't need to recompile the kernel when we need these functions. - Properly keep track of the irq resource. - Add a watchdog timer in case interrupts are lost (experimental). - Add `detach' function (experimental).
* Changed key assign for PC-98.nyan2000-03-161-5/+5
| | | | | | | | | | | | | shift+TAB : BackTab HELP : End STOP : ScrollLock shift+STOP : ScreenSaver GRPH +STOP : Suspend(susp) COPY : NextScreen(nscr) ctrl +COPY : Debug NFER : Meta Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* One more patch for the atkbd driver. It will make sure that theyokota2000-03-111-0/+12
| | | | | | | | | | | | | | keyboard port and interrupt is enabled and the driver is attached even when the keyboard itself is not present when the system is booting. (This has been the behavior through out 2.X and 3.X, but is somehow broken in 4.0.) # I certainly don't recommend people to `hot-plug' the AT keyboard, # because the interface isn't designed for hot-plugging and such act # will often break the keyboard controller. But, so many people want to # do that anyway... Approved by: jkh
* - Be slightly more cautious and try to make more sure the keyboardyokota2000-02-111-4/+9
| | | | | | | input queue is emptied when initializing the keyboard controller. - Remove an unnecessary `if' statement. Approved by: jkh
* Use config's conditional compilation rather than using #ifdefs that makepeter2000-01-293-11/+1
| | | | | modular compilation harder. I'm doing this because people seem to like cut/pasting examples of bad practices in existing code.
* - Add some comment from bde on the keyboard interrupt.yokota2000-01-201-11/+19
| | | | - Fix obsolete comments.
* Rework shifta/ctla/alta key handling. It appears that there wasyokota2000-01-113-17/+19
| | | | | misunderstanding between the PR originator and me. I hope I got it right this time.
* Obtain the initial key repeat rate setting via BIOS in i386 ifyokota2000-01-101-0/+54
| | | | possible.
* Add some keyboard IDs.yokota2000-01-101-2/+9
|
* - Fixed warnings.nyan2000-01-041-132/+132
| | | | - Removed unnecessary include files.
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-293-6/+6
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* - Add a module event function to the ukbd driver and make the ukbd KLDyokota1999-12-132-2/+47
| | | | | module work. - Delete unnecessary #include.
* - Remember the keyboard repeat delay and rate.yokota1999-12-132-10/+37
| | | | | - Add a new ioctl, KDGETREPEAT, to retrieve the keyboard repeat rate. - Delete unnecessary #include.
* Add support new keys: lshifta, rshifta, lctrla, rctrla, lalta, andyokota1999-12-103-12/+85
| | | | | | | | | ralta. These keys combine shift/ctrl/alt function and the AltLock function. When these keys pressed together with another key, they act just like the ordinary shift/ctrl/alt keys. When these keys are pressed and released alone, Alt lock state is toggled. PR: kern/12475
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* $Id$ -> $FreeBSD$peter1999-08-287-7/+7
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-2/+1
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* - Remove cdevsw entry points in individual keyboard drivers;yokota1999-08-224-352/+112
| | | | | | | | instead, use generic entry points for all drivers. - Eliminate bogus makedev(). - Eliminate softc in the lower drivers, as it is no longer necessary. Submitted (95%) by: phk
* Correctly save `flags' bits.yokota1999-08-151-1/+2
|
* - Move the `return' statement the correct place so that the keyboardyokota1999-07-181-5/+5
| | | | won't be initialized if `atkbd?' is disabled.
* Simplify cdevsw registration.phk1999-05-311-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* This commit should be a extensive NO-OP:phk1999-05-302-11/+41
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* Don't bogusly define a d_reset_t function.phk1999-05-301-14/+2
|
* - Include isa/isareg.h rather than i386/isa/isa.h for i386.yokota1999-05-201-43/+3
| | | | - Remove unused (thus, commented out) section of code.
* Include sys/isa/isareg.h rather than i386/isa/isa.h for i386.yokota1999-05-201-5/+1
|
* Slight reorganization of internal interface in the keyboard controlleryokota1999-05-182-4/+13
| | | | driver.
* Silence warnings.yokota1999-05-181-10/+10
|
* Remove unnecessary function call.yokota1999-05-181-2/+1
|
* The previous commit was wrong! This is the correct one ;-<yokota1999-05-181-2/+2
|
* Don't confuse cursor keys with numpad keys when composing a char code.yokota1999-05-091-5/+5
| | | | PR: kern/10988
* Minor tweak after the introduction of new-bus to i386; properlyyokota1999-05-091-14/+14
| | | | check "disabled" and "flags" probe hints.
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-10/+9
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* Keyboard driver update in preparation for the USB keyboard driver.yokota1999-03-105-1197/+358
| | | | | | | | | | | | | | | | | | | | | | | - Refined internal interface in keyboard drivers so that: 1. the side effect of device probe is kept minimal, 2. polling mode function is added, 3. and new ioctl and configuration options are added (see below). - Added new ioctl: KDSETREPEAT Set keyboard typematic rate. There has existed an ioctl command, KDSETRAD, for the same purpose. However, KDSETRAD is dependent on the AT keyboard. KDSETREPEAT provides more generic interface. KDSETRAD will still be supported in the atkbd driver. - Added new configuration options: ATKBD_DFLT_KEYMAP Specify a keymap to be used as the default, built-in keymap. (There has been undocumented options, DKKEYMAP, UKKEYMAP, GRKEYMAP, SWKEYMAP, RUKEYMAP, ESKEYMAP, and ISKEYMAP to set the default keymap. These options are now gone for good. The new option is more general.) KBD_DISABLE_KEYMAP_LOADING Don't allow the user to change the keymap.
* - Fixed the bug which always ignored Ctrl-Pause/Break on the AT 101yokota1999-01-282-70/+118
| | | | | | | | | keyboard. - Translate some keycode for the 84 keyboard so that the 84 keyboard and the 101 keyboard become more compatible in terms of keycodes. - Updated the built-in keymaps so that it is in line with the recent changes in share/syscons/keymaps. - Added some comment on the Pause/Break key on the 101 keyboard.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-3/+3
| | | | kernel compile
* sysconsyokota1999-01-192-6/+17
| | | | | | | | | | | | | | | | | - Bring down the splash screen when a vty is opened for the first time. - Make sure the splash screen/screen saver is stopped before switching vtys. - Read and save initial values in the BIOS data area early. VESA BIOS may change BIOS data values when switching modes. - Fix missing '&' operator. - Move ISA specific part of driver initialization to syscons_isa.c. atkbd - kbdtables.h is now in /sys/dev/kbd. all - Adjust for forthcoming alpha port. Submitted by: dfr
* Use the correct macro to test flags; we need KBD_IS_INITIALIZED here,yokota1999-01-131-2/+2
| | | | not KBD_IS_PROBED.
* Fix PIO_KEYMAPENT/GIO_KEYMAPENT. They used to copy from/to a wrong place.yokota1999-01-121-3/+3
| | | | The bug found by: Mike Zanker <A.M.Zanker@open.ac.uk>
* Clean up warnings: get conditional compilation right so that a localyokota1999-01-121-6/+11
| | | | | function won't be defined unless it is actually used. Requested by: eivind
* Add the new keyboard driver and video card driver. They will beyokota1999-01-096-0/+4089
| | | | | | used by console drivers. (They are not yet activated yet. Wait for announcement later.)
* Fix ROOL UP/DOWN keys of PC-98.kato1998-11-181-3/+3
|
* Add VESA support to syscons.sos1998-09-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Kazu writes: The VESA support code requires vm86 support. Make sure your kernel configuration file has the following line. options "VM86" If you want to statically link the VESA support code to the kernel, add the following option to the kernel configuration file. options "VESA" The vidcontrol command now accepts the following video mode names: VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600 The VESA_800x600 mode is a raster display mode. The 80x25 text will be displayed on the 800x600 screen. Useful for some laptop computers. vidcontrol accepts the new `-i <info>' option, where <info> must be either `adapter' or `mode'. When the `-i adapter' option is given, vidcontrol will print basic information (not much) on the video adapter. When the `-i mode' option is specified, vidcontrol will list video modes which are actually supported by the video adapter. Submitted by: Kazutaka YOKOTA yokota@FreeBSD.ORG
* keymap -> key_map so that the kernel will compile withsteve1998-06-061-2/+2
| | | | | | | -DESKEYMAP. PR: 6864 Submitted by: Javier Rueda <jmrueda@diatel.upm.es>
* Define CTL-ALT-ESC as the `debug' key, CTL-ALT-SPACE as the `suspend'keyyokota1998-01-281-5/+5
| | | | in all built-in keymaps.
* Fix illegal numeric expressions: 08 and 09.yokota1998-01-121-10/+10
|
* Added accent (dead) key support to syscons and kbdcontrol.yokota1998-01-071-2/+298
| | | | | | | | | | | | | | | | | | | | | | | With a keymap with accent key definitions loaded to syscons, you press an accent key followed by a regular letter key to produce an accented letter. Press an accent key followed by the space bar to get the accent letter itself. Code is based on the ideas and work by jmrueda@diatel.upm.es and totii@est.is. PR: i386/4016 console.h - Defined structures and constants for accent (dead) keys. syscons.c, kbdtables.h - When an accent key is pressed, set the corresponding index to `accents'. If the next key is the space key, produce the accent char itself. Otherwise search the accent key map entry, indexed by `accents', for a matching pair of a regular char and an accented char. - Added ioctl functions to set and get the accent key map (PIO_DEADKEYMAP and GIO_DEADKEYMAP).
* Back out my LALT -> META change until we figure out a way to make itjkh1997-10-121-2/+2
| | | | work sympathetically with the function keys.
* Change default keymap (I left all the international ones alone) sojkh1997-10-101-2/+2
| | | | | that LALT is META by default. This will make the emacs users happy. Approved by: sos
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
OpenPOWER on IntegriCloud