Changeset 816f5f4 in mainline for uspace/lib/usbdev/src/devpoll.c
- Timestamp:
- 2017-10-15T16:55:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b2f69e
- Parents:
- 2770b66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devpoll.c
r2770b66 r816f5f4 96 96 (int) mapping->interface->interface_subclass, 97 97 (int) mapping->interface->interface_protocol, 98 data->request_size, pipe-> max_packet_size);98 data->request_size, pipe->desc.max_packet_size); 99 99 } 100 100 … … 128 128 usb_request_clear_endpoint_halt( 129 129 usb_device_get_default_pipe(data->dev), 130 pipe-> endpoint_no);130 pipe->desc.endpoint_no); 131 131 } 132 132 … … 156 156 157 157 /* Take a rest before next request. */ 158 158 159 159 // FIXME TODO: This is broken, the time is in ms not us. 160 160 // but first we need to fix drivers to actually stop using this, … … 216 216 if (request_size == 0) 217 217 return EINVAL; 218 219 if (!epm || (epm->pipe. transfer_type != USB_TRANSFER_INTERRUPT) ||220 (epm->pipe.d irection != USB_DIRECTION_IN))218 219 if (!epm || (epm->pipe.desc.transfer_type != USB_TRANSFER_INTERRUPT) || 220 (epm->pipe.desc.direction != USB_DIRECTION_IN)) 221 221 return EINVAL; 222 222 223 223 224 224 polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Note:
See TracChangeset
for help on using the changeset viewer.