endpoint_descriptor.h File Reference

OHCI driver. More...

#include <assert.h>
#include <stdint.h>
#include <usb/host/endpoint.h>
#include "../utils/malloc32.h"
#include "transfer_descriptor.h"
#include "completion_codes.h"

Go to the source code of this file.

Data Structures

struct  ed

Defines

#define ED_NEXT_PTR_MASK   (0xfffffff0)
#define ED_NEXT_PTR_SHIFT   (0)
#define ED_STATUS_D_IN   (0x2)
#define ED_STATUS_D_MASK   (0x3)
#define ED_STATUS_D_OUT   (0x1)
#define ED_STATUS_D_SHIFT   (11)
#define ED_STATUS_D_TRANSFER   (0x3)
#define ED_STATUS_EN_MASK   (0xf)
#define ED_STATUS_EN_SHIFT   (7)
#define ED_STATUS_F_FLAG   (1 << 15)
#define ED_STATUS_FA_MASK   (0x7f)
#define ED_STATUS_FA_SHIFT   (0)
#define ED_STATUS_K_FLAG   (1 << 14)
#define ED_STATUS_MPS_MASK   (0x3ff)
#define ED_STATUS_MPS_SHIFT   (16)
#define ED_STATUS_S_FLAG   (1 << 13)
#define ED_TDHEAD_HALTED_FLAG   (0x1)
#define ED_TDHEAD_PTR_MASK   (0xfffffff0)
#define ED_TDHEAD_PTR_SHIFT   (0)
#define ED_TDHEAD_TOGGLE_CARRY   (0x2)
#define ED_TDHEAD_ZERO_MASK   (0x3)
#define ED_TDHEAD_ZERO_SHIFT   (2)
#define ED_TDTAIL_PTR_MASK   (0xfffffff0)
#define ED_TDTAIL_PTR_SHIFT   (0)

Functions

static void ed_append_ed (ed_t *instance, ed_t *next)
void ed_init (ed_t *instance, endpoint_t *ep)
static void ed_set_end_td (ed_t *instance, td_t *td)
static void ed_set_td (ed_t *instance, td_t *td)
static int ed_toggle_get (ed_t *instance)
static void ed_toggle_set (ed_t *instance, int toggle)


Detailed Description

OHCI driver.

Definition in file endpoint_descriptor.h.


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