iteioctl.h revision 1.7
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.7Schopps * $Id: iteioctl.h,v 1.7 1994/04/10 00:43:36 chopps Exp $ 421.1Smw */ 431.1Smw 441.7Schoppsstruct itewinsize { 451.7Schopps int x; /* leftedge offset to the right */ 461.7Schopps int y; /* topedge offset down */ 471.7Schopps u_int width; /* width of ite display */ 481.7Schopps u_int height; /* height of ite display */ 491.7Schopps u_int depth; /* depth of ite display */ 501.5Smw}; 511.5Smw 521.7Schoppsstruct itebell { 531.7Schopps u_int volume; /* volume of bell (0-64) */ 541.7Schopps u_int pitch; /* pitch of bell (10-2000) */ 551.7Schopps u_int msec; /* duration of bell */ 561.5Smw}; 571.5Smw 581.7Schopps#define MAXBVOLUME (63) 591.7Schopps#define MAXBPITCH (2000) 601.7Schopps#define MINBPITCH (10) 611.7Schopps#define MAXBTIME (5000) /* 5 seconds */ 621.7Schopps 631.7Schopps#define ITEIOCGWINSZ _IOR('Z',0x72, struct itewinsize) 641.7Schopps#define ITEIOCSWINSZ _IOW('Z',0x73, struct itewinsize) 651.7Schopps#define ITEIOCDSPWIN _IO('Z', 0x74) 661.7Schopps#define ITEIOCREMWIN _IO('Z', 0x75) 671.7Schopps#define ITEIOCGBELL _IOR('Z', 0x76, struct itebell) 681.7Schopps#define ITEIOCSBELL _IOW('Z', 0x77, struct itebell) 691.5Smw 701.5Smw 711.7Schopps#define ITESWITCH _IOW('Z',0x69, int) /* XXX */ 721.7Schopps#define ITELOADKMAP _IOW('Z',0x70, struct kbdmap) 731.7Schopps#define ITEGETKMAP _IOR('Z',0x71, struct kbdmap) 741.5Smw 75