xjtag/api_lib/xjtag.h

25 lines
1.3 KiB
C

// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the XJTAG_EXPORTS
// symbol defined on the command line. This symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// XJTAG_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef XJTAG_EXPORTS
#define XJTAG_API __declspec(dllexport)
#else
#define XJTAG_API __declspec(dllimport)
#endif
XJTAG_API int xbus_axi_open(unsigned long *hif,char num,char *sel,int *err);
XJTAG_API int xbus_axi_close(unsigned long hif);
XJTAG_API int xbus_init(unsigned long hif,unsigned long frqReq,unsigned int mode, unsigned char device_id,int *er);
XJTAG_API int xbus_get_ver(unsigned long hif,unsigned int *sw_ver,unsigned int *ip_ver,unsigned int *hw_ver);
XJTAG_API int xbus_axi_write(unsigned long hif, unsigned int addr,unsigned int wdat,unsigned int mask);
XJTAG_API int xbus_axi_read(unsigned long hif, unsigned int addr,unsigned int *rdat);
XJTAG_API int xbus_local_write(unsigned long hif, unsigned int addr,unsigned int wdat,unsigned int mask);
XJTAG_API int xbus_local_read(unsigned long hif, unsigned int addr,unsigned int *rdat);