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) 129 typedef void *BSP_VMEDmaListDescriptor;
157 BSP_VMEDmaSetup(
int channel, uint32_t bus_mode, uint32_t xfer_mode,
void *custom_setup);
164 BSP_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 192 BSP_VMEDmaStatus(
int channel);
203 typedef void (*BSP_VMEDmaIRQCallback)(
void *usr_arg);
206 BSP_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) 232 BSP_VMEDmaListDescriptor
233 BSP_VMEDmaListDescriptorSetup(
234 BSP_VMEDmaListDescriptor d,
247 BSP_VMEDmaListDescriptorDestroy(BSP_VMEDmaListDescriptor d);
251 BSP_VMEDmaListDestroy(BSP_VMEDmaListDescriptor anchor);
267 BSP_VMEDmaListDescriptorEnq(
268 BSP_VMEDmaListDescriptor tail,
269 BSP_VMEDmaListDescriptor d);
272 BSP_VMEDmaListDescriptor
273 BSP_VMEDmaListDescriptorNext(BSP_VMEDmaListDescriptor d);
275 BSP_VMEDmaListDescriptor
276 BSP_VMEDmaListDescriptorPrev(BSP_VMEDmaListDescriptor d);
280 BSP_VMEDmaListDescriptorSetUsr(BSP_VMEDmaListDescriptor d,
void *usrData);
283 BSP_VMEDmaListDescriptorGetUsr(BSP_VMEDmaListDescriptor d);
291 BSP_VMEDmaListRefresh(BSP_VMEDmaListDescriptor anchor);
298 BSP_VMEDmaListStart(
int channel, BSP_VMEDmaListDescriptor list);
302 BSP_VMEDmaListDump(BSP_VMEDmaListDescriptor
p);
unsigned p
Definition: tte.h:90