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