Changeset 7f2e33a in mainline


Ignore:
Timestamp:
2011-04-07T21:48:37Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd10e07
Parents:
fee6381
Message:

Fixed requested Report ID, some debugging stuff.

Location:
uspace
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    rfee6381 r7f2e33a  
    636636        usb_hid_report_path_t *path = usb_hid_report_path();
    637637        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);
    639639       
    640640        int rc = usb_hid_parse_report(hid_dev->parser, buffer,
     
    733733        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    734734       
    735         usb_hid_report_path_set_report_id(path, 1);
     735        usb_hid_report_path_set_report_id(path, 0);
    736736       
    737737        kbd_dev->key_count = usb_hid_report_input_length(
  • uspace/drv/usbhid/usbhid.c

    rfee6381 r7f2e33a  
    4040#include <usb/classes/hidparser.h>
    4141#include <usb/classes/hidreport.h>
     42#include <usb/classes/hidreq.h>
    4243#include <errno.h>
    4344
     
    117118     size_t buffer_size, void *arg)
    118119{
     120        usb_log_debug("Dummy polling callback.\n");
    119121        return false;
    120122}
     
    177179        rc = usb_hid_process_report_descriptor(hid_dev->usb_dev,
    178180            hid_dev->parser);
     181       
    179182        if (rc != EOK) {
    180183                usb_log_warning("Could not process report descriptor.\n");
     
    240243                break;
    241244        default:
     245//              usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe,
     246//                  hid_dev->usb_dev->interface_no, 0);
    242247                break;
    243248        }
  • uspace/drv/usbhid/usbhid.ma

    rfee6381 r7f2e33a  
    1 1000 usb&interface&class=HID&subclass=0x01&protocol=0x02
    2 1000 usb&interface&class=HID
     1100 usb&interface&class=HID&subclass=0x01&protocol=0x02
     2100 usb&interface&class=HID
  • uspace/drv/usbkbd/kbddev.c

    rfee6381 r7f2e33a  
    614614        usb_hid_report_path_t *path = usb_hid_report_path();
    615615        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);
    617617       
    618618        int rc = usb_hid_parse_report(kbd_dev->parser, buffer,
     
    768768        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    769769       
    770         usb_hid_report_path_set_report_id(path, 1);
     770        usb_hid_report_path_set_report_id(path, 0);
    771771       
    772772        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=0x01
     11000 usb&interface&class=HID&subclass=0x01&protocol=0x01
  • uspace/lib/usb/src/devpoll.c

    rfee6381 r7f2e33a  
    6666        usb_pipe_t *pipe
    6767            = 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);
    6874
    6975        size_t failed_attempts = 0;
     
    8389                /* Quit the session regardless of errors. */
    8490                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//              }
    8598
    8699                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.