
struct _IBM_Kbd {
	unsigned char	pad;
	unsigned char	key;
	unsigned short	x, y;
	u_long		time;
};

struct ibmkbd_priv {
	unsigned char	*map;
	int offset;
};

#define KBD_OFFSET	7

#define INPUT_MOUSE	0x0002
#define INPUT_KBD	0x0001

#define NKQUEUE		20

#define PC_FAKESHIFT	0x87
#define PC_DEL		0x53

#define LED_NUM		2
#define LED_CAPS	4
#define LED_SCROLL	1

/* constant keys */
#define KEY_CAPSLOCK	0x3a
#define KEY_NUMLOCK	0x67
#define KEY_SCROLLLOCK	0x46
#define KEY_PAUSE	0x45
#define KEY_CONTROL	0x1d

extern unsigned kbd_flags;
#define KBD_ON		0x0001
/* #define KBD_CLICK	0x0002 */
/* #define KBD_CLCOUNT	0x0004 */		/* count contains CLICK_COUNT */
#define KBD_REPEAT	0x0008
#define KBD_BELLON	0x0010		/* bell in progress */
#define KBD_CLICKON	0x0020
#define KBD_INIT	0x0040
#define KBD_ATEXIT	0x0080
#define KBD_XT		0x0100
