2 * USB keyboard/mouse constants
8 /* HID class subclass protocol ids */
9 PtrCSP = 0x020103, /* mouse.boot.hid */
10 KbdCSP = 0x010103, /* keyboard.boot.hid */
18 /* protocols for SET_PROTO request */
22 /* protocols for SET_REPORT request */
27 /* keyboard modifier bits */
37 /* masks for byte[0] */
38 Mctrl = 1<<Mlctrl | 1<<Mrctrl,
39 Mshift = 1<<Mlshift | 1<<Mrshift,
40 Malt = 1<<Mlalt | 1<<Mralt,
43 Mgui = 1<<Mlgui | 1<<Mrgui,
45 MaxAcc = 3, /* max. ptr acceleration */
46 PtrMask= 0xf, /* 4 buttons: should allow for more. */
51 * Plan 9 keyboard driver constants.
54 /* Scan codes (see kbd.c) */
55 SCesc1 = 0xe0, /* first of a 2-character sequence */
61 Keyup = 0x80, /* flag bit */
62 Keymask = 0x7f, /* regular scan code bits */
65 int kbmain(Dev *d, int argc, char*argv[]);