5 struct usb_interface_descriptor;
7 int usb_hid_init(struct usb_pipe *pipe
8 , struct usb_interface_descriptor *iface, int imax);
9 void usb_hid_setup(void);
10 inline int usb_kbd_active(void);
11 inline int usb_kbd_command(int command, u8 *param);
12 inline int usb_mouse_active(void);
13 inline int usb_mouse_command(int command, u8 *param);
14 void usb_check_event(void);
17 /****************************************************************
19 ****************************************************************/
21 #define USB_INTERFACE_SUBCLASS_BOOT 1
22 #define USB_INTERFACE_PROTOCOL_KEYBOARD 1
23 #define USB_INTERFACE_PROTOCOL_MOUSE 2
25 #define HID_REQ_GET_REPORT 0x01
26 #define HID_REQ_GET_IDLE 0x02
27 #define HID_REQ_GET_PROTOCOL 0x03
28 #define HID_REQ_SET_REPORT 0x09
29 #define HID_REQ_SET_IDLE 0x0A
30 #define HID_REQ_SET_PROTOCOL 0x0B