batch.c File Reference

UHCI driver USB transfer structure. More...

#include <errno.h>
#include <str_error.h>
#include <usb/usb.h>
#include <usb/debug.h>
#include "batch.h"
#include "transfer_list.h"
#include "hw_struct/transfer_descriptor.h"
#include "utils/malloc32.h"

Go to the source code of this file.

Data Structures

struct  uhci_transfer_batch
 UHCI specific data required for USB transfer. More...

Defines

#define DEFAULT_ERROR_COUNT   3

Typedefs

typedef uhci_transfer_batch uhci_transfer_batch_t
 UHCI specific data required for USB transfer.

Functions

void batch_bulk_in (usb_transfer_batch_t *instance)
 Prepare bulk in transfer.
void batch_bulk_out (usb_transfer_batch_t *instance)
 Prepare bulk out transfer.
static void batch_control (usb_transfer_batch_t *instance, usb_packet_id data_stage, usb_packet_id status_stage)
 Prepare generic control transfer.
void batch_control_read (usb_transfer_batch_t *instance)
 Prepares control read transfer.
void batch_control_write (usb_transfer_batch_t *instance)
 Prepares control write transfer.
static void batch_data (usb_transfer_batch_t *instance, usb_packet_id pid)
 Prepare generic data transfer.
usb_transfer_batch_tbatch_get (ddf_fun_t *fun, endpoint_t *ep, char *buffer, size_t buffer_size, const char *setup_buffer, size_t setup_size, usbhc_iface_transfer_in_callback_t func_in, usbhc_iface_transfer_out_callback_t func_out, void *arg)
 Allocate memory and initialize internal data structure.
void batch_interrupt_in (usb_transfer_batch_t *instance)
 Prepare interrupt in transfer.
void batch_interrupt_out (usb_transfer_batch_t *instance)
 Prepare interrupt out transfer.
bool batch_is_complete (usb_transfer_batch_t *instance)
 Check batch TDs for activity.
qh_tbatch_qh (usb_transfer_batch_t *instance)
 Provides access to QH data structure.
static void uhci_transfer_batch_dispose (void *uhci_batch)
 Safely destructs uhci_transfer_batch_t structure.


Detailed Description

UHCI driver USB transfer structure.

Definition in file batch.c.


Generated on Thu Jun 2 07:45:51 2011 for HelenOS/USB by  doxygen 1.4.7