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