RTEMS  5.0.0
Macros | Typedefs | Functions

Public interface of DMA routines. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define BSP_VMEDMA_OPT_THROUGHPUT   1
 
#define BSP_VMEDMA_OPT_LOWLATENCY   2
 
#define BSP_VMEDMA_OPT_SHAREDBUS   3
 
#define BSP_VMEDMA_OPT_DEFAULT   4
 
#define BSP_VMEDMA_OPT_CUSTOM   5
 
#define BSP_VMEDMA_MODE_NOINC_VME   (1<<20)
 
#define BSP_VMEDMA_MODE_NOINC_PCI   (1<<21)
 
#define BSP_VMEDMA_MODE_PCI2VME   (1<<31)
 
#define BSP_VMEDMA_STATUS_OK   0
 
#define BSP_VMEDMA_STATUS_UNSUP   (-1)
 
#define BSP_VMEDMA_STATUS_BERR_VME   1
 
#define BSP_VMEDMA_STATUS_BERR_PCI   2
 
#define BSP_VMEDMA_STATUS_BUSY   3
 
#define BSP_VMEDMA_STATUS_PERR   4
 
#define BSP_VMEDMA_STATUS_OERR   5
 
#define BSP_VMEDMA_MSK_ATTR   (1<<0)
 
#define BSP_VMEDMA_MSK_PCIA   (1<<1)
 
#define BSP_VMEDMA_MSK_VMEA   (1<<2)
 
#define BSP_VMEDMA_MSK_BCNT   (1<<3)
 
#define BSP_VMEDMA_MSK_ALL   (0xf)
 

Typedefs

typedef void * BSP_VMEDmaListDescriptor
 
typedef void(* BSP_VMEDmaIRQCallback) (void *usr_arg)
 

Functions

int BSP_VMEDmaSetup (int channel, uint32_t bus_mode, uint32_t xfer_mode, void *custom_setup)
 
int BSP_VMEDmaStart (int channel, uint32_t pci_addr, uint32_t vme_addr, uint32_t n_bytes)
 
uint32_t BSP_VMEDmaStatus (int channel)
 
int BSP_VMEDmaInstallISR (int channel, BSP_VMEDmaIRQCallback cb, void *usr_arg)
 
BSP_VMEDmaListDescriptor BSP_VMEDmaListDescriptorSetup (BSP_VMEDmaListDescriptor d, uint32_t attr_mask, uint32_t xfer_mode, uint32_t pci_addr, uint32_t vme_addr, uint32_t n_bytes)
 
int BSP_VMEDmaListDescriptorDestroy (BSP_VMEDmaListDescriptor d)
 
int BSP_VMEDmaListDestroy (BSP_VMEDmaListDescriptor anchor)
 
int BSP_VMEDmaListDescriptorEnq (BSP_VMEDmaListDescriptor tail, BSP_VMEDmaListDescriptor d)
 
BSP_VMEDmaListDescriptor BSP_VMEDmaListDescriptorNext (BSP_VMEDmaListDescriptor d)
 
BSP_VMEDmaListDescriptor BSP_VMEDmaListDescriptorPrev (BSP_VMEDmaListDescriptor d)
 
void BSP_VMEDmaListDescriptorSetUsr (BSP_VMEDmaListDescriptor d, void *usrData)
 
void * BSP_VMEDmaListDescriptorGetUsr (BSP_VMEDmaListDescriptor d)
 
int BSP_VMEDmaListRefresh (BSP_VMEDmaListDescriptor anchor)
 
int BSP_VMEDmaListStart (int channel, BSP_VMEDmaListDescriptor list)
 

Detailed Description

Public interface of DMA routines.