xref: /freebsd/sys/dev/vkbd/vkbd_var.h (revision 2ff63af9b88c7413b7d71715b5532625752a248e)
1098ca2bdSWarner Losh /*-
2f89a7b24SMaksim Yevmenkin  * vkbd_var.h
3f89a7b24SMaksim Yevmenkin  *
4*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
5718cf2ccSPedro F. Giffuni  *
6f89a7b24SMaksim Yevmenkin  * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com>
7f89a7b24SMaksim Yevmenkin  * All rights reserved.
8f89a7b24SMaksim Yevmenkin  *
9f89a7b24SMaksim Yevmenkin  * Redistribution and use in source and binary forms, with or without
10f89a7b24SMaksim Yevmenkin  * modification, are permitted provided that the following conditions
11f89a7b24SMaksim Yevmenkin  * are met:
12f89a7b24SMaksim Yevmenkin  * 1. Redistributions of source code must retain the above copyright
13f89a7b24SMaksim Yevmenkin  *    notice, this list of conditions and the following disclaimer.
14f89a7b24SMaksim Yevmenkin  * 2. Redistributions in binary form must reproduce the above copyright
15f89a7b24SMaksim Yevmenkin  *    notice, this list of conditions and the following disclaimer in the
16f89a7b24SMaksim Yevmenkin  *    documentation and/or other materials provided with the distribution.
17f89a7b24SMaksim Yevmenkin  *
18f89a7b24SMaksim Yevmenkin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19f89a7b24SMaksim Yevmenkin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20f89a7b24SMaksim Yevmenkin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21f89a7b24SMaksim Yevmenkin  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22f89a7b24SMaksim Yevmenkin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23f89a7b24SMaksim Yevmenkin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24f89a7b24SMaksim Yevmenkin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25f89a7b24SMaksim Yevmenkin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26f89a7b24SMaksim Yevmenkin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27f89a7b24SMaksim Yevmenkin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28f89a7b24SMaksim Yevmenkin  * SUCH DAMAGE.
29f89a7b24SMaksim Yevmenkin  *
30f89a7b24SMaksim Yevmenkin  * $Id: vkbd_var.h,v 1.4 2004/08/17 17:43:14 max Exp $
31f89a7b24SMaksim Yevmenkin  */
32f89a7b24SMaksim Yevmenkin 
33f89a7b24SMaksim Yevmenkin #ifndef _VKBD_VAR_H_
34f89a7b24SMaksim Yevmenkin #define _VKBD_VAR_H_
35f89a7b24SMaksim Yevmenkin 
36f89a7b24SMaksim Yevmenkin #define	VKBD_Q_SIZE	64	/* vkbd input queue size */
37f89a7b24SMaksim Yevmenkin 
38f89a7b24SMaksim Yevmenkin struct vkbd_status
39f89a7b24SMaksim Yevmenkin {
40f89a7b24SMaksim Yevmenkin 	int	mode;		/* keyboard mode */
41f89a7b24SMaksim Yevmenkin 	int	leds;		/* keyboard LEDs */
42f89a7b24SMaksim Yevmenkin 	int	lock;		/* keyboard lock key state */
43f89a7b24SMaksim Yevmenkin 	int	delay;		/* keyboard delay */
44f89a7b24SMaksim Yevmenkin 	int	rate;		/* keyboard rate */
45f89a7b24SMaksim Yevmenkin 	int	reserved[3];
46f89a7b24SMaksim Yevmenkin };
47f89a7b24SMaksim Yevmenkin 
48f89a7b24SMaksim Yevmenkin typedef struct vkbd_status	vkbd_status_t;
49f89a7b24SMaksim Yevmenkin typedef struct vkbd_status *	vkbd_status_p;
50f89a7b24SMaksim Yevmenkin 
51f89a7b24SMaksim Yevmenkin #endif /* ndef _VKBD_VAR_H_ */
52