Changeset a9cdca0 in mainline
- Timestamp:
- 2011-05-26T11:53:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da56be2
- Parents:
- c0940a85
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.c
rc0940a85 ra9cdca0 361 361 362 362 uint8_t report_id = 0; 363 size_t size = usb_hid_report_ size(hid_dev->report, report_id,363 size_t size = usb_hid_report_byte_size(hid_dev->report, report_id, 364 364 USB_HID_REPORT_TYPE_INPUT); 365 365 366 366 size_t max_size = 0; 367 367 368 while (size > 0){368 do { 369 369 max_size = (size > max_size) ? size : max_size; 370 size = usb_hid_report_ size(hid_dev->report, report_id,370 size = usb_hid_report_byte_size(hid_dev->report, report_id, 371 371 USB_HID_REPORT_TYPE_INPUT); 372 ++report_id; 373 } 372 report_id = usb_hid_get_next_report_id(hid_dev->report, 373 report_id, USB_HID_REPORT_TYPE_INPUT); 374 } while (report_id != 0); 374 375 375 376 usb_log_debug("Max size of input report: %zu\n", max_size); … … 549 550 // int allocated = (hid_dev->input_report != NULL); 550 551 assert(hid_dev->input_report != NULL); 552 usb_log_debug("Max input report size: %zu, buffer size: %zu\n", 553 hid_dev->max_input_report_size, buffer_size); 551 554 assert(hid_dev->max_input_report_size >= buffer_size); 552 555 -
uspace/lib/drv/generic/driver.c
rc0940a85 ra9cdca0 346 346 sysarg_t method = IPC_GET_IMETHOD(call); 347 347 int iface_idx; 348 349 printf("driver_connection_gen(): method: %d\n", method);350 348 351 349 switch (method) { … … 397 395 * handling ("remote interface"). 398 396 */ 399 printf("iface_idx: %d\n", iface_idx);400 397 remote_iface_t *rem_iface = get_remote_iface(iface_idx); 401 398 assert(rem_iface != NULL);
Note:
See TracChangeset
for help on using the changeset viewer.