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 * USB HID report descriptor item tags
69 Fdata = 0<<0, Fconst = 1<<0,
70 Farray = 0<<1, Fvar = 1<<1,
71 Fabs = 0<<2, Frel = 1<<2,
72 Fnowrap = 0<<3, Fwrap = 1<<3,
73 Flinear = 0<<4, Fnonlin = 1<<4,
74 Fpref = 0<<5, Fnopref = 1<<5,
75 Fnonull = 0<<6, Fnullst = 1<<6,
79 /* keyboard modifier bits */
89 /* masks for byte[0] */
90 Mctrl = 1<<Mlctrl | 1<<Mrctrl,
91 Mshift = 1<<Mlshift | 1<<Mrshift,
92 Malt = 1<<Mlalt | 1<<Mralt,
95 Mgui = 1<<Mlgui | 1<<Mrgui,
97 MaxAcc = 3, /* max. ptr acceleration */
98 PtrMask= 0xf, /* 4 buttons: should allow for more. */
103 * Plan 9 keyboard driver constants.
106 /* Scan codes (see kbd.c) */
107 SCesc1 = 0xe0, /* first of a 2-character sequence */
113 Keyup = 0x80, /* flag bit */
114 Keymask = 0x7f, /* regular scan code bits */