Initialization
[EDT DMA Library]


Defines

#define BITLOAD_FLAGS_CH1   0x8
 programs ocm channel 1 if BITLOAD_FLAGS_OCM is set
#define BITLOAD_FLAGS_MEZZANINE   0x4
 changes programming algorithm to program mezzanine boards.
#define BITLOAD_FLAGS_NOFS   0x1
 embedded for vxworks
#define BITLOAD_FLAGS_OCM   0x4
 DEPRECATED.
#define BITLOAD_FLAGS_OVR   0x2
 override gs/ss bitfile size constraint
#define BITLOAD_FLAGS_READBACK   0x20
#define BITLOAD_FLAGS_SLEEP   0x40
#define BITLOAD_FLAGS_SRXL   0x10
 DEPRECATED.

Functions

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


Define Documentation

#define BITLOAD_FLAGS_OCM   0x4

DEPRECATED.

Use BITLOAD_FLAGS_MEZZANINE.

Definition at line 66 of file edt_bitload.h.

#define BITLOAD_FLAGS_SRXL   0x10

DEPRECATED.

Use BITLOAD_FLAGS_MEZZANINE.

Definition at line 67 of file edt_bitload.h.


Function Documentation

int edt_bitload ( EdtDev edt_p,
const char *  basedir,
const char *  bitfilename,
int  flags,
int  skip 
)

Searches for and loads a Xilinx 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
bitfilename 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 369 of file edt_bitload.c.


Generated on Mon May 12 16:39:07 2008 by  doxygen 1.5.1