edt_bitload.h

Go to the documentation of this file.
00001 #ifndef _EDT_BITLOAD_H
00002 #define _EDT_BITLOAD_H
00003 
00004 #include "edtinc.h"
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00015 #ifdef DOXYGEN_SHOW_UNDOC
00016 
00020 #endif
00021 
00022 #define CLKSAFTER       32
00023 
00024 
00025 EDTAPI int edt_access_bitfile(char *tmppath, int perm);
00026 EDTAPI int edt_oc192_rev2_fname_hack(EdtDev *edt_p, const char *bitname, char *hacked_bitname); 
00027 EDTAPI int edt_program_mezzanine(EdtDev *edt_p, const u_char *buf, int size, int channel);
00028 
00033 EDTAPI int edt_bitload(EdtDev *edt_p, const char *basedir, const char *fname, int flags, int skip);
00034 EDTAPI int edt_bitload_from_prom(EdtDev *edt_p, u_char *addr1, int size1, u_char *addr2, int sized, int flags); /* end dma_init */
00036 
00037 EDTAPI int edt_bitload_loadit(EdtDev *edt_p, char *bitpath, int size, int skip, int flags, int alt, int alt_params, int which_try, int do_sleep);
00038 EDTAPI int edt_bitload_try_40xx_load(EdtDev *edt_p, char *basedir, char *devdir, char *fname, int skip, int flags);
00039 void EDTAPI edt_bitload_devid_to_bitdir(EdtDev *edt_p, char *devdir);
00040 EDTAPI int edt_get_x_header(FILE * xfile, char *header, int *size);
00041 EDTAPI u_char *edt_get_xa_header(u_char *ba, char *header, int *size);
00042 EDTAPI u_char *edt_get_xa_header_magic(u_char *ba, char *header, int *size, int *magic);
00043 
00044 EDTAPI int edt_load_oc192(EdtDev *edt_p, char *stream);
00045 /* not particularly safe -- use at own risk! */
00046 
00047 EDTAPI u_char mmap_intfc_read(volatile u_char * mapaddr, u_int desc);
00048 
00049 EDTAPI void mmap_intfc_write(volatile u_char * mapaddr, u_int desc, u_char val);
00050 
00056 /* flag bits to use in flags param to edt_bitload */
00057 #define BITLOAD_FLAGS_NOFS 0x1 
00058 #define BITLOAD_FLAGS_OVR  0x2 
00059 #define BITLOAD_FLAGS_CH1  0x8 
00061 #define BITLOAD_FLAGS_READBACK 0x20
00062 
00063 #define BITLOAD_FLAGS_SLEEP 0x40
00064 
00065 #define BITLOAD_FLAGS_MEZZANINE 0x4 
00066 #define BITLOAD_FLAGS_OCM  0x4 
00067 #define BITLOAD_FLAGS_SRXL 0x10  /* end dma_init */
00070 
00071 /* program method alternatives */
00072 #define ALT_INTERFACE   0 
00073 #define ALT_MEZZANINE   1
00074 
00075 
00076 #ifdef DOXYGEN_SHOW_UNDOC
00077  /* end weakgroup */
00078 #endif
00079 
00080 #ifdef __cplusplus
00081 } /* extern "C" */
00082 #endif 
00083 #endif /* _EDT_BITLOAD_H */

Generated on Mon May 12 16:38:52 2008 by  doxygen 1.5.1