/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KBTRANS_STREAMS_H
#define _KBTRANS_STREAMS_H
#ifdef __cplusplus
extern "C" {
#endif
/* definitions for various state machines */
/*
* structure to keep track of currently pressed keys when in
* TR_UNTRANS_EVENT mode
*/
typedef struct key_event {
} Key_event;
/* state structure for kbtrans_streams */
struct kbtrans {
/* Read and write queues */
/* Pending "ioctl" awaiting buffer */
/* Number of times the keyboard overflowed input */
int kbtrans_overflow_cnt;
/* random flags */
/* id from qbufcall on allocb failure */
/* Vuid_id_addrs for various events */
struct {
short ascii;
short top;
short vkey;
/*
* Table of key stations currently down that have
* have firm events that need to be matched with up transitions
* when translation mode is TR_*EVENT
*/
/* Number of down entries */
/* Bytes allocated for downs */
/* Abort state */
enum {
/* Indicated whether or not abort may be honored */
/*
* During an abort sequence, says which key started the sequence.
* This is used to support both L1+A and F1+A.
*/
/* It is used to support new abort sequence Shift+Pause */
/* Functions to be called based on the translation type */
/* Keyboard type */
int kbtrans_streams_id;
/* Buffers to hold characters during the polled mode */
char *kbtrans_polled_pending_chars;
/* vt switch key sequence state */
enum {
VT_SWITCH_KEY_NONE = 0,
};
#ifdef __cplusplus
}
#endif
#endif /* _KBTRANS_STREAMS_H */