Changeset 9d4579e in mainline for uspace/lib/usb/src/pipesinit.c


Ignore:
Timestamp:
2011-02-03T10:46:09Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1110ebd
Parents:
93ef8f6
Message:

Interface also remembered on pipe initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/pipesinit.c

    r93ef8f6 r9d4579e  
    194194        ep_mapping->present = true;
    195195        ep_mapping->descriptor = endpoint;
     196        ep_mapping->interface = interface;
    196197
    197198        return EOK;
     
    242243 * - @c description must point to prepared endpoint description
    243244 * - @c descriptor does not need to be initialized (will be overwritten)
     245 * - @c interface does not need to be initialized (will be overwritten)
    244246 * - @c present does not need to be initialized (will be overwritten)
    245247 *
     
    251253 *   corresponding to given description (or NULL for not found descriptor or
    252254 *   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)
    253258 * - @c pipe will be initialized when found, otherwise left untouched
    254259 * - @c description will be untouched under all circumstances
     
    286291                mapping[i].present = false;
    287292                mapping[i].descriptor = NULL;
     293                mapping[i].interface = NULL;
    288294        }
    289295
Note: See TracChangeset for help on using the changeset viewer.