Changeset 1110ebd in mainline for uspace/lib/usb/src/pipesinit.c
- Timestamp:
- 2011-02-03T11:16:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd50486
- Parents:
- 9d4579e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipesinit.c
r9d4579e r1110ebd 77 77 usb_endpoint_description_t *found) 78 78 { 79 /* Default control pipe is never mentioned in endpoint descriptors. */80 if (wanted->flags & USB_ENDPOINT_DESCRIPTION_DEFAULT_CONTROL_PIPE) {81 return false;82 }83 84 79 #define _SAME(fieldname) ((wanted->fieldname) == (found->fieldname)) 85 80 … … 251 246 * configuration 252 247 * - @c descriptor will point inside the configuration descriptor to endpoint 253 * corresponding to given description (or NULL for not found descriptor or 254 * for default control pipe) 248 * corresponding to given description (or NULL for not found descriptor) 255 249 * - @c interface will point inside the configuration descriptor to interface 256 250 * descriptor the endpoint @c descriptor belongs to (or NULL for not found … … 322 316 } while (interface != NULL); 323 317 324 /*325 * Find default control pipe and initialize it as well.326 */327 for (i = 0; i < mapping_count; i++) {328 if (mapping[i].description->flags329 & USB_ENDPOINT_DESCRIPTION_DEFAULT_CONTROL_PIPE) {330 int rc = usb_endpoint_pipe_initialize_default_control(331 mapping[i].pipe, connection);332 if (rc == EOK) {333 mapping[i].present = true;334 }335 }336 }337 338 318 return EOK; 339 319 }
Note:
See TracChangeset
for help on using the changeset viewer.