Changeset 7f2e33a in mainline
- Timestamp:
- 2011-04-07T21:48:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dd10e07
- Parents:
- fee6381
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbd/kbddev.c
rfee6381 r7f2e33a 636 636 usb_hid_report_path_t *path = usb_hid_report_path(); 637 637 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 638 usb_hid_report_path_set_report_id(path, 1);638 usb_hid_report_path_set_report_id(path, 0); 639 639 640 640 int rc = usb_hid_parse_report(hid_dev->parser, buffer, … … 733 733 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 734 734 735 usb_hid_report_path_set_report_id(path, 1);735 usb_hid_report_path_set_report_id(path, 0); 736 736 737 737 kbd_dev->key_count = usb_hid_report_input_length( -
uspace/drv/usbhid/usbhid.c
rfee6381 r7f2e33a 40 40 #include <usb/classes/hidparser.h> 41 41 #include <usb/classes/hidreport.h> 42 #include <usb/classes/hidreq.h> 42 43 #include <errno.h> 43 44 … … 117 118 size_t buffer_size, void *arg) 118 119 { 120 usb_log_debug("Dummy polling callback.\n"); 119 121 return false; 120 122 } … … 177 179 rc = usb_hid_process_report_descriptor(hid_dev->usb_dev, 178 180 hid_dev->parser); 181 179 182 if (rc != EOK) { 180 183 usb_log_warning("Could not process report descriptor.\n"); … … 240 243 break; 241 244 default: 245 // usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe, 246 // hid_dev->usb_dev->interface_no, 0); 242 247 break; 243 248 } -
uspace/drv/usbhid/usbhid.ma
rfee6381 r7f2e33a 1 100 0usb&interface&class=HID&subclass=0x01&protocol=0x022 100 0usb&interface&class=HID1 100 usb&interface&class=HID&subclass=0x01&protocol=0x02 2 100 usb&interface&class=HID -
uspace/drv/usbkbd/kbddev.c
rfee6381 r7f2e33a 614 614 usb_hid_report_path_t *path = usb_hid_report_path(); 615 615 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 616 usb_hid_report_path_set_report_id(path, 1);616 usb_hid_report_path_set_report_id(path, 0); 617 617 618 618 int rc = usb_hid_parse_report(kbd_dev->parser, buffer, … … 768 768 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 769 769 770 usb_hid_report_path_set_report_id(path, 1);770 usb_hid_report_path_set_report_id(path, 0); 771 771 772 772 kbd_dev->key_count = usb_hid_report_input_length( -
uspace/drv/usbkbd/usbkbd.ma
rfee6381 r7f2e33a 1 10 usb&interface&class=HID&subclass=0x01&protocol=0x011 1000 usb&interface&class=HID&subclass=0x01&protocol=0x01 -
uspace/lib/usb/src/devpoll.c
rfee6381 r7f2e33a 66 66 usb_pipe_t *pipe 67 67 = polling_data->dev->pipes[polling_data->pipe_index].pipe; 68 69 usb_log_debug("Pipe interface number: %d, protocol: %d, subclass: %d, max packet size: %d\n", 70 polling_data->dev->pipes[polling_data->pipe_index].interface_no, 71 polling_data->dev->pipes[polling_data->pipe_index].description->interface_protocol, 72 polling_data->dev->pipes[polling_data->pipe_index].description->interface_subclass, 73 pipe->max_packet_size); 68 74 69 75 size_t failed_attempts = 0; … … 83 89 /* Quit the session regardless of errors. */ 84 90 usb_pipe_end_session(pipe); 91 92 // if (rc == ESTALL) { 93 // usb_log_debug("Seding clear feature...\n"); 94 // usb_request_clear_feature(pipe, USB_REQUEST_TYPE_STANDARD, 95 // USB_REQUEST_RECIPIENT_ENDPOINT, 0, pipe->endpoint_no); 96 // continue; 97 // } 85 98 86 99 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.