|
|
1.1 ! root 1: #ifndef __USB_HID_H ! 2: #define __USB_HID_H ! 3: ! 4: // usb-hid.c ! 5: struct usb_interface_descriptor; ! 6: int usb_keyboard_init(u32 endp, struct usb_interface_descriptor *iface ! 7: , int imax); ! 8: void usb_keyboard_setup(); ! 9: void usb_check_key(); ! 10: ! 11: ! 12: /**************************************************************** ! 13: * hid flags ! 14: ****************************************************************/ ! 15: ! 16: #define USB_INTERFACE_SUBCLASS_BOOT 1 ! 17: #define USB_INTERFACE_PROTOCOL_KEYBOARD 1 ! 18: #define USB_INTERFACE_PROTOCOL_MOUSE 2 ! 19: ! 20: #define HID_REQ_GET_REPORT 0x01 ! 21: #define HID_REQ_GET_IDLE 0x02 ! 22: #define HID_REQ_GET_PROTOCOL 0x03 ! 23: #define HID_REQ_SET_REPORT 0x09 ! 24: #define HID_REQ_SET_IDLE 0x0A ! 25: #define HID_REQ_SET_PROTOCOL 0x0B ! 26: ! 27: #endif // ush-hid.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.