Changeset 77ad86c in mainline for uspace/lib/usbhost


Ignore:
Timestamp:
2012-06-01T19:00:32Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b713ff80
Parents:
4e5dabf
Message:

cstyle (no change in functionality)

Location:
uspace/lib/usbhost
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r4e5dabf r77ad86c  
    3333 *
    3434 */
     35
    3536#ifndef LIBUSBHOST_HOST_HCD_H
    3637#define LIBUSBHOST_HOST_HCD_H
     
    6162        void (*ep_remove_hook)(hcd_t *, endpoint_t *);
    6263};
    63 /*----------------------------------------------------------------------------*/
     64
    6465/** Initialize hcd_t structure.
    6566 * Initializes device and endpoint managers. Sets data and hook pointer to NULL.
     
    7980        hcd->ep_remove_hook = NULL;
    8081}
    81 /*----------------------------------------------------------------------------*/
     82
    8283/** Check registered endpoints and reset toggle bit if necessary.
    8384 * @param hcd hcd_t structure, non-null.
     
    9293            &hcd->ep_manager, target, (const uint8_t *)setup_data);
    9394}
    94 /*----------------------------------------------------------------------------*/
     95
    9596/** Data retrieve wrapper.
    9697 * @param fun ddf function, non-null.
     
    102103        return fun->driver_data;
    103104}
    104 /*----------------------------------------------------------------------------*/
     105
    105106extern usbhc_iface_t hcd_iface;
    106107
    107108#endif
     109
    108110/**
    109111 * @}
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r4e5dabf r77ad86c  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829/** @addtogroup libusbhost
    2930 * @{
     
    3233 * USB transfer transaction structures.
    3334 */
     35
    3436#ifndef LIBUSBHOST_HOST_USB_TRANSFER_BATCH_H
    3537#define LIBUSBHOST_HOST_USB_TRANSFER_BATCH_H
     
    115117void usb_transfer_batch_finish_error(const usb_transfer_batch_t *instance,
    116118    const void* data, size_t size, int error);
    117 /*----------------------------------------------------------------------------*/
     119
    118120/** Finish batch using stored error value and transferred size.
    119121 *
     
    128130            instance, data, instance->transfered_size, instance->error);
    129131}
    130 /*----------------------------------------------------------------------------*/
     132
    131133/** Determine batch direction based on the callbacks present
    132134 * @param[in] instance Batch structure to use, non-null.
     
    153155        assert(false);
    154156}
     157
    155158#endif
     159
    156160/**
    157161 * @}
  • uspace/lib/usbhost/src/iface.c

    r4e5dabf r77ad86c  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829/** @addtogroup libusbhost
    2930 * @{
     
    3233 * @brief HCD DDF interface implementation
    3334 */
     35
    3436#include <ddf/driver.h>
    3537#include <errno.h>
     
    98100        return ret;
    99101}
    100 /*----------------------------------------------------------------------------*/
     102
    101103/** Calls ep_add_hook upon endpoint registration.
    102104 * @param ep Endpoint to be registered.
     
    113115        return EOK;
    114116}
    115 /*----------------------------------------------------------------------------*/
     117
    116118/** Calls ep_remove_hook upon endpoint removal.
    117119 * @param ep Endpoint to be unregistered.
     
    126128                hcd->ep_remove_hook(hcd, ep);
    127129}
    128 /*----------------------------------------------------------------------------*/
     130
    129131/** Calls ep_remove_hook upon endpoint removal. Prints warning.
    130132 * @param ep Endpoint to be unregistered.
     
    141143                hcd->ep_remove_hook(hcd, ep);
    142144}
    143 /*----------------------------------------------------------------------------*/
     145
    144146/** Request address interface function.
    145147 *
     
    164166            &hcd->dev_manager, address, strict, speed);
    165167}
    166 /*----------------------------------------------------------------------------*/
     168
    167169/** Bind address interface function.
    168170 *
     
    183185            &hcd->dev_manager, address, handle);
    184186}
    185 /*----------------------------------------------------------------------------*/
     187
    186188/** Find device handle by address interface function.
    187189 *
     
    200202            &hcd->dev_manager, address, handle, NULL);
    201203}
    202 /*----------------------------------------------------------------------------*/
     204
    203205/** Release address interface function.
    204206 *
     
    218220        return EOK;
    219221}
    220 /*----------------------------------------------------------------------------*/
     222
    221223/** Register endpoint interface function.
    222224 * @param fun DDF function.
     
    254256            register_helper, hcd);
    255257}
    256 /*----------------------------------------------------------------------------*/
     258
    257259/** Unregister endpoint interface function.
    258260 * @param fun DDF function.
     
    274276            endpoint, direction, unregister_helper, hcd);
    275277}
    276 /*----------------------------------------------------------------------------*/
     278
    277279/** Inbound communication interface function.
    278280 * @param fun DDF function.
     
    292294            setup_data, callback, NULL, arg, "READ");
    293295}
    294 /*----------------------------------------------------------------------------*/
     296
    295297/** Outbound communication interface function.
    296298 * @param fun DDF function.
     
    310312            setup_data, NULL, callback, arg, "WRITE");
    311313}
    312 /*----------------------------------------------------------------------------*/
     314
    313315/** usbhc Interface implementation using hcd_t from libusbhost library. */
    314316usbhc_iface_t hcd_iface = {
     
    324326        .write = usb_write,
    325327};
     328
    326329/**
    327330 * @}
Note: See TracChangeset for help on using the changeset viewer.