Initialization
[EDT DMA Library]


Functions

int edt_bitload (EdtDev *edt_p, const char *basedir, const char *fname, int flags, int skip)
 Searches for and loads a gate array bit file into an EDT PCI board.
int edt_bitload_from_prom (EdtDev *edt_p, u_int addr1, int size1, u_int addr2, int sized, int flags)
 Bitload from a given address in the PCI PROM.


Function Documentation

int edt_bitload ( EdtDev edt_p,
const char *  indir,
const char *  name,
int  flags,
int  skip 
)

Searches for and loads a gate array bit file into an EDT PCI board.

Searches under <basedir>/bitfiles/xxx, or if a PCI DV, in the appropriate sub-directory (<basedir>/bitfiles/dv/.../<file>.bit or <basedir>/bitfiles/dvk/.../<file>.bit. '...' stands for all the subdirs found under the base path.) Quits after the first successful load.

Parameters:
edt_p device handle returned from edt_open
basedir base directory to start looking for the file
name name of the bitfile to load
flags misc flag bits -- should be combination of BITLOAD_FLAGS_* which are defined in edt_bitload.h. (This variable was formerly rcam which is obsolete.)
skip if nonzero, don't actually load, just find the files (debugging)
Returns:
0 on success, -1 on failure

Definition at line 1461 of file edt_bitload.c.


Generated on 19 Jun 2015 by  doxygen 1.4.7