/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KB8042_H
#define _KB8042_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Messages from keyboard.
*/
/*
* Commands to keyboard.
*/
/*
* LED bits
*/
/*
* Keyboard scan code prefixes
*/
/*
* Korean keyboard keys. We handle these specially to avoid having to
* dramatically extend the table.
*/
#ifdef _KERNEL
struct kb8042 {
struct {
int desired;
int commanded;
} leds;
int parse_scan_state;
struct {
unsigned char mod1;
unsigned char mod2;
unsigned char trigger;
} debugger;
int simulated_kbd_type;
int break_received;
int ops;
int acked;
int need_retry;
};
/*
* We pick up the initial state of the keyboard from the BIOS state.
*/
#endif
/*
* Initialization states
*/
/*
* Key values that map into the USB translation table in kb8042.c
*/
#endif
#ifdef __cplusplus
}
#endif
#endif /* _KB8042_H */