freebsd-nq/sys
Marius Strobl 65deb9d947 - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
as we have no use for that info. Instead let this function return the
  keyboard ID and verify at its invocation in sunkbd_configure() that we're
  talking to a Sun type 4/5/6 keyboard, i.e. a keyboard supported by this
  driver.
- Add an option SUNKBD_EMULATE_ATKBD whose code is based on the respective
  code in ukbd(4) and like UKBD_EMULATE_ATSCANCODE causes this driver to
  emit AT keyboard/KB_101 compatible scan codes in K_RAW mode as assumed by
  kbdmux(4). Unlike UKBD_EMULATE_ATSCANCODE, SUNKBD_EMULATE_ATKBD also
  triggers the use of AT keyboard maps and thus allows to use the map files
  in share/syscons/keymaps with this driver at the cost of an additional
  translation (in ukbd(4) this just is the way of operation).
- Implement an option SUNKBD_DFLT_KEYMAP, which like the equivalent options
  of the other keyboard drivers allows to specify the default in-kernel
  keyboard map. For obvious reasons this made to only work when also using
  SUNKBD_EMULATE_ATKBD.
- Implement sunkbd_check(), sunkbd_check_char() and sunkbd_clear_state(),
  which are also required for interoperability with kbdmux(4).
- Implement K_CODE mode and FreeBSD keypad compose.
- As a minor hack define KBD_DFLT_KEYMAP also in the !SUNKBD_EMULATE_ATKBD
  case so we can obtain fkey_tab from <dev/kbd/kbdtables.h> rather than
  having to duplicate it and #ifdef some more code.
- Don't use the TX-buffer for writing the two command bytes for setting the
  keyboard LEDs as this consequently requires a hardware FIFO that is at
  least two bytes in depth, which the NMOS-variant of the Zilog SCCs doesn't
  have. Thus use an inlined version of uart_putc() to consecutively write
  the command bytes (a cleaner approach would be to do this via the soft
  interrupt handler but that variant wouldn't work while in ddb(4)). [1]
- Fix some minor style(9) bugs.

PR:		90316 [1]
Reviewed by:	marcel [1]
2006-11-02 00:01:15 +00:00
..
amd64 Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
arm Do not include both <sys/types.h> and <sys/param.h>, it is a style bug as 2006-11-01 12:41:43 +00:00
boot Because the BTX mini-kernel now uses flat memory mode and clients 2006-10-29 14:50:58 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam Implement BIO_FLUSH handling for da(4), amr(4), ata(4) and ataraid(4). 2006-10-31 21:19:25 +00:00
coda
compat Backout the linux aio stuff. Several problems where identified and the 2006-10-29 14:02:39 +00:00
conf - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
contrib Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.h 2006-10-22 11:52:19 +00:00
crypto Initialize T1 to silent gcc warning. 2006-10-22 02:19:33 +00:00
ddb Make KSE a kernel option, turned on by default in all GENERIC 2006-10-26 21:42:22 +00:00
dev - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
fs Make KSE a kernel option, turned on by default in all GENERIC 2006-10-26 21:42:22 +00:00
gdb
geom Now, that we have gjournal in the tree add possibility to configure 2006-11-01 22:51:49 +00:00
gnu Add mnt_noasync counter to better handle interleaved calls to nmount(), 2006-09-26 04:15:59 +00:00
i4b
i386 Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
ia64 Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
isa Use calendaric calculation support from subr_clock.c instead of home-rolled. 2006-10-02 16:18:40 +00:00
isofs/cd9660 Use mount interlock to protect all changes to mnt_flag and mnt_kern_flag. 2006-09-26 04:12:49 +00:00
kern Increment nb_allocated while holding the pt_mtx lock to avoid races. 2006-11-01 16:50:13 +00:00
libkern
modules Hook up gjournal bits to the build. 2006-10-31 22:22:30 +00:00
net Bring in support for the Rapid Spanning Tree Protocol (802.1w). 2006-11-01 09:07:47 +00:00
net80211 Now that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h. 2006-09-26 12:41:13 +00:00
netatalk Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.h 2006-10-22 11:52:19 +00:00
netatm
netgraph Check pointer before dereferencing. 2006-10-18 07:47:07 +00:00
netinet - Use non-recursive mutex. MTX_RECURSE is unnecessary since rev. 1.70 2006-10-29 12:09:24 +00:00
netinet6 Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.h 2006-10-22 11:52:19 +00:00
netipsec
netipx
netkey
netnatm
netncp
netsmb Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
nfs
nfs4client Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfsclient Make EWOULDBLOCK a recoverable error so that the request is retransmitted. 2006-10-31 20:25:37 +00:00
nfsserver Fix leak in NAMEI zone caused by nfs server when VOP_RENAME fails. 2006-10-26 12:41:53 +00:00
opencrypto
pc98 Remove the KSE option now that it's in DEFAULTS on these arches/machines. 2006-10-26 22:11:35 +00:00
pccard
pci The first of 3 major steps to move the CAM layer forward to using 2006-10-31 05:53:29 +00:00
posix4 Make KSE a kernel option, turned on by default in all GENERIC 2006-10-26 21:42:22 +00:00
powerpc Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
rpc
security Forward declare struct cdev, since arguments of this type are used in 2006-10-30 15:20:49 +00:00
sparc64 - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
sun4v Spaces to tabs. (I shouldn't copy and paste from diff output to a terminal) 2006-11-01 21:33:17 +00:00
sys Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
tools
ufs Aquire Giant in the softdep_flush for clear_remove() and clear_inodedeps() 2006-11-01 13:48:44 +00:00
vm Make KSE a kernel option, turned on by default in all GENERIC 2006-10-26 21:42:22 +00:00
Makefile