xref: /netbsd-src/sys/arch/x68k/include/kbio.h (revision 25d3b9e7cbaca1403601fd183d24e28ebfab52f1)
1*25d3b9e7Sdholland /*	$NetBSD: kbio.h,v 1.6 2015/09/07 03:49:46 dholland Exp $ */
2320e7320Soki 
3320e7320Soki /*
4320e7320Soki  * Copyright (c) 1992, 1993
5320e7320Soki  *	The Regents of the University of California.  All rights reserved.
6320e7320Soki  *
7320e7320Soki  * This software was developed by the Computer Systems Engineering group
8320e7320Soki  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
9320e7320Soki  * contributed to Berkeley.
10320e7320Soki  *
11320e7320Soki  * All advertising materials mentioning features or use of this software
12320e7320Soki  * must display the following acknowledgement:
13320e7320Soki  *	This product includes software developed by the University of
14320e7320Soki  *	California, Lawrence Berkeley Laboratory.
15320e7320Soki  *
16320e7320Soki  * Redistribution and use in source and binary forms, with or without
17320e7320Soki  * modification, are permitted provided that the following conditions
18320e7320Soki  * are met:
19320e7320Soki  * 1. Redistributions of source code must retain the above copyright
20320e7320Soki  *    notice, this list of conditions and the following disclaimer.
21320e7320Soki  * 2. Redistributions in binary form must reproduce the above copyright
22320e7320Soki  *    notice, this list of conditions and the following disclaimer in the
23320e7320Soki  *    documentation and/or other materials provided with the distribution.
24aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
25320e7320Soki  *    may be used to endorse or promote products derived from this software
26320e7320Soki  *    without specific prior written permission.
27320e7320Soki  *
28320e7320Soki  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
29320e7320Soki  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30320e7320Soki  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31320e7320Soki  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
32320e7320Soki  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33320e7320Soki  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34320e7320Soki  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35320e7320Soki  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36320e7320Soki  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37320e7320Soki  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38320e7320Soki  * SUCH DAMAGE.
39320e7320Soki  *
40320e7320Soki  *	@(#)kbio.h	8.1 (Berkeley) 6/11/93
41320e7320Soki  */
42320e7320Soki 
4345274979Sminoura #ifndef _X68K_KBIO_H_
4445274979Sminoura #define _X68K_KBIO_H_
4545274979Sminoura 
46*25d3b9e7Sdholland #include <sys/ioccom.h>
474c242002She #include <dev/sun/kbio.h>
48320e7320Soki 
49320e7320Soki struct kiockey {
50320e7320Soki 	int	kio_tablemask;	/* whatever */
51320e7320Soki 	u_char	kio_station;	/* key number */
52320e7320Soki 	u_short	kio_entry;	/* HOLE if not present */
53320e7320Soki 	char	kio_text[10];	/* the silly escape sequences (unsupported) */
54320e7320Soki };
55320e7320Soki 
56320e7320Soki /* Same as bell_info */
57320e7320Soki struct kbiocbell {
58320e7320Soki 	int volume;
59320e7320Soki 	int pitch;
60320e7320Soki 	int msec;
61320e7320Soki };
62320e7320Soki 
63320e7320Soki /*
64320e7320Soki  * Keyboard LED masks (used to set LED's)
65320e7320Soki  */
66320e7320Soki #define	LED_ZENKAKU	0x40
67320e7320Soki #define	LED_HIRAGANA	0x20
68320e7320Soki #define	LED_INSERT	0x10
69320e7320Soki #define	LED_CAPS_LOCK	0x08
70320e7320Soki #define	LED_CODE_INPUT	0x04
71320e7320Soki #define	LED_ROMAJI	0x02
72320e7320Soki #define	LED_KANA_LOCK	0x01
73320e7320Soki 
74320e7320Soki /*
75320e7320Soki  * Values for kio_tablemask. These determine which table to read/modify
76320e7320Soki  * in KIOC[SG]KEY ioctls. Currently, we only have "non-shift" and "shift"
77320e7320Soki  * tables.
78320e7320Soki  */
79320e7320Soki 
80320e7320Soki #define	HOLE	0x302		/* value for kio_entry to say `really type 3' */
81320e7320Soki 
82320e7320Soki #define	KIOCSBELL	_IOW('k', 16, struct kbiocbell) /* set bell parameter */
83320e7320Soki 
844c242002She #endif /* _X68K_KBIO_H */
85