iteioctl.h revision 1.8
11.1Smw/*
21.1Smw * Copyright (c) 1988 University of Utah.
31.1Smw * Copyright (c) 1990 The Regents of the University of California.
41.1Smw * All rights reserved.
51.1Smw *
61.1Smw * This code is derived from software contributed to Berkeley by
71.1Smw * the Systems Programming Group of the University of Utah Computer
81.1Smw * Science Department.
91.1Smw *
101.1Smw * Redistribution and use in source and binary forms, with or without
111.1Smw * modification, are permitted provided that the following conditions
121.1Smw * are met:
131.1Smw * 1. Redistributions of source code must retain the above copyright
141.1Smw *    notice, this list of conditions and the following disclaimer.
151.1Smw * 2. Redistributions in binary form must reproduce the above copyright
161.1Smw *    notice, this list of conditions and the following disclaimer in the
171.1Smw *    documentation and/or other materials provided with the distribution.
181.1Smw * 3. All advertising materials mentioning features or use of this software
191.1Smw *    must display the following acknowledgement:
201.1Smw *	This product includes software developed by the University of
211.1Smw *	California, Berkeley and its contributors.
221.1Smw * 4. Neither the name of the University nor the names of its contributors
231.1Smw *    may be used to endorse or promote products derived from this software
241.1Smw *    without specific prior written permission.
251.1Smw *
261.1Smw * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
271.1Smw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
281.1Smw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
291.1Smw * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
301.1Smw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
311.1Smw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
321.1Smw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
331.1Smw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
341.1Smw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
351.1Smw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
361.1Smw * SUCH DAMAGE.
371.1Smw *
381.4Smw * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$
391.4Smw *
401.4Smw *	@(#)iteioctl.h	7.2 (Berkeley) 11/4/90
411.8Schopps *	$Id: iteioctl.h,v 1.8 1994/05/11 19:06:47 chopps Exp $
421.1Smw */
431.1Smw
441.7Schoppsstruct itewinsize {
451.8Schopps	int x;			/* leftedge offset to the right */
461.8Schopps	int y;			/* topedge offset down */
471.8Schopps	u_int width;		/* width of ite display */
481.8Schopps	u_int height;		/* height of ite display */
491.8Schopps	u_int depth;		/* depth of ite display */
501.5Smw};
511.5Smw
521.7Schoppsstruct itebell {
531.8Schopps	u_int volume;		/* volume of bell (0-64) */
541.8Schopps	u_int pitch;		/* pitch of bell (10-2000) */
551.8Schopps	u_int msec;		/* duration of bell */
561.5Smw};
571.7Schopps#define MAXBVOLUME (63)
581.7Schopps#define MAXBPITCH (2000)
591.7Schopps#define MINBPITCH (10)
601.7Schopps#define MAXBTIME (5000)		/* 5 seconds */
611.7Schopps
621.8Schoppsstruct iterepeat {
631.8Schopps	int start;		/* number of 100/s before repeat start */
641.8Schopps	int next;		/* number of 100/s before next repeat */
651.8Schopps};
661.8Schopps#define ITEMINREPEAT	5	/* mininum number of 100/s for key repeat */
671.8Schopps
681.8Schopps#define ITEIOCSKMAP	_IOW('Z',0x70, struct kbdmap)
691.8Schopps#define ITEIOCGKMAP	_IOR('Z',0x71, struct kbdmap)
701.7Schopps#define ITEIOCGWINSZ	_IOR('Z',0x72, struct itewinsize)
711.7Schopps#define ITEIOCSWINSZ	_IOW('Z',0x73, struct itewinsize)
721.7Schopps#define ITEIOCDSPWIN	_IO('Z', 0x74)
731.7Schopps#define ITEIOCREMWIN	_IO('Z', 0x75)
741.7Schopps#define ITEIOCGBELL	_IOR('Z', 0x76, struct itebell)
751.7Schopps#define ITEIOCSBELL	_IOW('Z', 0x77, struct itebell)
761.8Schopps#define ITEIOCGREPT	_IOR('Z', 0x78, struct iterepeat)
771.8Schopps#define ITEIOCSREPT	_IOW('Z', 0x79, struct iterepeat)
781.5Smw
791.5Smw
801.7Schopps#define ITESWITCH	_IOW('Z',0x69, int)	/* XXX */
811.5Smw
82