Changeset 1998bcd in mainline for uspace/lib/drv/include/usbhc_iface.h


Ignore:
Timestamp:
2011-04-08T22:25:00Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98064795
Parents:
297341b
Message:

Endpoint registration sends address as well

This is the first step towards using endpoint registration instead
of reservation of default address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/usbhc_iface.h

    r297341b r1998bcd  
    168168        /** Register endpoint attributes at host controller.
    169169         * This is used to reserve portion of USB bandwidth.
     170         * When speed is invalid, speed of the device is used.
    170171         * Parameters:
    171          * - USB address + endpoint number (ADDR * 256 + EP)
    172          * - transfer type + direction (TYPE * 256 + DIR)
    173          * - maximum packet size
    174          * - interval (in milliseconds)
     172         * - USB address + endpoint number
     173         *   - packed as ADDR << 16 + EP
     174         * - speed + transfer type + direction
     175         *   - packed as ( SPEED << 8 + TYPE ) << 8 + DIR
     176         * - maximum packet size + interval (in milliseconds)
     177         *   - packed as MPS << 16 + INT
    175178         * Answer:
    176179         * - EOK - reservation successful
     
    221224        int (*release_address)(ddf_fun_t *, usb_address_t);
    222225
    223         int (*register_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t,
     226        int (*register_endpoint)(ddf_fun_t *,
     227            usb_address_t, usb_speed_t, usb_endpoint_t,
    224228            usb_transfer_type_t, usb_direction_t, size_t, unsigned int);
    225229        int (*unregister_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t,
Note: See TracChangeset for help on using the changeset viewer.