* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
* %sccs.include.redist.c%
* from: $Hdr: kbreg.h,v 4.300 91/06/09 06:42:47 root Rel41 $ SONY
* @(#)kbreg.h 7.1 (Berkeley) %G%
#include "machine/fix_machine_type.h"
#define key_any(x) ((x) != -1)
#define key_down(x) (((x) & 0x80) == 0)
#define key_up(x) ((x) & 0x80)
typedef struct key_string
{
typedef struct pfk_table
{
typedef struct pfk_string
{
#define KIOCSETS 0 /* set pfk string */
#define KIOCBELL 1 /* ring bell */
#define KIOCBACK 2 /* push back string */
#define KIOCREPT 3 /* auto repeat on */
#define KIOCNRPT 4 /* auto repeat off */
#define KIOCGETS 5 /* get pfk string */
#define KIOCRAW 6 /* get raw key data */
#define KIOCNREAD FIONREAD /* return input char's */
#define KIOCSETLOCK 10 /* set lock type */
#define KIOCSETTBL 11 /* set key_table */
#define KIOCGETCNUM 12 /* get country number */
#define KIOCSETCNUM 13 /* set country number */
#define KIOCDEFTBL 14 /* default key_table */
#define KIOCCHTBL 15 /* change key_table */
#define KIOCOYATBL 16 /* oya_key_table */
#define KIOCGETSTAT 17 /* get keyboard status */
#define KIOCSETSTAT 18 /* set keyboard status */
* Programmable function key
#endif /* !__KEYBOARD__ */