EDT PCD SDK Documentation 6.1.0
|
Definition of CEdt. More...
#include "edt_mem_mapping.h"
#include "edtdrv.h"
#include "edt_trace.h"
#include "edt_ioctl.h"
#include "edt_shared_types.h"
Functions | |
void | edtdrv_set_direction (Edt_Dev *edt_p, int direction) |
On PCD cards, sets DMA direction to read or write. More... | |
int | edt_wakeup_dma (Edt_Dev *edt_p) |
int | edt_allocate_sglist (Edt_Dev *edt_p, u_int iolength, int bufnum) |
int | edt_dma_chan_info (Edt_Dev *edt_p, edt_dma_info_t *dma_info) |
int | edt_initialize_vars (Edt_Dev *edt_p) |
int | edt_get_active_channels (Edt_Dev *edt_p) |
int | edt_default_rbufs_from_type (int id) |
Definition of CEdt.
void edtdrv_set_direction | ( | Edt_Dev * | edt_p, |
int | direction | ||
) |
On PCD cards, sets DMA direction to read or write.
Most users will not need to use this function, but instead can just set the direction when calling edt_configure_ring_buffers().
edt_p | Pointer to edt device structure returned by edt_open() or edt_open_channel() |
direction | Either EDT_READ or EDT_WRITE (not both) |
int edt_wakeup_dma | ( | Edt_Dev * | edt_p | ) |
called by edt_DpcForIsr
int edt_allocate_sglist | ( | Edt_Dev * | edt_p, |
u_int | iolength, | ||
int | bufnum | ||
) |
Allocate rbuf sg elements Assumes os.map already set up, so rbuf just needs pointers or copies of os.map
int edt_dma_chan_info | ( | Edt_Dev * | edt_p, |
edt_dma_info_t * | dma_p | ||
) |
Count stats for all channels on a device:
int edt_initialize_vars | ( | Edt_Dev * | edt_p | ) |
Initialize board variables Assume that DmaChannel and Devid are set coming in
int edt_get_active_channels | ( | Edt_Dev * | edt_p | ) |
Go through all channels counting which ones are active
int edt_default_rbufs_from_type | ( | int | id | ) |
Initial value for number of rbufs