iteioctl.h revision 1.10
11.10Sagc/*	$NetBSD: iteioctl.h,v 1.10 2003/08/07 16:26:42 agc Exp $	*/
21.9Scgd
31.1Smw/*
41.1Smw * Copyright (c) 1990 The Regents of the University of California.
51.1Smw * All rights reserved.
61.10Sagc *
71.10Sagc * This code is derived from software contributed to Berkeley by
81.10Sagc * the Systems Programming Group of the University of Utah Computer
91.10Sagc * Science Department.
101.10Sagc *
111.10Sagc * Redistribution and use in source and binary forms, with or without
121.10Sagc * modification, are permitted provided that the following conditions
131.10Sagc * are met:
141.10Sagc * 1. Redistributions of source code must retain the above copyright
151.10Sagc *    notice, this list of conditions and the following disclaimer.
161.10Sagc * 2. Redistributions in binary form must reproduce the above copyright
171.10Sagc *    notice, this list of conditions and the following disclaimer in the
181.10Sagc *    documentation and/or other materials provided with the distribution.
191.10Sagc * 3. Neither the name of the University nor the names of its contributors
201.10Sagc *    may be used to endorse or promote products derived from this software
211.10Sagc *    without specific prior written permission.
221.10Sagc *
231.10Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
241.10Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251.10Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
261.10Sagc * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
271.10Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
281.10Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
291.10Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
301.10Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311.10Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321.10Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331.10Sagc * SUCH DAMAGE.
341.10Sagc *
351.10Sagc * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
361.10Sagc *
371.10Sagc *	@(#)iteioctl.h	7.2 (Berkeley) 11/4/90
381.10Sagc */
391.10Sagc/*
401.10Sagc * Copyright (c) 1988 University of Utah.
411.1Smw *
421.1Smw * This code is derived from software contributed to Berkeley by
431.1Smw * the Systems Programming Group of the University of Utah Computer
441.1Smw * Science Department.
451.1Smw *
461.1Smw * Redistribution and use in source and binary forms, with or without
471.1Smw * modification, are permitted provided that the following conditions
481.1Smw * are met:
491.1Smw * 1. Redistributions of source code must retain the above copyright
501.1Smw *    notice, this list of conditions and the following disclaimer.
511.1Smw * 2. Redistributions in binary form must reproduce the above copyright
521.1Smw *    notice, this list of conditions and the following disclaimer in the
531.1Smw *    documentation and/or other materials provided with the distribution.
541.1Smw * 3. All advertising materials mentioning features or use of this software
551.1Smw *    must display the following acknowledgement:
561.1Smw *	This product includes software developed by the University of
571.1Smw *	California, Berkeley and its contributors.
581.1Smw * 4. Neither the name of the University nor the names of its contributors
591.1Smw *    may be used to endorse or promote products derived from this software
601.1Smw *    without specific prior written permission.
611.1Smw *
621.1Smw * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
631.1Smw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
641.1Smw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
651.1Smw * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
661.1Smw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
671.1Smw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
681.1Smw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
691.1Smw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
701.1Smw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
711.1Smw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
721.1Smw * SUCH DAMAGE.
731.1Smw *
741.4Smw * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
751.4Smw *
761.4Smw *	@(#)iteioctl.h	7.2 (Berkeley) 11/4/90
771.1Smw */
781.1Smw
791.7Schoppsstruct itewinsize {
801.8Schopps	int x;			/* leftedge offset to the right */
811.8Schopps	int y;			/* topedge offset down */
821.8Schopps	u_int width;		/* width of ite display */
831.8Schopps	u_int height;		/* height of ite display */
841.8Schopps	u_int depth;		/* depth of ite display */
851.5Smw};
861.5Smw
871.7Schoppsstruct itebell {
881.8Schopps	u_int volume;		/* volume of bell (0-64) */
891.8Schopps	u_int pitch;		/* pitch of bell (10-2000) */
901.8Schopps	u_int msec;		/* duration of bell */
911.5Smw};
921.7Schopps#define MAXBVOLUME (63)
931.7Schopps#define MAXBPITCH (2000)
941.7Schopps#define MINBPITCH (10)
951.7Schopps#define MAXBTIME (5000)		/* 5 seconds */
961.7Schopps
971.8Schoppsstruct iterepeat {
981.8Schopps	int start;		/* number of 100/s before repeat start */
991.8Schopps	int next;		/* number of 100/s before next repeat */
1001.8Schopps};
1011.8Schopps#define ITEMINREPEAT	5	/* mininum number of 100/s for key repeat */
1021.8Schopps
1031.8Schopps#define ITEIOCSKMAP	_IOW('Z',0x70, struct kbdmap)
1041.8Schopps#define ITEIOCGKMAP	_IOR('Z',0x71, struct kbdmap)
1051.7Schopps#define ITEIOCGWINSZ	_IOR('Z',0x72, struct itewinsize)
1061.7Schopps#define ITEIOCSWINSZ	_IOW('Z',0x73, struct itewinsize)
1071.7Schopps#define ITEIOCDSPWIN	_IO('Z', 0x74)
1081.7Schopps#define ITEIOCREMWIN	_IO('Z', 0x75)
1091.7Schopps#define ITEIOCGBELL	_IOR('Z', 0x76, struct itebell)
1101.7Schopps#define ITEIOCSBELL	_IOW('Z', 0x77, struct itebell)
1111.8Schopps#define ITEIOCGREPT	_IOR('Z', 0x78, struct iterepeat)
1121.8Schopps#define ITEIOCSREPT	_IOW('Z', 0x79, struct iterepeat)
1131.5Smw
1141.5Smw
1151.7Schopps#define ITESWITCH	_IOW('Z',0x69, int)	/* XXX */
1161.5Smw
117