aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-03-10 10:36:53 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-03-10 10:36:53 +0000
commite9deda23ae07ac86ee4f289ee3ac6979f2205627 (patch)
treef0166aa4896746e4495a40f057f3e73ddcb947f0 /sys/i386/include
parentfda82fc2b9bc477624e28193c49783cd2dfdbc8e (diff)
downloadsrc-e9deda23ae07ac86ee4f289ee3ac6979f2205627.tar.gz
src-e9deda23ae07ac86ee4f289ee3ac6979f2205627.zip
Keyboard driver update in preparation for the USB keyboard driver.
- 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.
Notes
Notes: svn path=/head/; revision=44628
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/console.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/include/console.h b/sys/i386/include/console.h
index 48d71a479faa..54409d087284 100644
--- a/sys/i386/include/console.h
+++ b/sys/i386/include/console.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: console.h,v 1.43 1999/01/11 03:18:04 yokota Exp $
+ * $Id: console.h,v 1.44 1999/02/05 11:52:09 yokota Exp $
*/
#ifndef _MACHINE_CONSOLE_H_
@@ -50,9 +50,10 @@
#define KDGKBTYPE _IOR('K', 64, int)
#define KDGETLED _IOR('K', 65, int)
#define KDSETLED _IO('K', 66 /*, int */)
-#define KDSETRAD _IO('K', 67 /*, int */)
+#define KDSETRAD _IO('K', 67 /*, int */) /* obsolete */
#define KDRASTER _IOW('K', 100, scr_size_t)
#define KDGKBINFO _IOR('K', 101, keyboard_info_t)
+#define KDSETREPEAT _IOW('K', 102, keyboard_delay_t)
#define GETFKEY _IOWR('k', 0, fkeyarg_t)
#define SETFKEY _IOWR('k', 1, fkeyarg_t)
@@ -393,6 +394,7 @@ typedef struct video_adapter_info video_adapter_info_t;
typedef struct video_info video_info_t;
typedef struct keyboard_info keyboard_info_t;
typedef struct {int scr_size[3];} scr_size_t;
+typedef struct {int kbd_delay[2];} keyboard_delay_t;
/* defines for "special" keys (spcl bit set in keymap) */
#define NOP 0x00 /* nothing (dead key) */