Home | History | Annotate | Line # | Download | only in dec
lk201var.h revision 1.3.18.2
      1  1.3.18.1     skrll /* $NetBSD: lk201var.h,v 1.3.18.2 2004/09/18 14:45:39 skrll Exp $ */
      2       1.2  drochner 
      3       1.2  drochner /*
      4       1.2  drochner  * Copyright (c) 1998
      5       1.2  drochner  *	Matthias Drochner.  All rights reserved.
      6       1.2  drochner  *
      7       1.2  drochner  * Redistribution and use in source and binary forms, with or without
      8       1.2  drochner  * modification, are permitted provided that the following conditions
      9       1.2  drochner  * are met:
     10       1.2  drochner  * 1. Redistributions of source code must retain the above copyright
     11       1.2  drochner  *    notice, this list of conditions and the following disclaimer.
     12       1.2  drochner  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.2  drochner  *    notice, this list of conditions and the following disclaimer in the
     14       1.2  drochner  *    documentation and/or other materials provided with the distribution.
     15       1.2  drochner  *
     16       1.2  drochner  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17       1.2  drochner  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18       1.2  drochner  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19       1.2  drochner  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20       1.2  drochner  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     21       1.2  drochner  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     22       1.2  drochner  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     23       1.2  drochner  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24       1.2  drochner  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     25       1.2  drochner  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26       1.2  drochner  *
     27       1.2  drochner  */
     28       1.2  drochner 
     29       1.2  drochner struct lk201_attachment {
     30       1.2  drochner 	int (*sendchar) __P((void *, u_char));
     31       1.2  drochner 	void *cookie;
     32       1.2  drochner };
     33       1.1  drochner 
     34       1.1  drochner struct lk201_state {
     35       1.2  drochner 	struct lk201_attachment attmt;
     36       1.1  drochner #define LK_KLL 8
     37       1.1  drochner 	int down_keys_list[LK_KLL];
     38       1.2  drochner 	int bellvol;
     39       1.2  drochner 	int leds_state;
     40       1.3        ad 	int kcvol;
     41       1.1  drochner };
     42       1.1  drochner 
     43       1.2  drochner int lk201_init __P((struct lk201_state *));
     44       1.1  drochner int lk201_decode __P((struct lk201_state *, int, u_int *, int *));
     45       1.2  drochner void lk201_bell __P((struct lk201_state *, struct wskbd_bell_data *));
     46       1.2  drochner void lk201_set_leds __P((struct lk201_state *, int));
     47       1.3        ad void lk201_set_keyclick __P((struct lk201_state *, int));
     48