Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/batch.h

    r1387692 r41b96b4  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 /** @addtogroup drvusbohci
     28/** @addtogroup drvusbuhcihc
    2929 * @{
    3030 */
    3131/** @file
    32  * @brief OHCI driver USB transaction structure
     32 * @brief UHCI driver USB transaction structure
    3333 */
    34 #ifndef DRV_OHCI_BATCH_H
    35 #define DRV_OHCI_BATCH_H
     34#ifndef DRV_UHCI_BATCH_H
     35#define DRV_UHCI_BATCH_H
    3636
     37#include <adt/list.h>
    3738
    3839#include <usbhc_iface.h>
    3940#include <usb/usb.h>
    40 #include <usb/host/device_keeper.h>
    41 #include <usb/host/batch.h>
    4241
    43 usb_transfer_batch_t * batch_get(
     42typedef struct batch
     43{
     44        link_t link;
     45        usb_speed_t speed;
     46        usb_target_t target;
     47        usb_transfer_type_t transfer_type;
     48        usbhc_iface_transfer_in_callback_t callback_in;
     49        usbhc_iface_transfer_out_callback_t callback_out;
     50        void *arg;
     51        char *transport_buffer;
     52        char *setup_buffer;
     53        size_t setup_size;
     54        char *buffer;
     55        size_t buffer_size;
     56        size_t max_packet_size;
     57        size_t packets;
     58        size_t transfered_size;
     59        int error;
     60        ddf_fun_t *fun;
     61        void (*next_step)(struct batch*);
     62} batch_t;
     63
     64batch_t * batch_get(
    4465    ddf_fun_t *fun,
    4566                usb_target_t target,
     
    5374    usbhc_iface_transfer_in_callback_t func_in,
    5475    usbhc_iface_transfer_out_callback_t func_out,
    55                 void *arg,
    56                 usb_device_keeper_t *manager
     76                void *arg
    5777                );
    5878
    59 void batch_dispose(usb_transfer_batch_t *instance);
     79void batch_dispose(batch_t *instance);
    6080
    61 void batch_control_write(usb_transfer_batch_t *instance);
     81void batch_finish(batch_t *instance, int error);
    6282
    63 void batch_control_read(usb_transfer_batch_t *instance);
     83bool batch_is_complete(batch_t *instance);
    6484
    65 void batch_interrupt_in(usb_transfer_batch_t *instance);
     85void batch_control_write(batch_t *instance);
    6686
    67 void batch_interrupt_out(usb_transfer_batch_t *instance);
     87void batch_control_read(batch_t *instance);
    6888
    69 void batch_bulk_in(usb_transfer_batch_t *instance);
     89void batch_interrupt_in(batch_t *instance);
    7090
    71 void batch_bulk_out(usb_transfer_batch_t *instance);
     91void batch_interrupt_out(batch_t *instance);
     92
     93void batch_bulk_in(batch_t *instance);
     94
     95void batch_bulk_out(batch_t *instance);
    7296#endif
    7397/**
Note: See TracChangeset for help on using the changeset viewer.