Files
Arquivotheca.Solaris-2.5/uts/common/sys/kbdreg.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

41 lines
699 B
C
Executable File

/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*/
#ifndef _SYS_KBDREG_H
#define _SYS_KBDREG_H
#pragma ident "@(#)kbdreg.h 1.12 93/11/22 SMI" /* SunOS4.0 1.7 */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Keyboard implementation private definitions.
*/
struct keyboardstate {
u_char k_id;
u_char k_idstate;
u_char k_state;
u_char k_rptkey;
u_int k_buckybits;
u_int k_shiftmask;
struct keyboard *k_curkeyboard;
u_int k_togglemask; /* Toggle shifts state */
};
/*
* States of keyboard ID recognizer
*/
#define KID_NONE 0 /* startup */
#define KID_GOT_PREFACE 1 /* got id preface */
#define KID_OK 2 /* locked on ID */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_KBDREG_H */