Changeset 361e61b in mainline for uspace/drv/uhci-hcd/batch.h


Ignore:
Timestamp:
2011-03-21T14:23:15Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55e388a1
Parents:
c32688d (diff), 48fe0c9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge with development

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/batch.h

    rc32688d r361e61b  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 /** @addtogroup usb
     28/** @addtogroup drvusbuhcihc
    2929 * @{
    3030 */
    3131/** @file
    32  * @brief UHCI driver
     32 * @brief UHCI driver USB transaction structure
    3333 */
    3434#ifndef DRV_UHCI_BATCH_H
     
    3939#include <usbhc_iface.h>
    4040#include <usb/usb.h>
     41#include <usb/host/device_keeper.h>
     42#include <usb/host/batch.h>
    4143
    42 #include "uhci_struct/transfer_descriptor.h"
    4344#include "uhci_struct/queue_head.h"
    44 #include "utils/device_keeper.h"
    4545
    46 typedef struct batch
    47 {
    48         link_t link;
    49         usb_speed_t speed;
    50         usb_target_t target;
    51         usb_transfer_type_t transfer_type;
    52         union {
    53                 usbhc_iface_transfer_in_callback_t callback_in;
    54                 usbhc_iface_transfer_out_callback_t callback_out;
    55         };
    56         void *arg;
    57         char *transport_buffer;
    58         char *setup_buffer;
    59         size_t setup_size;
    60         char *buffer;
    61         size_t buffer_size;
    62         size_t max_packet_size;
    63         size_t packets;
    64         size_t transfered_size;
    65         int error;
    66         ddf_fun_t *fun;
    67         queue_head_t *qh;
    68         td_t *tds;
    69         void (*next_step)(struct batch*);
    70         device_keeper_t *manager;
    71 } batch_t;
    72 
    73 batch_t * batch_get(ddf_fun_t *fun, usb_target_t target,
    74     usb_transfer_type_t transfer_type, size_t max_packet_size,
    75     usb_speed_t speed, char *buffer, size_t size,
    76                 char *setup_buffer, size_t setup_size,
     46batch_t * batch_get(
     47    ddf_fun_t *fun,
     48                usb_target_t target,
     49    usb_transfer_type_t transfer_type,
     50                size_t max_packet_size,
     51    usb_speed_t speed,
     52                char *buffer,
     53                size_t size,
     54                char *setup_buffer,
     55                size_t setup_size,
    7756    usbhc_iface_transfer_in_callback_t func_in,
    78     usbhc_iface_transfer_out_callback_t func_out, void *arg,
     57    usbhc_iface_transfer_out_callback_t func_out,
     58                void *arg,
    7959                device_keeper_t *manager
    8060                );
     61
     62void batch_dispose(batch_t *instance);
    8163
    8264bool batch_is_complete(batch_t *instance);
     
    9375
    9476void batch_bulk_out(batch_t *instance);
     77
     78qh_t * batch_qh(batch_t *instance);
    9579#endif
    9680/**
Note: See TracChangeset for help on using the changeset viewer.