Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/iface.c

    r77ad86c rcbd568b  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    2928/** @addtogroup libusbhost
    3029 * @{
     
    3332 * @brief HCD DDF interface implementation
    3433 */
    35 
    3634#include <ddf/driver.h>
    3735#include <errno.h>
     
    10098        return ret;
    10199}
    102 
     100/*----------------------------------------------------------------------------*/
    103101/** Calls ep_add_hook upon endpoint registration.
    104102 * @param ep Endpoint to be registered.
     
    115113        return EOK;
    116114}
    117 
     115/*----------------------------------------------------------------------------*/
    118116/** Calls ep_remove_hook upon endpoint removal.
    119117 * @param ep Endpoint to be unregistered.
     
    128126                hcd->ep_remove_hook(hcd, ep);
    129127}
    130 
     128/*----------------------------------------------------------------------------*/
    131129/** Calls ep_remove_hook upon endpoint removal. Prints warning.
    132130 * @param ep Endpoint to be unregistered.
     
    143141                hcd->ep_remove_hook(hcd, ep);
    144142}
    145 
     143/*----------------------------------------------------------------------------*/
    146144/** Request address interface function.
    147145 *
     
    166164            &hcd->dev_manager, address, strict, speed);
    167165}
    168 
     166/*----------------------------------------------------------------------------*/
    169167/** Bind address interface function.
    170168 *
     
    185183            &hcd->dev_manager, address, handle);
    186184}
    187 
     185/*----------------------------------------------------------------------------*/
    188186/** Find device handle by address interface function.
    189187 *
     
    202200            &hcd->dev_manager, address, handle, NULL);
    203201}
    204 
     202/*----------------------------------------------------------------------------*/
    205203/** Release address interface function.
    206204 *
     
    220218        return EOK;
    221219}
    222 
     220/*----------------------------------------------------------------------------*/
    223221/** Register endpoint interface function.
    224222 * @param fun DDF function.
     
    256254            register_helper, hcd);
    257255}
    258 
     256/*----------------------------------------------------------------------------*/
    259257/** Unregister endpoint interface function.
    260258 * @param fun DDF function.
     
    276274            endpoint, direction, unregister_helper, hcd);
    277275}
    278 
     276/*----------------------------------------------------------------------------*/
    279277/** Inbound communication interface function.
    280278 * @param fun DDF function.
     
    294292            setup_data, callback, NULL, arg, "READ");
    295293}
    296 
     294/*----------------------------------------------------------------------------*/
    297295/** Outbound communication interface function.
    298296 * @param fun DDF function.
     
    312310            setup_data, NULL, callback, arg, "WRITE");
    313311}
    314 
     312/*----------------------------------------------------------------------------*/
    315313/** usbhc Interface implementation using hcd_t from libusbhost library. */
    316314usbhc_iface_t hcd_iface = {
     
    326324        .write = usb_write,
    327325};
    328 
    329326/**
    330327 * @}
Note: See TracChangeset for help on using the changeset viewer.