kbd.h revision 1.1.2.2 1 1.1.2.2 nathanw /* $NetBSD: kbd.h,v 1.1.2.2 2002/02/28 04:11:46 nathanw Exp $ */
2 1.1.2.2 nathanw
3 1.1.2.2 nathanw /*
4 1.1.2.2 nathanw * Copyright (c) 1995 Mark Brinicombe.
5 1.1.2.2 nathanw *
6 1.1.2.2 nathanw * Redistribution and use in source and binary forms, with or without
7 1.1.2.2 nathanw * modification, are permitted provided that the following conditions
8 1.1.2.2 nathanw * are met:
9 1.1.2.2 nathanw * 1. Redistributions of source code must retain the above copyright
10 1.1.2.2 nathanw * notice, this list of conditions and the following disclaimer.
11 1.1.2.2 nathanw * 2. Redistributions in binary form must reproduce the above copyright
12 1.1.2.2 nathanw * notice, this list of conditions and the following disclaimer in the
13 1.1.2.2 nathanw * documentation and/or other materials provided with the distribution.
14 1.1.2.2 nathanw * 3. All advertising materials mentioning features or use of this software
15 1.1.2.2 nathanw * must display the following acknowledgement:
16 1.1.2.2 nathanw * This product includes software developed by Mark Brinicombe.
17 1.1.2.2 nathanw * 4. The name of the company nor the name of the author may be used to
18 1.1.2.2 nathanw * endorse or promote products derived from this software without specific
19 1.1.2.2 nathanw * prior written permission.
20 1.1.2.2 nathanw *
21 1.1.2.2 nathanw * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
22 1.1.2.2 nathanw * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 1.1.2.2 nathanw * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.1.2.2 nathanw * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25 1.1.2.2 nathanw * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 1.1.2.2 nathanw * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 1.1.2.2 nathanw * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 1.1.2.2 nathanw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 1.1.2.2 nathanw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 1.1.2.2 nathanw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 1.1.2.2 nathanw * SUCH DAMAGE.
32 1.1.2.2 nathanw *
33 1.1.2.2 nathanw * RiscBSD kernel project
34 1.1.2.2 nathanw *
35 1.1.2.2 nathanw * kbd.h
36 1.1.2.2 nathanw *
37 1.1.2.2 nathanw * Keyboard ioctls
38 1.1.2.2 nathanw *
39 1.1.2.2 nathanw * Created : 21/07/95
40 1.1.2.2 nathanw */
41 1.1.2.2 nathanw
42 1.1.2.2 nathanw struct kbd_data {
43 1.1.2.2 nathanw int keycode;
44 1.1.2.2 nathanw struct timeval event_time;
45 1.1.2.2 nathanw };
46 1.1.2.2 nathanw
47 1.1.2.2 nathanw struct kbd_autorepeat {
48 1.1.2.2 nathanw int ka_delay;
49 1.1.2.2 nathanw int ka_rate;
50 1.1.2.2 nathanw };
51 1.1.2.2 nathanw
52 1.1.2.2 nathanw #define KBD_GETAUTOREPEAT _IOR( 'k', 100, struct kbd_autorepeat)
53 1.1.2.2 nathanw #define KBD_SETAUTOREPEAT _IOW( 'k', 101, struct kbd_autorepeat)
54 1.1.2.2 nathanw #define KBD_SETLEDS _IOW( 'k', 102, int)
55 1.1.2.2 nathanw #define KBD_XXX _IOW( 'k', 103, int)
56 1.1.2.2 nathanw
57 1.1.2.2 nathanw #define KBD_LED_SCROLL_LOCK 0x01
58 1.1.2.2 nathanw #define KBD_LED_NUM_LOCK 0x02
59 1.1.2.2 nathanw #define KBD_LED_CAPS_LOCK 0x04
60 1.1.2.2 nathanw
61 1.1.2.2 nathanw #ifdef _KERNEL
62 1.1.2.2 nathanw void kbdsetstate __P((int /*state*/));
63 1.1.2.2 nathanw int kbdgetstate __P((void));
64 1.1.2.2 nathanw #endif
65 1.1.2.2 nathanw
66 1.1.2.2 nathanw /* End of kbd.h */
67