Changeset a8ac368 in mainline for uspace/drv/usbkbd/kbddev.c


Ignore:
Timestamp:
2011-03-29T20:08:53Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc883bb
Parents:
0d92638 (diff), 51e5608 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

development changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/kbddev.c

    r0d92638 ra8ac368  
    602602//      int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size,
    603603//          callbacks, kbd_dev);
     604        usb_hid_report_path_t *path = usb_hid_report_path();
     605        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
     606       
    604607        int rc = usb_hid_parse_report(kbd_dev->parser, buffer,
    605             actual_size, callbacks, kbd_dev);
     608            actual_size, path, USB_HID_PATH_COMPARE_STRICT, callbacks, kbd_dev);
     609
     610        usb_hid_report_path_free (path);
    606611       
    607612        if (rc != EOK) {
     
    704709       
    705710        /* TODO: does not work! */
    706         if (dev->pipes[USB_KBD_POLL_EP_NO].interface_no < 0) {
     711        if (!dev->pipes[USB_KBD_POLL_EP_NO].present) {
    707712                usb_log_warning("Required endpoint not found - probably not "
    708713                    "a supported device.\n");
     
    747752         * TODO: make more general
    748753         */
    749         usb_hid_report_path_t path;
    750         path.usage_page = USB_HIDUT_PAGE_KEYBOARD;
     754        usb_hid_report_path_t *path = usb_hid_report_path();
     755        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    751756        kbd_dev->key_count = usb_hid_report_input_length(
    752             kbd_dev->parser, &path);
     757            kbd_dev->parser, path, USB_HID_PATH_COMPARE_STRICT);
     758        usb_hid_report_path_free (path);
    753759       
    754760        usb_log_debug("Size of the input report: %zu\n", kbd_dev->key_count);
Note: See TracChangeset for help on using the changeset viewer.