EDT PDV SDK Documentation 6.1.0
Edt_Dev.h File Reference

(git 005ca90, 2023-11-13)

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"
Include dependency graph for Edt_Dev.h:
This graph shows which files directly or indirectly include this file:

Functions

u_int edt_and (Edt_Dev *edt_p, u_int reg, u_int val)
 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)
 

Detailed Description

Definition of CEdt.

Author
EDT tech@.nosp@m.edt..nosp@m.com

Function Documentation

◆ edt_and()

u_int edt_and ( Edt_Dev *  edt_p,
u_int  type,
u_int  val 
)

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().

Parameters
edt_pPointer to edt device structure returned by edt_open() or edt_open_channel()
directionEither EDT_READ or EDT_WRITE (not both)

◆ edt_wakeup_dma()

int edt_wakeup_dma ( Edt_Dev *  edt_p)

called by edt_DpcForIsr

◆ edt_allocate_sglist()

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

◆ edt_dma_chan_info()

int edt_dma_chan_info ( Edt_Dev *  edt_p,
edt_dma_info_t dma_p 
)

Count stats for all channels on a device:

◆ edt_initialize_vars()

int edt_initialize_vars ( Edt_Dev *  edt_p)

Initialize board variables Assume that DmaChannel and Devid are set coming in

◆ edt_get_active_channels()

int edt_get_active_channels ( Edt_Dev *  edt_p)

Go through all channels counting which ones are active

◆ edt_default_rbufs_from_type()

int edt_default_rbufs_from_type ( int  id)

Initial value for number of rbufs