2 * USB keyboard/mouse constants
8 /* HID class subclass protocol ids */
9 PtrCSP = 0x020103, /* mouse.boot.hid */
10 Ptr2CSP = 0x000003, /* could be a trackpoint */
11 KbdCSP = 0x010103, /* keyboard.boot.hid */
19 /* protocols for SET_PROTO request */
23 /* protocols for SET_REPORT request */
28 * USB HID report descriptor item tags
70 Fdata = 0<<0, Fconst = 1<<0,
71 Farray = 0<<1, Fvar = 1<<1,
72 Fabs = 0<<2, Frel = 1<<2,
73 Fnowrap = 0<<3, Fwrap = 1<<3,
74 Flinear = 0<<4, Fnonlin = 1<<4,
75 Fpref = 0<<5, Fnopref = 1<<5,
76 Fnonull = 0<<6, Fnullst = 1<<6,
80 /* keyboard modifier bits */
90 /* masks for byte[0] */
91 Mctrl = 1<<Mlctrl | 1<<Mrctrl,
92 Mshift = 1<<Mlshift | 1<<Mrshift,
93 Malt = 1<<Mlalt | 1<<Mralt,
96 Mgui = 1<<Mlgui | 1<<Mrgui,
98 MaxAcc = 3, /* max. ptr acceleration */
99 PtrMask= 0xf, /* 4 buttons: should allow for more. */
104 * Plan 9 keyboard driver constants.
107 /* Scan codes (see kbd.c) */
108 SCesc1 = 0xe0, /* first of a 2-character sequence */
114 Keyup = 0x80, /* flag bit */
115 Keymask = 0x7f, /* regular scan code bits */