00001 #ifndef _UNI_DMA_LIB_H
00002 #define _UNI_DMA_LIB_H
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 #include <vxWorks.h>
00009
00010 #define UNI_DMA_PCI_TO_VME 0x80000000
00011 #define UNI_DMA_VME_TO_PCI 0x00000000
00012 #define UNI_DMA_MBLT 0x00C00000
00013 #define UNI_DMA_BLT 0x00800000
00014
00015
00016 extern int uniDmaInit(void) ;
00017 extern int uniDmaInitMaster(void) ;
00018 extern int uniDmaGo(UINT32 *pci, UINT32 *vme, UINT32 bytes, UINT32 cntrl) ;
00019 extern int uniDmaStart(UINT32 *pci, UINT32 *vme, UINT32 bytes, UINT32 cntrl) ;
00020 extern int uniDmaWait(void) ;
00021 extern int uniDma64 ;
00022
00023 #ifdef __cplusplus
00024 }
00025 #endif
00026 #endif