Home | History | Annotate | Line # | Download | only in dec
lk201var.h revision 1.2.24.1
      1  1.2.24.1   nathanw /* $NetBSD: lk201var.h,v 1.2.24.1 2001/09/21 22:35:29 nathanw 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  * 3. All advertising materials mentioning features or use of this software
     16       1.2  drochner  *    must display the following acknowledgement:
     17       1.2  drochner  *	This product includes software developed for the NetBSD Project
     18       1.2  drochner  *	by Matthias Drochner.
     19       1.2  drochner  * 4. The name of the author may not be used to endorse or promote products
     20       1.2  drochner  *    derived from this software without specific prior written permission.
     21       1.2  drochner  *
     22       1.2  drochner  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23       1.2  drochner  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24       1.2  drochner  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25       1.2  drochner  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     26       1.2  drochner  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27       1.2  drochner  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28       1.2  drochner  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29       1.2  drochner  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30       1.2  drochner  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     31       1.2  drochner  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32       1.2  drochner  *
     33       1.2  drochner  */
     34       1.2  drochner 
     35       1.2  drochner struct lk201_attachment {
     36       1.2  drochner 	int (*sendchar) __P((void *, u_char));
     37       1.2  drochner 	void *cookie;
     38       1.2  drochner };
     39       1.1  drochner 
     40       1.1  drochner struct lk201_state {
     41       1.2  drochner 	struct lk201_attachment attmt;
     42       1.1  drochner #define LK_KLL 8
     43       1.1  drochner 	int down_keys_list[LK_KLL];
     44       1.2  drochner 	int bellvol;
     45       1.2  drochner 	int leds_state;
     46  1.2.24.1   nathanw 	int kcvol;
     47       1.1  drochner };
     48       1.1  drochner 
     49       1.2  drochner int lk201_init __P((struct lk201_state *));
     50       1.1  drochner int lk201_decode __P((struct lk201_state *, int, u_int *, int *));
     51       1.2  drochner void lk201_bell __P((struct lk201_state *, struct wskbd_bell_data *));
     52       1.2  drochner void lk201_set_leds __P((struct lk201_state *, int));
     53  1.2.24.1   nathanw void lk201_set_keyclick __P((struct lk201_state *, int));
     54