
struct _IBM_Kbd {
	struct _IBM_Kbd	near *next;	/* next element in queue */
	unsigned char	pad;
	unsigned char	key;
	int		x, y;
	u_long		time;
};

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

#define KBD_OFFSET	7

#define INPUT_MOUSE	0x0002L
#define INPUT_KBD	0x0001L

#define NKQUEUE		20

#define PC_CTRL		0x1d
#define PC_ALT		0x38
#define PC_DEL		0x53
#define PC_NUMLOCK	0x45
#define PC_CAPSLOCK	0x3a
#define PC_FAKESHIFT	0x87

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

#define MIN_KEYCODE	8	/* necessary to avoid the mouse buttons */
