transfer_descriptor.h File Reference

OHCI driver. More...

#include <bool.h>
#include <stdint.h>
#include "../utils/malloc32.h"
#include "completion_codes.h"

Go to the source code of this file.

Data Structures

struct  td

Defines

#define OHCI_TD_MAX_TRANSFER   (4 * 1024)
#define TD_NEXT_PTR_MASK   (0xfffffff0)
#define TD_NEXT_PTR_SHIFT   (0)
#define TD_STATUS_CC_MASK   (0xf)
#define TD_STATUS_CC_SHIFT   (28)
#define TD_STATUS_DI_MASK   (0x7)
#define TD_STATUS_DI_NO_INTERRUPT   (0x7)
#define TD_STATUS_DI_SHIFT   (21)
#define TD_STATUS_DP_IN   (0x2)
#define TD_STATUS_DP_MASK   (0x3)
#define TD_STATUS_DP_OUT   (0x1)
#define TD_STATUS_DP_SETUP   (0x0)
#define TD_STATUS_DP_SHIFT   (19)
#define TD_STATUS_EC_MASK   (0x3)
#define TD_STATUS_EC_SHIFT   (26)
#define TD_STATUS_ROUND_FLAG   (1 << 18)
#define TD_STATUS_T_0   (0x2)
#define TD_STATUS_T_1   (0x3)
#define TD_STATUS_T_ED   (0)
#define TD_STATUS_T_MASK   (0x3)
#define TD_STATUS_T_SHIFT   (24)

Functions

static int td_error (td_t *instance)
void td_init (td_t *instance, usb_direction_t dir, void *buffer, size_t size, int toggle)
static bool td_is_finished (td_t *instance)
static size_t td_remain_size (td_t *instance)
static void td_set_next (td_t *instance, td_t *next)


Detailed Description

OHCI driver.

Definition in file transfer_descriptor.h.


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