Changeset a8ac368 in mainline for uspace/drv/usbkbd/kbddev.c
- Timestamp:
- 2011-03-29T20:08:53Z (13 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/kbddev.c
r0d92638 ra8ac368 602 602 // int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size, 603 603 // 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 604 607 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); 606 611 607 612 if (rc != EOK) { … … 704 709 705 710 /* 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) { 707 712 usb_log_warning("Required endpoint not found - probably not " 708 713 "a supported device.\n"); … … 747 752 * TODO: make more general 748 753 */ 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); 751 756 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); 753 759 754 760 usb_log_debug("Size of the input report: %zu\n", kbd_dev->key_count);
Note:
See TracChangeset
for help on using the changeset viewer.