xref: /netbsd-src/sys/arch/x68k/include/iteioctl.h (revision 8b0f9554ff8762542c4defc4f70e1eb76fb508fa)
1 /*
2  * Copyright (c) 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * the Systems Programming Group of the University of Utah Computer
7  * Science Department.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. Neither the name of the University nor the names of its contributors
18  *    may be used to endorse or promote products derived from this software
19  *    without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
34  *
35  *	@(#)iteioctl.h	7.2 (Berkeley) 11/4/90
36  *	$NetBSD: iteioctl.h,v 1.7 2005/12/11 12:19:44 christos Exp $
37  */
38 /*
39  * Copyright (c) 1988 University of Utah.
40  *
41  * This code is derived from software contributed to Berkeley by
42  * the Systems Programming Group of the University of Utah Computer
43  * Science Department.
44  *
45  * Redistribution and use in source and binary forms, with or without
46  * modification, are permitted provided that the following conditions
47  * are met:
48  * 1. Redistributions of source code must retain the above copyright
49  *    notice, this list of conditions and the following disclaimer.
50  * 2. Redistributions in binary form must reproduce the above copyright
51  *    notice, this list of conditions and the following disclaimer in the
52  *    documentation and/or other materials provided with the distribution.
53  * 3. All advertising materials mentioning features or use of this software
54  *    must display the following acknowledgement:
55  *	This product includes software developed by the University of
56  *	California, Berkeley and its contributors.
57  * 4. Neither the name of the University nor the names of its contributors
58  *    may be used to endorse or promote products derived from this software
59  *    without specific prior written permission.
60  *
61  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
62  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
63  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
64  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
65  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
66  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
67  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
68  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
69  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
70  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
71  * SUCH DAMAGE.
72  *
73  * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
74  *
75  *	@(#)iteioctl.h	7.2 (Berkeley) 11/4/90
76  *	$NetBSD: iteioctl.h,v 1.7 2005/12/11 12:19:44 christos Exp $
77  */
78 
79 #ifndef _X68K_ITEIOCTL_H_
80 #define _X68K_ITEIOCTL_H_
81 
82 #include <machine/kbdmap.h>
83 
84 struct itewinsize {
85 	int x;			/* leftedge offset to the right */
86 	int y;			/* topedge offset down */
87 	u_int width;		/* width of ite display */
88 	u_int height;		/* height of ite display */
89 	u_int depth;		/* depth of ite display */
90 };
91 
92 struct iterepeat {
93 	int start;		/* number of 100/s before repeat start */
94 	int next;		/* number of 100/s before next repeat */
95 };
96 #define ITEMINREPEAT	5	/* mininum number of 100/s for key repeat */
97 
98 #define ITEIOCSKMAP	_IOW('Z',0x70, struct kbdmap)
99 #define ITEIOCGKMAP	_IOR('Z',0x71, struct kbdmap)
100 #ifdef notyet		/* could be implemented... */
101 #define ITEIOCGWINSZ	_IOR('Z',0x72, struct itewinsize)
102 #define ITEIOCSWINSZ	_IOW('Z',0x73, struct itewinsize)
103 #define ITEIOCDSPWIN	_IO('Z', 0x74)
104 #define ITEIOCREMWIN	_IO('Z', 0x75)
105 #endif
106 #define ITEIOCGREPT	_IOR('Z', 0x78, struct iterepeat)
107 #define ITEIOCSREPT	_IOW('Z', 0x79, struct iterepeat)
108 
109 #ifdef notyet
110 #define ITESWITCH	_IOW('Z',0x69, int)	/* XXX */
111 #endif
112 
113 #define ITELOADFONT	_IOW('Z',0x80, unsigned char [4096])
114 
115 #define ITETVCTRL	_IOW('Z',0x81, unsigned char)
116 #define TVC_VOLUP	0x01
117 #define TVC_VOLDOWN	0x02
118 #define TVC_VOLNORM	0x03
119 #define TVC_CHCALL	0x04 /* toggle channel call */
120 #define TVC_RESET	0x05
121 #define TVC_VOLMUTE	0x06
122 #define TVC_POWERON	0x07
123 #define TVC_RGBTV	0x08 /* toggle rgb/TV */
124 #define TVC_EXTTV	0x09 /* toggle video/TV */
125 #define TVC_OVERSCAN	0x09 /* toggle normal/overscan (RGB) */
126 #define TVC_CONTNORM	0x0a
127 #define TVC_CHNLUP	0x0b
128 #define TVC_CHNLDOWN	0x0c
129 #define TVC_POWEROFF	0x0d
130 #define TVC_POWER	0x0e
131 #define TVC_TSUPER1	0x0f /* toggle super */
132 #define TVC_CHAN1	(0x0f + 1)
133 #define TVC_CHAN2	(0x0f + 2)
134 #define TVC_CHAN3	(0x0f + 3)
135 #define TVC_CHAN4	(0x0f + 4)
136 #define TVC_CHAN5	(0x0f + 5)
137 #define TVC_CHAN6	(0x0f + 6)
138 #define TVC_CHAN7	(0x0f + 7)
139 #define TVC_CHAN8	(0x0f + 8)
140 #define TVC_CHAN9	(0x0f + 9)
141 #define TVC_CHAN10	(0x0f + 10)
142 #define TVC_CHAN11	(0x0f + 11)
143 #define TVC_CHAN12	(0x0f + 12)
144 #define TVC_TV		(0x1c)
145 #define TVC_RGB		(0x1d)
146 #define TVC_SUPER1	(0x1e)
147 #define TVC_SUPER2	(0x1f)
148 #define TVC_PWON	(0x20) /* optional bits */
149 
150 #endif
151