1 /* $NetBSD: wsdisplay_usl_io.h,v 1.2 2000/11/26 06:03:24 simonb Exp $ */
3 #ifndef _DEV_WSCONS_WSDISPLAY_USL_IO_H_
4 #define _DEV_WSCONS_WSDISPLAY_USL_IO_H_
6 #define VT_OPENQRY _IOR('v', 1, int)
7 #define VT_SETMODE _IOW('v', 2, vtmode_t)
8 #define VT_GETMODE _IOR('v', 3, vtmode_t)
12 #define VT_AUTO 0 /* switching controlled by drvr */
13 #define VT_PROCESS 1 /* switching controlled by prog */
15 char waitv
; /* not implemented yet SOS */
18 short frsig
; /* not implemented yet SOS */
21 typedef struct vt_mode vtmode_t
;
23 #define VT_RELDISP _IO('v', 4)
24 #define VT_FALSE 0 /* release of VT refused */
25 #define VT_TRUE 1 /* VT released */
26 #define VT_ACKACQ 2 /* acknowledging VT acquiration */
28 #define VT_ACTIVATE _IO('v', 5)
29 #define VT_WAITACTIVE _IO('v', 6)
30 #define VT_GETACTIVE _IOR('v', 7, int)
32 #define VT_GETSTATE _IOR('v', 100, struct vt_stat)
34 unsigned short v_active
; /* active vt */
35 unsigned short v_signal
; /* signal to send */
36 unsigned short v_state
; /* vt bitmask */
39 #define KDGETKBENT _IOWR('K', 4, struct kbentry)
41 unchar kb_table
; /* which table to use */
42 unchar kb_index
; /* which entry in table */
43 ushort kb_value
; /* value to get/set in table */
46 #define KDGKBMODE _IOR('K', 6, int) /* get keyboard mode */
48 #define KDSKBMODE _IO('K', 7) /* set keyboard mode */
49 #define K_RAW 0 /* kbd switched to raw mode */
50 #define K_XLATE 1 /* kbd switched to "normal" mode */
52 #define KDMKTONE _IO('K', 8)
54 #define KDSETMODE _IO('K', 10)
55 #define KD_TEXT 0 /* set text mode restore fonts */
56 #define KD_GRAPHICS 1 /* set graphics mode */
58 #define KDENABIO _IO('K', 60) /* only allowed if euid == 0 */
59 #define KDDISABIO _IO('K', 61)
61 #define KDGKBTYPE _IOR('K', 64, char)
66 #define KDGETLED _IOR('K', 65, int)
67 #define KDSETLED _IO('K', 66)
72 #define KDSETRAD _IO('K', 67)
74 /* pcvt compatibility */
75 #define VGAPCVTID _IOWR('V',113, struct pcvtid) /* get driver id */
78 #define PCVTIDNAMELN 16 /* driver id - string length */
79 char name
[PCVTIDNAMELN
]; /* driver name */
80 int rmajor
; /* revision number, major */
81 int rminor
; /* revision number, minor */
84 /* syscons compatibility */
85 #define CONS_GETVERS _IOR('c', 74, int)
87 #endif /* _DEV_WSCONS_WSDISPLAY_USL_IO_H_ */