Changes in uspace/drv/usbhid/kbd/kbddev.h [74a1ba9:73ae3373] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbd/kbddev.h
r74a1ba9 r73ae3373 65 65 */ 66 66 typedef struct usb_kbd_t { 67 /** Structure holding generic USB device information. */ 68 //usbhid_dev_t *hid_dev; 69 //usb_device_t *usb_dev; 70 67 71 /** Currently pressed keys (not translated to key codes). */ 68 72 uint8_t *keys; … … 87 91 fibril_mutex_t *repeat_mtx; 88 92 93 /** Report descriptor. */ 94 //uint8_t *report_desc; 95 96 /** Report descriptor size. */ 97 //size_t report_desc_size; 98 89 99 uint8_t *output_buffer; 90 100 … … 96 106 97 107 int32_t *led_data; 108 109 /** HID Report parser. */ 110 //usb_hid_report_parser_t *parser; 98 111 99 112 /** State of the structure (for checking before use). … … 108 121 /*----------------------------------------------------------------------------*/ 109 122 123 //enum { 124 // USB_KBD_POLL_EP_NO = 0, 125 // USB_HID_POLL_EP_NO = 1, 126 // USB_KBD_POLL_EP_COUNT = 2 127 //}; 128 129 //usb_endpoint_description_t *usb_kbd_endpoints[USB_KBD_POLL_EP_COUNT + 1]; 130 131 //ddf_dev_ops_t keyboard_ops; 132 110 133 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description; 111 134 … … 115 138 /*----------------------------------------------------------------------------*/ 116 139 140 //usb_kbd_t *usb_kbd_new(void); 141 117 142 int usb_kbd_init(struct usb_hid_dev_t *hid_dev); 118 143 119 144 bool usb_kbd_polling_callback(usb_device_t *dev, uint8_t *buffer, 120 145 size_t buffer_size, void *arg); 146 147 //void usb_kbd_polling_ended_callback(usb_device_t *dev, bool reason, 148 // void *arg); 121 149 122 150 int usb_kbd_is_initialized(const usb_kbd_t *kbd_dev); … … 129 157 int type, unsigned int key); 130 158 159 131 160 void usb_kbd_deinit(struct usb_hid_dev_t *hid_dev); 132 161
Note:
See TracChangeset
for help on using the changeset viewer.