Changeset 7f2e33a in mainline for uspace/drv


Ignore:
Timestamp:
2011-04-07T21:48:37Z (15 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/drv
Files:
5 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
Note: See TracChangeset for help on using the changeset viewer.