xref: /netbsd-src/sys/arch/atari/dev/kbdreg.h (revision 25d3b9e7cbaca1403601fd183d24e28ebfab52f1)
1*25d3b9e7Sdholland /*	$NetBSD: kbdreg.h,v 1.6 2015/09/07 03:49:45 dholland Exp $	*/
28b0113cfSleo 
38b0113cfSleo /*
48b0113cfSleo  * Copyright (c) 1992, 1993
58b0113cfSleo  *	The Regents of the University of California.  All rights reserved.
68b0113cfSleo  *
78b0113cfSleo  * This software was developed by the Computer Systems Engineering group
88b0113cfSleo  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
98b0113cfSleo  * contributed to Berkeley.
108b0113cfSleo  *
118b0113cfSleo  * All advertising materials mentioning features or use of this software
128b0113cfSleo  * must display the following acknowledgement:
138b0113cfSleo  *	This product includes software developed by the University of
148b0113cfSleo  *	California, Lawrence Berkeley Laboratory.
158b0113cfSleo  *
168b0113cfSleo  * Redistribution and use in source and binary forms, with or without
178b0113cfSleo  * modification, are permitted provided that the following conditions
188b0113cfSleo  * are met:
198b0113cfSleo  * 1. Redistributions of source code must retain the above copyright
208b0113cfSleo  *    notice, this list of conditions and the following disclaimer.
218b0113cfSleo  * 2. Redistributions in binary form must reproduce the above copyright
228b0113cfSleo  *    notice, this list of conditions and the following disclaimer in the
238b0113cfSleo  *    documentation and/or other materials provided with the distribution.
24aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
258b0113cfSleo  *    may be used to endorse or promote products derived from this software
268b0113cfSleo  *    without specific prior written permission.
278b0113cfSleo  *
288b0113cfSleo  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
298b0113cfSleo  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
308b0113cfSleo  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
318b0113cfSleo  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
328b0113cfSleo  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
338b0113cfSleo  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
348b0113cfSleo  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
358b0113cfSleo  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
368b0113cfSleo  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
378b0113cfSleo  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
388b0113cfSleo  * SUCH DAMAGE.
398b0113cfSleo  *
408b0113cfSleo  *	@(#)kbio.h	8.1 (Berkeley) 6/11/93
418b0113cfSleo  *
428b0113cfSleo  * from: Header: kbio.h,v 1.4 92/11/26 01:16:32 torek Exp  (LBL)
438b0113cfSleo  */
448b0113cfSleo 
4509b074c1She #ifndef _MACHINE_KBDREG_H_
4609b074c1She #define _MACHINE_KBDREG_H_
4709b074c1She 
48*25d3b9e7Sdholland #include <sys/ioccom.h>
49*25d3b9e7Sdholland 
50d4c5e4e6Sleo struct kbdbell {
51d4c5e4e6Sleo 	u_int volume;		/* volume of bell (0-64) */
52d4c5e4e6Sleo 	u_int pitch;		/* pitch of bell (10-20000) */
53d4c5e4e6Sleo 	u_int duration;		/* duration of bell */
54d4c5e4e6Sleo };
55d4c5e4e6Sleo 
568b0113cfSleo #define	KIOCTRANS	_IOW('k', 0, int)	/* set translation mode */
578b0113cfSleo 			/* (we only accept TR_UNTRANS_EVENT) */
588b0113cfSleo #define	KIOCGTRANS	_IOR('k', 5, int)	/* get translation mode */
598b0113cfSleo #define	KIOCSDIRECT	_IOW('k', 10, int)	/* keys to console? */
60d4c5e4e6Sleo #define	KIOCRINGBELL	_IOW('k', 15, struct kbdbell) /* ring bell */
618b0113cfSleo 
628b0113cfSleo #define	TR_UNTRANS_EVENT	3
6309b074c1She 
6409b074c1She #endif /* _MACHINE_KBDREG_H_ */
65