Changeset bd2394b in mainline for uspace/drv


Ignore:
Timestamp:
2011-05-07T10:53:41Z (15 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc5908e
Parents:
ba17f5b
Message:

Removed functions for returning size of report for usage path

Location:
uspace/drv
Files:
4 edited

Legend:

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

    rba17f5b rbd2394b  
    693693       
    694694        while (field != NULL) {
    695                 usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
    696                     field, field->value, field->usage);
     695                //usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
     696                //    field, field->value, field->usage);
    697697               
    698698                assert(i < kbd_dev->key_count);
     
    858858        usb_hid_report_path_set_report_id(path, 0);
    859859       
    860         kbd_dev->key_count = usb_hid_report_input_length(
    861             hid_dev->report, path,
    862             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     860        kbd_dev->key_count = usb_hid_report_size(
     861            hid_dev->report, 0, USB_HID_REPORT_TYPE_INPUT);
    863862        usb_hid_report_path_free(path);
    864863       
     
    901900            kbd_dev->led_path, USB_HIDUT_PAGE_LED, 0);
    902901       
    903         kbd_dev->led_output_size = usb_hid_report_output_size(hid_dev->report,
    904             kbd_dev->led_path,
    905             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     902        kbd_dev->led_output_size = usb_hid_report_size(hid_dev->report, 0,
     903            USB_HID_REPORT_TYPE_OUTPUT);
    906904       
    907905        usb_log_debug("Output report size (in items): %zu\n",
  • uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c

    rba17f5b rbd2394b  
    300300        usb_hid_report_path_set_report_id(path, 1);
    301301       
    302         lgtch_dev->key_count = usb_hid_report_input_length(
    303             hid_dev->report, path,
    304             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     302        lgtch_dev->key_count = usb_hid_report_size(hid_dev->report, 1,
     303                USB_HID_REPORT_TYPE_INPUT);
     304       
    305305        usb_hid_report_path_free(path);
    306306       
  • uspace/drv/usbhid/usbhid.c

    rba17f5b rbd2394b  
    201201       
    202202        usb_log_debug("Compare flags: %d\n", mapping->compare);
    203         size_t size = usb_hid_report_input_length(hid_dev->report, usage_path,
    204             mapping->compare);
     203        size_t size = usb_hid_report_size(hid_dev->report, mapping->report_id,
     204            USB_HID_REPORT_TYPE_INPUT);
    205205        usb_log_debug("Size of the input report: %zuB\n", size);
    206206       
  • uspace/drv/usbkbd/kbddev.c

    rba17f5b rbd2394b  
    771771        usb_hid_report_path_set_report_id(path, 0);
    772772       
    773         kbd_dev->key_count = usb_hid_report_input_length(
    774             kbd_dev->parser, path, USB_HID_PATH_COMPARE_END);
     773        kbd_dev->key_count = usb_hid_report_size(
     774            kbd_dev->parser, 0, USB_HID_REPORT_TYPE_INPUT);
    775775        usb_hid_report_path_free (path);
    776776       
     
    803803        usb_hid_report_path_set_report_id(kbd_dev->led_path, 0x00);
    804804       
    805         kbd_dev->led_output_size = usb_hid_report_output_size(kbd_dev->parser,
    806             kbd_dev->led_path,
    807             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     805        kbd_dev->led_output_size = usb_hid_report_size(kbd_dev->parser, 0,
     806            USB_HID_REPORT_TYPE_OUTPUT);
    808807       
    809808        usb_log_debug("Output report size (in items): %zu\n",
Note: See TracChangeset for help on using the changeset viewer.