Ignore:
File:
1 edited

Legend:

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

    rc92c13f rc15070c  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 /** @addtogroup libusb
     28/** @addtogroup drvusbuhcihc
    2929 * @{
    3030 */
    3131/** @file
    32  * USB transfer transaction structures.
     32 * @brief UHCI driver USB transaction structure
    3333 */
    3434#ifndef LIBUSB_HOST_BATCH_H
     
    4040#include <usb/usb.h>
    4141
    42 typedef struct usb_transfer_batch usb_transfer_batch_t;
    43 struct usb_transfer_batch {
     42typedef struct batch
     43{
    4444        link_t link;
    4545        usb_target_t target;
     
    5656        size_t max_packet_size;
    5757        size_t transfered_size;
    58         void (*next_step)(usb_transfer_batch_t *);
     58        void (*next_step)(struct batch*);
    5959        int error;
    6060        ddf_fun_t *fun;
    6161        void *arg;
    6262        void *private_data;
    63 };
     63} batch_t;
    6464
    65 void usb_transfer_batch_init(
    66     usb_transfer_batch_t *instance,
     65void batch_init(
     66    batch_t *instance,
    6767    usb_target_t target,
    6868    usb_transfer_type_t transfer_type,
     
    8181);
    8282
    83 static inline usb_transfer_batch_t *usb_transfer_batch_from_link(link_t *l)
     83static inline batch_t *batch_from_link(link_t *link_ptr)
    8484{
    85         assert(l);
    86         return list_get_instance(l, usb_transfer_batch_t, link);
     85        assert(link_ptr);
     86        return list_get_instance(link_ptr, batch_t, link);
    8787}
    8888
    89 void usb_transfer_batch_call_in(usb_transfer_batch_t *instance);
    90 void usb_transfer_batch_call_out(usb_transfer_batch_t *instance);
    91 void usb_transfer_batch_finish(usb_transfer_batch_t *instance, int error);
    92 
     89void batch_call_in(batch_t *instance);
     90void batch_call_out(batch_t *instance);
     91void batch_finish(batch_t *instance, int error);
    9392#endif
    9493/**
Note: See TracChangeset for help on using the changeset viewer.