summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt/pcvt_kbd.c
Commit message (Collapse)AuthorAgeFilesLines
* Send the pcvt(4) driver off to retirement.phk2006-05-171-2523/+0
|
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+1
|
* Update for the KDB framework:marcel2004-07-101-18/+11
| | | | | | o Make debugging code conditional upon KDB instead of DDB. o Call kdb_enter() instead of Debugger(). o Remove local (static) variable in_debugger. Use kdb_active instead.
* Do the dreaded s/dev_t/struct cdev */phk2004-06-161-1/+1
| | | | Bump __FreeBSD_version accordingly.
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-021-1/+1
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Provide keyboard entropy harvesting for PCVT users.markm2000-09-101-0/+4
|
* Make it possible to pass boot()'s flags to shutdown_nice() so that themsmith2000-08-311-1/+1
| | | | | | kernel can instigate an orderly shutdown but still determine the form of that shutdown. Make it possible eg. to cleanly shutdown and power off the system under ACPI when the power button is pressed.
* Remove old entropy-harvesting hooks; this is going to be re-engineeredmarkm2000-06-251-4/+0
| | | | later.
* No-op change. Remove #if NVT > 0 in files that are 'optional vt' andpeter2000-06-101-6/+0
| | | | therefore can never be compiled if NVT == 0. config(8) guarantees this.
* Convert pcvt to use the newbus driver framework, options COMPAT_OLDISAhm2000-04-161-2/+2
| | | | is no longer required to compile pcvt.
* Substantially cleanup of the pcvt kernel part. This cleanup doeshm2000-03-261-863/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | not introduce (hopefully) any functional changes but gets rid of the #ifdef spaghetti pcvt suffered from more and more over the years. Several no more used parts of the source were removed, others which are used by default are now non-optional components: PCVT_NETBSD removed completety PCVT_FREEBSD removed option, code is now standard PCVT_KBD_FIFO removed option, code is now standard PCVT_EMU_MOUSE removed completety PCVT_SW0CNOUTP removed completety PCVT_PORTIO_DELAY obsolete, removed PCVT_KEYBDID removed option, code is now standard PCVT_SIGWINCH removed option, code is now standard PCVT_PALFLICKER removed completety PCVT_WAITRETRACE removed completety PCVT_NOFASTSCROLL removed option, code is now standard PCVT_USL_VT_COMPAT removed the "old" non-vt Xserver code completely, depending on XSERVER, this code is now standard. Pcvt userland cleanup will follow as well as newbusifying the kernel part.
* Implement scrollback for pcvt based on code submitted byhm1999-12-301-23/+149
| | | | | | | | | | | | | | | | | Aaron Campbell <aaron@cs.dal.ca>. Use SHIFT-PgUp and SHIFT-PgDn to scroll back and forward. Aarons original code was enhanced to have a separate scrollbuffer for every virtual terminal and to preserve the screen contents when switching screen sizes. The scrollbuffer size is currently fixed at 8 pages but this will be made configurable through the use of scon(1) in the near future. For pcvt_kbd.h, a longstanding compiler warning was fixed by using excessive backetizing of the key2ascii[] table.
* Keyboard allocation/deallocation fix.yokota1999-06-291-1/+1
| | | | | | | | - Do not try to allocate a keyboard in pccnprobe() when probing the vt driver for the kernel console. Rather, allocate a keyboard when initializing the vt driver in pccninit(). - Release the keyboard in pccnterm(). - Don't try to read from the keyboard, if it is not present.
* Make pcvt compile and run again after find_display() is gone as part ofhm1999-04-201-3/+3
| | | | the new-bus changes. Also fix several compiler warnings.
* Keyboard driver update in preparation for the USB keyboard driver.yokota1999-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - 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.
* Remove unintended trigraph sequences in comments for -Walldillon1999-01-271-2/+2
|
* Fix various breakage after the recent keyboard driver change.yokota1999-01-141-2/+3
| | | | | | - Don't try to set typematic rate if there is not a keyboard. - Fix wrong test on error code. - Don't try to claim the keyboard twice. The second call will fail.
* The first stage of console driver reorganization: activate newyokota1999-01-111-213/+71
| | | | | | | | | | | | | keyboard and video card drivers. Because of the changes, you are required to update your kernel configuration file now! The files in sys/dev/syscons are still i386-specific (but less so than before), and won't compile for alpha and PC98 yet. syscons still directly accesses the video card registers here and there; this will be rectified in the later stages.
* Part 3 of the pcvt/voxware revival.peter1999-01-011-0/+3321
| | | | Reviewed by: core
* Pre 3.0 branch cleanup casualty #4: pcvtphk1998-12-271-3321/+0
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-1/+4
| | | | and local variables, goto labels, and functions declared but not defined.
* Support compiling with `gcc -ansi'.bde1998-04-151-1/+1
|
* Don't access "time" directly.phk1998-03-291-2/+2
|
* Update for changes in the callout interface.gibbs1997-09-211-5/+7
|
* Fixed typo in the set_keyboard_param().yokota1997-04-221-1/+1
| | | | Spotted by: Philippe Charnier@xp11.frmug.org
* Fixed the type of timeout functions and removed casts that hid thebde1997-04-201-2/+2
| | | | | | | | | | | | | type mismatches. There was no problem in practice (at least on 386's). Don't cast NULL in calls to timeout functions. pcvt is fully prototyped and doesn't support K&R. Timeout functions take args of type `void *', so use magic numbers of type `void *' for UPDATE_* to reduce the danger of wrong conversions. Removed FreeBSD-pre-1.1-related TIMEOUT_FUNC_T macro. It was especially bogus for the pre-1.1 case.
* Incorporate kludge/fix from `syscons' ver 1.207 and 1.209.yokota1997-04-181-14/+17
| | | | | | | | | | | | | | | | | | | | | | 1) Dell Latitude XPi This laptop has a strange, IMHO broken :-), keyboard controller which wouldn't disable the keyboard interrupt. The kludge is to disable tty intr. during set_keyboard(), used for changing LED and setting typematic. The patch also changes the function name: set_keyboard() -> set_keyboard_param() Although it is a static function, the name corrides with a routine in `syscons' and is confusing when debugging the kernel which has both `syscons' and `pcvt' with DDB. (Suggested by Bruce) 2) doreset() bug doreset() failed to preserve some bits in the keyboard controller's command byte during keyboard reset. This bug may put some keyboard controllers in old motherboards (386 and 486) in a strange state, resulting in complete keyboard lockup or random key input. Reviewed by: Joerg
* Fixed some invalid (non-atomic) accesses to `time', mostly ones of thebde1997-03-221-1/+1
| | | | | | form `tv = time'. Use a new function gettime(). The current version just forces atomicicity without fixing precision or efficiency bugs. Simplified some related valid accesses by using the central function.
* Move pcvt towards using kbdio (finally!).joerg1997-03-061-4/+318
| | | | | | | | | | Warning: this won't work yet with PCVT_SCANSET=2 along in early console mode (boot -c, or boot -d). A big thanks to Kazutaka, and a word of apologies for delaying the review for that long time... Submitted by: yokota@zodiac.mech.utsunomiya-u.ac.jp (Kazutaka YOKOTA)
* Fixed setting of the keyboard LEDs. For some keyboards and/or keyboardbde1996-10-141-11/+69
| | | | | | | | | | | | | | | | | | | | | controllers, it is an error to issue a command before the keyboard has had time to reply to the previous command. Setting the LEDs involves issueing 2 commands, so it never worked on these keyboards. Fixed resetting of keyboard. It is possible for unprocessed scancodes to be present when the reset routine is called. This usually occurs after switching from one console driver to another in userconfig. pcvt and syscons attempt to flush any stale scancodes, but sometimes fail to do so because keyboard and/or keyboard controller takes a long time to send the scancodes after reset (scancodes are apparently not flushed by reset!). syscons handles this later by not checking for errors at strategic places, but pcvt was confused. Use an impossible initial and failure mode setting for the LEDs so that the LEDs always get set if they are possibly out of sync. Added missing spltty() in update_led().
* Updated #includes to 4.4Lite style.bde1996-09-101-2/+2
|
* Fix two minor oddities introduced by my yesterday's patches:joerg1996-08-121-5/+3
| | | | | | | | | . preserve a multi-char sequence in a small static buffer inside pccngetc(), so it won't be clobbered later (used to happen when breaking into DDB user Ctrl-Alt-ESC), and . simplify the ``keystroke is present'' determination in sgetc(), thus making pccncheck() actually working without waiting for a keystroke.
* Fix many long-standing bugs and problems with pcvt, namely:joerg1996-08-101-7/+7
| | | | | | | | | | | | | | | | | | . make pccncheck() work even when interrupts are disabled, so the ``Press a key on the console...'' procedure will work, . make kernel colors #ifndef, so they can be overridden from the config file, . use shutdown_nice() instead of cpu_reset() if Ctrl-Alt-Del is enabled, . allow pccngetc() to return more than a single character, so the arrow keys will work (and thus visual UserConfig!), . fix a warning. This closes all know PRs related to pcvt, in particular #845, #1236, and #1265. PR #991 is a duplicate for 845, and PR #1283 has already been fixed earlier in rev 1.11 of pcvt_conf.h. Submitted by: Ulf Kieber (kieber@sax.de), for the kernel color fix
* Convert DDB to new-style option.wollman1996-01-041-0/+2
|
* Completed function declarations and/or added prototypes.bde1995-11-241-1/+3
|
* Add /dev/random hooks to the key input routines for pcvt. This allowsmarkm1995-11-121-0/+9
| | | | | | the scancodes on a PCVT machine to be used as stochastic input as well as SysCons.. Reviewed by: Joerg Wunsch
* Fix benign type mismatches in isa interrupt handlers. Many returned intbde1995-09-191-1/+1
| | | | instead of void.
* Make everything except the unsupported network sources compile cleanlybde1995-08-161-3/+0
| | | | with -Wnested-externs.
* Remove trailing whitespace.rgrimes1995-05-301-84/+84
|
* Update pcvt to 3.20 b24joerg1995-04-081-37/+8
|
* Update pcvt to 3.20b23joerg1995-04-011-9/+50
| | | | Submitted by: Hellmuth Michaelis <hm@altona.hamburg.com>
* Update to beta3.20/b22joerg1995-03-051-13/+20
| | | | pcvt_ioctl.h doesn't belong to here.
* Bring pcvt console driver into the tree - now users can chose whicheverjkh1995-02-051-0/+2914
console driver they like best (2 is ok, it was 4 that was a little insane for awhile there! :-). Submitted by: hm
OpenPOWER on IntegriCloud