Changeset 6bec59b in mainline for uspace/drv/ohci/batch.h


Ignore:
Timestamp:
2011-04-08T13:58:45Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f98b8269
Parents:
6acc80f3
Message:

Port endpoint framework usage from UHCI

File:
1 edited

Legend:

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

    r6acc80f3 r6bec59b  
    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
    36 
     34#ifndef DRV_UHCI_BATCH_H
     35#define DRV_UHCI_BATCH_H
    3736
    3837#include <usbhc_iface.h>
    3938#include <usb/usb.h>
    4039#include <usb/host/device_keeper.h>
     40#include <usb/host/endpoint.h>
    4141#include <usb/host/batch.h>
    4242
     43
    4344usb_transfer_batch_t * batch_get(
    44     ddf_fun_t *fun,
    45                 usb_target_t target,
    46     usb_transfer_type_t transfer_type,
    47                 size_t max_packet_size,
    48     usb_speed_t speed,
    49                 char *buffer,
    50                 size_t size,
    51                 char *setup_buffer,
    52                 size_t setup_size,
     45    ddf_fun_t *fun, endpoint_t *ep, char *buffer, size_t size,
     46    char *setup_buffer, size_t setup_size,
    5347    usbhc_iface_transfer_in_callback_t func_in,
    5448    usbhc_iface_transfer_out_callback_t func_out,
    55                 void *arg,
    56                 usb_device_keeper_t *manager
    57                 );
     49    void *arg);
    5850
    5951void batch_dispose(usb_transfer_batch_t *instance);
     52
     53bool batch_is_complete(usb_transfer_batch_t *instance);
    6054
    6155void batch_control_write(usb_transfer_batch_t *instance);
     
    7064
    7165void batch_bulk_out(usb_transfer_batch_t *instance);
     66
    7267#endif
    7368/**
Note: See TracChangeset for help on using the changeset viewer.