88#define BSP_VMEDMA_OPT_THROUGHPUT 1
93#define BSP_VMEDMA_OPT_LOWLATENCY 2
99#define BSP_VMEDMA_OPT_SHAREDBUS 3
104#define BSP_VMEDMA_OPT_DEFAULT 4
110#define BSP_VMEDMA_OPT_CUSTOM 5
122#define BSP_VMEDMA_MODE_NOINC_VME (1<<20)
124#define BSP_VMEDMA_MODE_NOINC_PCI (1<<21)
127#define BSP_VMEDMA_MODE_PCI2VME (1<<31)
129typedef void *BSP_VMEDmaListDescriptor;
157BSP_VMEDmaSetup(
int channel, uint32_t bus_mode, uint32_t xfer_mode,
void *custom_setup);
164BSP_VMEDmaStart(
int channel, uint32_t pci_addr, uint32_t vme_addr, uint32_t n_bytes);
167#define BSP_VMEDMA_STATUS_OK 0
169#define BSP_VMEDMA_STATUS_UNSUP (-1)
171#define BSP_VMEDMA_STATUS_BERR_VME 1
173#define BSP_VMEDMA_STATUS_BERR_PCI 2
175#define BSP_VMEDMA_STATUS_BUSY 3
177#define BSP_VMEDMA_STATUS_PERR 4
179#define BSP_VMEDMA_STATUS_OERR 5
192BSP_VMEDmaStatus(
int channel);
203typedef void (*BSP_VMEDmaIRQCallback)(
void *usr_arg);
206BSP_VMEDmaInstallISR(
int channel, BSP_VMEDmaIRQCallback cb,
void *usr_arg);
227#define BSP_VMEDMA_MSK_ATTR (1<<0)
228#define BSP_VMEDMA_MSK_PCIA (1<<1)
229#define BSP_VMEDMA_MSK_VMEA (1<<2)
230#define BSP_VMEDMA_MSK_BCNT (1<<3)
231#define BSP_VMEDMA_MSK_ALL (0xf)
232BSP_VMEDmaListDescriptor
233BSP_VMEDmaListDescriptorSetup(
234 BSP_VMEDmaListDescriptor d,
247BSP_VMEDmaListDescriptorDestroy(BSP_VMEDmaListDescriptor d);
251BSP_VMEDmaListDestroy(BSP_VMEDmaListDescriptor anchor);
267BSP_VMEDmaListDescriptorEnq(
268 BSP_VMEDmaListDescriptor tail,
269 BSP_VMEDmaListDescriptor d);
272BSP_VMEDmaListDescriptor
273BSP_VMEDmaListDescriptorNext(BSP_VMEDmaListDescriptor d);
275BSP_VMEDmaListDescriptor
276BSP_VMEDmaListDescriptorPrev(BSP_VMEDmaListDescriptor d);
280BSP_VMEDmaListDescriptorSetUsr(BSP_VMEDmaListDescriptor d,
void *usrData);
283BSP_VMEDmaListDescriptorGetUsr(BSP_VMEDmaListDescriptor d);
291BSP_VMEDmaListRefresh(BSP_VMEDmaListDescriptor anchor);
298BSP_VMEDmaListStart(
int channel, BSP_VMEDmaListDescriptor list);
302BSP_VMEDmaListDump(BSP_VMEDmaListDescriptor
p);
unsigned p
Definition: tte.h:17