11.14Sandvar/* $NetBSD: iteioctl.h,v 1.14 2021/11/01 21:28:02 andvar Exp $ */ 21.9Scgd 31.1Smw/* 41.12Srmind * Copyright (c) 1988 University of Utah. 51.1Smw * Copyright (c) 1990 The Regents of the University of California. 61.1Smw * All rights reserved. 71.10Sagc * 81.10Sagc * This code is derived from software contributed to Berkeley by 91.10Sagc * the Systems Programming Group of the University of Utah Computer 101.10Sagc * Science Department. 111.10Sagc * 121.10Sagc * Redistribution and use in source and binary forms, with or without 131.10Sagc * modification, are permitted provided that the following conditions 141.10Sagc * are met: 151.10Sagc * 1. Redistributions of source code must retain the above copyright 161.10Sagc * notice, this list of conditions and the following disclaimer. 171.10Sagc * 2. Redistributions in binary form must reproduce the above copyright 181.10Sagc * notice, this list of conditions and the following disclaimer in the 191.10Sagc * documentation and/or other materials provided with the distribution. 201.10Sagc * 3. Neither the name of the University nor the names of its contributors 211.10Sagc * may be used to endorse or promote products derived from this software 221.10Sagc * without specific prior written permission. 231.10Sagc * 241.10Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 251.10Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 261.10Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 271.10Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 281.10Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 291.10Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 301.10Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 311.10Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 321.10Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 331.10Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 341.10Sagc * SUCH DAMAGE. 351.10Sagc * 361.10Sagc * from: Utah $Hdr: iteioctl.h 1.1 90/07/09$ 371.10Sagc * 381.10Sagc * @(#)iteioctl.h 7.2 (Berkeley) 11/4/90 391.10Sagc */ 401.1Smw 411.13Sdholland#include <sys/ioccom.h> 421.13Sdholland 431.7Schoppsstruct itewinsize { 441.8Schopps int x; /* leftedge offset to the right */ 451.8Schopps int y; /* topedge offset down */ 461.8Schopps u_int width; /* width of ite display */ 471.8Schopps u_int height; /* height of ite display */ 481.8Schopps u_int depth; /* depth of ite display */ 491.5Smw}; 501.5Smw 511.7Schoppsstruct itebell { 521.8Schopps u_int volume; /* volume of bell (0-64) */ 531.8Schopps u_int pitch; /* pitch of bell (10-2000) */ 541.8Schopps u_int msec; /* duration of bell */ 551.5Smw}; 561.7Schopps#define MAXBVOLUME (63) 571.7Schopps#define MAXBPITCH (2000) 581.7Schopps#define MINBPITCH (10) 591.7Schopps#define MAXBTIME (5000) /* 5 seconds */ 601.7Schopps 611.8Schoppsstruct iterepeat { 621.8Schopps int start; /* number of 100/s before repeat start */ 631.8Schopps int next; /* number of 100/s before next repeat */ 641.8Schopps}; 651.14Sandvar#define ITEMINREPEAT 5 /* minimum number of 100/s for key repeat */ 661.8Schopps 671.8Schopps#define ITEIOCSKMAP _IOW('Z',0x70, struct kbdmap) 681.8Schopps#define ITEIOCGKMAP _IOR('Z',0x71, struct kbdmap) 691.7Schopps#define ITEIOCGWINSZ _IOR('Z',0x72, struct itewinsize) 701.7Schopps#define ITEIOCSWINSZ _IOW('Z',0x73, struct itewinsize) 711.7Schopps#define ITEIOCDSPWIN _IO('Z', 0x74) 721.7Schopps#define ITEIOCREMWIN _IO('Z', 0x75) 731.7Schopps#define ITEIOCGBELL _IOR('Z', 0x76, struct itebell) 741.7Schopps#define ITEIOCSBELL _IOW('Z', 0x77, struct itebell) 751.8Schopps#define ITEIOCGREPT _IOR('Z', 0x78, struct iterepeat) 761.8Schopps#define ITEIOCSREPT _IOW('Z', 0x79, struct iterepeat) 771.5Smw 781.5Smw 791.7Schopps#define ITESWITCH _IOW('Z',0x69, int) /* XXX */ 801.5Smw 81