iteioctl.h revision 1.5 1 1.5 he /* $NetBSD: iteioctl.h,v 1.5 2004/05/19 08:44:20 he Exp $ */
2 1.1 leo
3 1.1 leo /*
4 1.1 leo * Copyright (c) 1990 The Regents of the University of California.
5 1.1 leo * All rights reserved.
6 1.3 agc *
7 1.3 agc * This code is derived from software contributed to Berkeley by
8 1.3 agc * the Systems Programming Group of the University of Utah Computer
9 1.3 agc * Science Department.
10 1.3 agc *
11 1.3 agc * Redistribution and use in source and binary forms, with or without
12 1.3 agc * modification, are permitted provided that the following conditions
13 1.3 agc * are met:
14 1.3 agc * 1. Redistributions of source code must retain the above copyright
15 1.3 agc * notice, this list of conditions and the following disclaimer.
16 1.3 agc * 2. Redistributions in binary form must reproduce the above copyright
17 1.3 agc * notice, this list of conditions and the following disclaimer in the
18 1.3 agc * documentation and/or other materials provided with the distribution.
19 1.3 agc * 3. Neither the name of the University nor the names of its contributors
20 1.3 agc * may be used to endorse or promote products derived from this software
21 1.3 agc * without specific prior written permission.
22 1.3 agc *
23 1.3 agc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 1.3 agc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.3 agc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.3 agc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 1.3 agc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.3 agc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.3 agc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.3 agc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.3 agc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.3 agc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.3 agc * SUCH DAMAGE.
34 1.3 agc *
35 1.3 agc * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
36 1.3 agc *
37 1.3 agc * @(#)iteioctl.h 7.2 (Berkeley) 11/4/90
38 1.3 agc */
39 1.3 agc /*
40 1.3 agc * Copyright (c) 1988 University of Utah.
41 1.1 leo *
42 1.1 leo * This code is derived from software contributed to Berkeley by
43 1.1 leo * the Systems Programming Group of the University of Utah Computer
44 1.1 leo * Science Department.
45 1.1 leo *
46 1.1 leo * Redistribution and use in source and binary forms, with or without
47 1.1 leo * modification, are permitted provided that the following conditions
48 1.1 leo * are met:
49 1.1 leo * 1. Redistributions of source code must retain the above copyright
50 1.1 leo * notice, this list of conditions and the following disclaimer.
51 1.1 leo * 2. Redistributions in binary form must reproduce the above copyright
52 1.1 leo * notice, this list of conditions and the following disclaimer in the
53 1.1 leo * documentation and/or other materials provided with the distribution.
54 1.1 leo * 3. All advertising materials mentioning features or use of this software
55 1.1 leo * must display the following acknowledgement:
56 1.1 leo * This product includes software developed by the University of
57 1.1 leo * California, Berkeley and its contributors.
58 1.1 leo * 4. Neither the name of the University nor the names of its contributors
59 1.1 leo * may be used to endorse or promote products derived from this software
60 1.1 leo * without specific prior written permission.
61 1.1 leo *
62 1.1 leo * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
63 1.1 leo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
64 1.1 leo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
65 1.1 leo * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
66 1.1 leo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
67 1.1 leo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
68 1.1 leo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
69 1.1 leo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
70 1.1 leo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
71 1.1 leo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
72 1.1 leo * SUCH DAMAGE.
73 1.1 leo *
74 1.1 leo * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
75 1.1 leo *
76 1.1 leo * @(#)iteioctl.h 7.2 (Berkeley) 11/4/90
77 1.1 leo */
78 1.1 leo
79 1.4 he #ifndef _MACHINE_ITEIOCTL_H_
80 1.4 he #define _MACHINE_ITEIOCTL_H_
81 1.4 he
82 1.5 he #ifndef _KERNEL
83 1.4 he #include <machine/kbdmap.h>
84 1.5 he #endif
85 1.4 he
86 1.1 leo struct itewinsize {
87 1.1 leo int x; /* leftedge offset to the right */
88 1.1 leo int y; /* topedge offset down */
89 1.1 leo u_int width; /* width of ite display */
90 1.1 leo u_int height; /* height of ite display */
91 1.1 leo u_int depth; /* depth of ite display */
92 1.1 leo };
93 1.1 leo
94 1.1 leo struct itebell {
95 1.1 leo u_int volume; /* volume of bell (0-64) */
96 1.1 leo u_int pitch; /* pitch of bell (10-2000) */
97 1.1 leo u_int msec; /* duration of bell */
98 1.1 leo };
99 1.1 leo #define MAXBVOLUME (63)
100 1.1 leo #define MAXBPITCH (2000)
101 1.1 leo #define MINBPITCH (10)
102 1.1 leo #define MAXBTIME (5000) /* 5 seconds */
103 1.1 leo
104 1.1 leo struct iterepeat {
105 1.1 leo int start; /* number of 100/s before repeat start */
106 1.1 leo int next; /* number of 100/s before next repeat */
107 1.1 leo };
108 1.1 leo #define ITEMINREPEAT 5 /* mininum number of 100/s for key repeat */
109 1.1 leo
110 1.1 leo #define ITEIOCSKMAP _IOW('Z',0x70, struct kbdmap)
111 1.2 leo #define ITEIOCSSKMAP _IOW('Z',0x68, struct kbdmap)
112 1.1 leo #define ITEIOCGKMAP _IOR('Z',0x71, struct kbdmap)
113 1.1 leo #define ITEIOCGWINSZ _IOR('Z',0x72, struct itewinsize)
114 1.1 leo #define ITEIOCSWINSZ _IOW('Z',0x73, struct itewinsize)
115 1.1 leo #define ITEIOCDSPWIN _IO('Z', 0x74)
116 1.1 leo #define ITEIOCREMWIN _IO('Z', 0x75)
117 1.1 leo #define ITEIOCGBELL _IOR('Z', 0x76, struct itebell)
118 1.1 leo #define ITEIOCSBELL _IOW('Z', 0x77, struct itebell)
119 1.1 leo #define ITEIOCGREPT _IOR('Z', 0x78, struct iterepeat)
120 1.1 leo #define ITEIOCSREPT _IOW('Z', 0x79, struct iterepeat)
121 1.1 leo
122 1.1 leo
123 1.1 leo #define ITESWITCH _IOW('Z',0x69, int) /* XXX */
124 1.1 leo
125 1.4 he #endif /* _MACHINE_ITEIOCTL_H_ */
126