Changeset 1110ebd in mainline
- 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
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/pipes.h
r9d4579e r1110ebd 80 80 } usb_endpoint_pipe_t; 81 81 82 /** Flag for default control pipe. */83 #define USB_ENDPOINT_DESCRIPTION_DEFAULT_CONTROL_PIPE 184 82 85 83 /** Description of endpoint characteristics. */ … … 93 91 /** Interface subclass this endpoint belongs to (-1 for any). */ 94 92 int interface_subclass; 95 /** Interface protocol this endpoint belo gs to (-1 for any). */93 /** Interface protocol this endpoint belongs to (-1 for any). */ 96 94 int interface_protocol; 97 95 /** Extra endpoint flags. */ -
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.