Changeset b7fd2a0 in mainline for uspace/lib/usbdev/src/pipesinit.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipesinit.c
r36f0738 rb7fd2a0 152 152 * @return Error code. 153 153 */ 154 static int process_endpoint(154 static errno_t process_endpoint( 155 155 usb_endpoint_mapping_t *mapping, size_t mapping_count, 156 156 usb_standard_interface_descriptor_t *interface, … … 194 194 } 195 195 196 int rc = usb_pipe_initialize(&ep_mapping->pipe,196 errno_t rc = usb_pipe_initialize(&ep_mapping->pipe, 197 197 ep_no, description.transfer_type, 198 198 ED_MPS_PACKET_SIZE_GET( … … 221 221 * @return Error code. 222 222 */ 223 static int process_interface(223 static errno_t process_interface( 224 224 usb_endpoint_mapping_t *mapping, size_t mapping_count, 225 225 const usb_dp_parser_t *parser, const usb_dp_parser_data_t *parser_data, … … 281 281 * @return Error code. 282 282 */ 283 int usb_pipe_initialize_from_configuration(283 errno_t usb_pipe_initialize_from_configuration( 284 284 usb_endpoint_mapping_t *mapping, size_t mapping_count, 285 285 const uint8_t *config_descriptor, size_t config_descriptor_size, … … 338 338 * @return Error code. 339 339 */ 340 int usb_pipe_probe_default_control(usb_pipe_t *pipe)340 errno_t usb_pipe_probe_default_control(usb_pipe_t *pipe) 341 341 { 342 342 assert(pipe); … … 351 351 uint8_t dev_descr_start[CTRL_PIPE_MIN_PACKET_SIZE]; 352 352 size_t transferred_size; 353 int rc;353 errno_t rc; 354 354 for (size_t attempt_var = 0; attempt_var < 3; ++attempt_var) { 355 355 rc = usb_request_get_descriptor(pipe, USB_REQUEST_TYPE_STANDARD,
Note:
See TracChangeset
for help on using the changeset viewer.