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