Changeset 9d4579e in mainline
- Timestamp:
- 2011-02-03T10:46:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1110ebd
- Parents:
- 93ef8f6
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/pipes.h
r93ef8f6 r9d4579e 107 107 /** Found descriptor fitting the description. */ 108 108 usb_standard_endpoint_descriptor_t *descriptor; 109 /** Interface the endpoint belongs to. */ 110 usb_standard_interface_descriptor_t *interface; 109 111 /** Whether the endpoint was actually found. */ 110 112 bool present; -
uspace/lib/usb/src/pipesinit.c
r93ef8f6 r9d4579e 194 194 ep_mapping->present = true; 195 195 ep_mapping->descriptor = endpoint; 196 ep_mapping->interface = interface; 196 197 197 198 return EOK; … … 242 243 * - @c description must point to prepared endpoint description 243 244 * - @c descriptor does not need to be initialized (will be overwritten) 245 * - @c interface does not need to be initialized (will be overwritten) 244 246 * - @c present does not need to be initialized (will be overwritten) 245 247 * … … 251 253 * corresponding to given description (or NULL for not found descriptor or 252 254 * for default control pipe) 255 * - @c interface will point inside the configuration descriptor to interface 256 * descriptor the endpoint @c descriptor belongs to (or NULL for not found 257 * descriptor) 253 258 * - @c pipe will be initialized when found, otherwise left untouched 254 259 * - @c description will be untouched under all circumstances … … 286 291 mapping[i].present = false; 287 292 mapping[i].descriptor = NULL; 293 mapping[i].interface = NULL; 288 294 } 289 295
Note:
See TracChangeset
for help on using the changeset viewer.