MPSAFE TTY - Refactor the keyboard switch code to make all drivers MPSAFE
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 20:45:58 +0000 (13:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 20:45:58 +0000 (13:45 -0700)
commitfc9700a1359c0dd3fa2c207933975ed59237ba2b
tree9748bba6d5a8d54e34bf721308d5ba0635621eb3
parenta08a53fe13bd24a10b1a3fdf7ce09939b56ccaa6
MPSAFE TTY - Refactor the keyboard switch code to make all drivers MPSAFE

* Add a per-kbd lock.

* Replace the keyboard kbd_*() macros with function wrappers which acquire
  and release the per-kbd lock on behalf of each keyboard driver.  The
  wrapper code also understands polled mode and will not acquire/release
  locks in polled mode (aka debugger).

* Remove all tokens and locks from the keyboard drivers.

* Do some documenting of non-blocking paths.
sys/dev/misc/atkbd/atkbd_isa.c
sys/dev/misc/kbd/atkbd.c
sys/dev/misc/kbd/kbd.c
sys/dev/misc/kbd/kbdreg.h
sys/dev/misc/kbd/kbdsw.c [new file with mode: 0644]
sys/dev/misc/kbdmux/kbdmux.c
sys/dev/misc/syscons/syscons.c
sys/dev/usbmisc/ukbd/ukbd.c
sys/platform/pc32/conf/files
sys/platform/pc64/conf/files