Home | History | Annotate | Line # | Download | only in include
pccons.h revision 1.6.8.2
      1  1.6.8.2  soda /*	$NetBSD: pccons.h,v 1.6.8.2 2001/06/13 15:05:48 soda Exp $	*/
      2  1.6.8.2  soda /*	$OpenBSD: pccons.h,v 1.2 1996/09/01 16:50:12 deraadt Exp $	*/
      3  1.6.8.2  soda /*	NetBSD: pccons.h,v 1.4 1996/02/02 18:06:06 mycroft Exp	*/
      4  1.6.8.2  soda 
      5  1.6.8.2  soda /*
      6  1.6.8.2  soda  * pccons.h -- pccons ioctl definitions
      7  1.6.8.2  soda  */
      8  1.6.8.2  soda 
      9  1.6.8.2  soda #ifndef _PCCONS_H_
     10  1.6.8.2  soda #define _PCCONS_H_
     11  1.6.8.2  soda 
     12  1.6.8.2  soda #include <sys/ioctl.h>
     13  1.6.8.2  soda 
     14  1.6.8.2  soda /* key types -- warning: pccons.c depends on most values */
     15  1.6.8.2  soda 
     16  1.6.8.2  soda #define	KB_SCROLL	0x0001	/* stop output */
     17  1.6.8.2  soda #define	KB_NUM		0x0002	/* numeric shift  cursors vs. numeric */
     18  1.6.8.2  soda #define	KB_CAPS		0x0004	/* caps shift -- swaps case of letter */
     19  1.6.8.2  soda #define	KB_SHIFT	0x0008	/* keyboard shift */
     20  1.6.8.2  soda #define	KB_CTL		0x0010	/* control shift  -- allows ctl function */
     21  1.6.8.2  soda #define	KB_ASCII	0x0020	/* ascii code for this key */
     22  1.6.8.2  soda #define	KB_ALTGR	0x0040	/* alternate graphics shift */
     23  1.6.8.2  soda #define	KB_ALT		0x0080	/* alternate shift -- alternate chars */
     24  1.6.8.2  soda #define	KB_FUNC		0x0100	/* function key */
     25  1.6.8.2  soda #define	KB_KP		0x0200	/* Keypad keys */
     26  1.6.8.2  soda #define	KB_NONE		0x0400	/* no function */
     27  1.6.8.2  soda 
     28  1.6.8.2  soda #define	KB_CODE_SIZE	4	/* Use a max of 4 for now... */
     29  1.6.8.2  soda #define KB_NUM_KEYS	128	/* Number of scan codes */
     30  1.6.8.2  soda typedef struct {
     31  1.6.8.2  soda 	u_short	type;
     32  1.6.8.2  soda 	char unshift[KB_CODE_SIZE];
     33  1.6.8.2  soda 	char shift[KB_CODE_SIZE];
     34  1.6.8.2  soda 	char ctl[KB_CODE_SIZE];
     35  1.6.8.2  soda 	char altgr[KB_CODE_SIZE];
     36  1.6.8.2  soda 	char shift_altgr[KB_CODE_SIZE];
     37  1.6.8.2  soda } pccons_keymap_t;
     38  1.6.8.2  soda 
     39  1.6.8.2  soda #define CONSOLE_X_MODE_ON		_IO('t',121)
     40  1.6.8.2  soda #define CONSOLE_X_MODE_OFF		_IO('t',122)
     41  1.6.8.2  soda #define CONSOLE_X_BELL			_IOW('t',123,int[2])
     42  1.6.8.2  soda #define CONSOLE_SET_TYPEMATIC_RATE	_IOW('t',124,u_char)
     43  1.6.8.2  soda #define CONSOLE_GET_KEYMAP		_IOR('t',128,pccons_keymap_t[KB_NUM_KEYS])
     44  1.6.8.2  soda #define CONSOLE_SET_KEYMAP		_IOW('t',129,pccons_keymap_t[KB_NUM_KEYS])
     45  1.6.8.2  soda 
     46  1.6.8.2  soda #endif /* _PCCONS_H_ */
     47