Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
dma.h File Reference

Go to the source code of this file.

Macros

#define MAX_DMA_CHANNELS   10
 
#define NETWORK_ETH0_TX_DMA_NBR   0 /* Ethernet 0 out. */
 
#define NETWORK_ETH0   RX_DMA_NBR 1 /* Ethernet 0 in. */
 
#define IO_PROC_DMA0_TX_DMA_NBR   2 /* IO processor DMA0 out. */
 
#define IO_PROC_DMA0_RX_DMA_NBR   3 /* IO processor DMA0 in. */
 
#define ATA_TX_DMA_NBR   2 /* ATA interface out. */
 
#define ATA_RX_DMA_NBR   3 /* ATA interface in. */
 
#define ASYNC_SER2_TX_DMA_NBR   2 /* Asynchronous serial port 2 out. */
 
#define ASYNC_SER2_RX_DMA_NBR   3 /* Asynchronous serial port 2 in. */
 
#define IO_PROC_DMA1_TX_DMA_NBR   4 /* IO processor DMA1 out. */
 
#define IO_PROC_DMA1_RX_DMA_NBR   5 /* IO processor DMA1 in. */
 
#define ASYNC_SER1_TX_DMA_NBR   4 /* Asynchronous serial port 1 out. */
 
#define ASYNC_SER1_RX_DMA_NBR   5 /* Asynchronous serial port 1 in. */
 
#define SYNC_SER0_TX_DMA_NBR   4 /* Synchronous serial port 0 out. */
 
#define SYNC_SER0_RX_DMA_NBR   5 /* Synchronous serial port 0 in. */
 
#define EXTDMA0_TX_DMA_NBR   6 /* External DMA 0 out. */
 
#define EXTDMA1_RX_DMA_NBR   7 /* External DMA 1 in. */
 
#define ASYNC_SER0_TX_DMA_NBR   6 /* Asynchronous serial port 0 out. */
 
#define ASYNC_SER0_RX_DMA_NBR   7 /* Asynchronous serial port 0 in. */
 
#define SYNC_SER1_TX_DMA_NBR   6 /* Synchronous serial port 1 out. */
 
#define SYNC_SER1_RX_DMA_NBR   7 /* Synchronous serial port 1 in. */
 
#define NETWORK_ETH1_TX_DMA_NBR   6 /* Ethernet 1 out. */
 
#define NETWORK_ETH1_RX_DMA_NBR   7 /* Ethernet 1 in. */
 
#define EXTDMA2_TX_DMA_NBR   8 /* External DMA 2 out. */
 
#define EXTDMA3_RX_DMA_NBR   9 /* External DMA 3 in. */
 
#define STRCOP_TX_DMA_NBR   8 /* Stream co-processor out. */
 
#define STRCOP_RX_DMA_NBR   9 /* Stream co-processor in. */
 
#define ASYNC_SER3_TX_DMA_NBR   8 /* Asynchronous serial port 3 out. */
 
#define ASYNC_SER3_RX_DMA_NBR   9 /* Asynchronous serial port 3 in. */
 
#define DMA_VERBOSE_ON_ERROR   1
 
#define DMA_PANIC_ON_ERROR   (2|DMA_VERBOSE_ON_ERROR)
 
#define DMA_INT_MEM   4
 

Enumerations

enum  dma_owner {
  dma_eth, dma_ser0, dma_ser1, dma_ser2,
  dma_ser3, dma_ata, dma_par0, dma_par1,
  dma_ext0, dma_ext1, dma_int6, dma_int7,
  dma_usb, dma_scsi0, dma_scsi1, dma_eth,
  dma_ser0, dma_ser1, dma_ser2, dma_ser3,
  dma_ser4, dma_iop, dma_sser, dma_strp,
  dma_h264, dma_jpeg, dma_eth0, dma_eth1,
  dma_iop0, dma_iop1, dma_ser0, dma_ser1,
  dma_ser2, dma_ser3, dma_sser0, dma_sser1,
  dma_ata, dma_strp, dma_ext0, dma_ext1,
  dma_ext2, dma_ext3
}
 

Functions

int crisv32_request_dma (unsigned int dmanr, const char *device_id, unsigned options, unsigned bandwidth, enum dma_owner owner)
 
void crisv32_free_dma (unsigned int dmanr)
 

Macro Definition Documentation

#define ASYNC_SER0_RX_DMA_NBR   7 /* Asynchronous serial port 0 in. */

Definition at line 33 of file dma.h.

#define ASYNC_SER0_TX_DMA_NBR   6 /* Asynchronous serial port 0 out. */

Definition at line 32 of file dma.h.

#define ASYNC_SER1_RX_DMA_NBR   5 /* Asynchronous serial port 1 in. */

Definition at line 24 of file dma.h.

#define ASYNC_SER1_TX_DMA_NBR   4 /* Asynchronous serial port 1 out. */

Definition at line 23 of file dma.h.

#define ASYNC_SER2_RX_DMA_NBR   3 /* Asynchronous serial port 2 in. */

Definition at line 18 of file dma.h.

#define ASYNC_SER2_TX_DMA_NBR   2 /* Asynchronous serial port 2 out. */

Definition at line 17 of file dma.h.

#define ASYNC_SER3_RX_DMA_NBR   9 /* Asynchronous serial port 3 in. */

Definition at line 48 of file dma.h.

#define ASYNC_SER3_TX_DMA_NBR   8 /* Asynchronous serial port 3 out. */

Definition at line 47 of file dma.h.

#define ATA_RX_DMA_NBR   3 /* ATA interface in. */

Definition at line 15 of file dma.h.

#define ATA_TX_DMA_NBR   2 /* ATA interface out. */

Definition at line 14 of file dma.h.

#define DMA_INT_MEM   4

Definition at line 77 of file dma.h.

#define DMA_PANIC_ON_ERROR   (2|DMA_VERBOSE_ON_ERROR)

Definition at line 76 of file dma.h.

#define DMA_VERBOSE_ON_ERROR   1

Definition at line 75 of file dma.h.

#define EXTDMA0_TX_DMA_NBR   6 /* External DMA 0 out. */

Definition at line 29 of file dma.h.

#define EXTDMA1_RX_DMA_NBR   7 /* External DMA 1 in. */

Definition at line 30 of file dma.h.

#define EXTDMA2_TX_DMA_NBR   8 /* External DMA 2 out. */

Definition at line 41 of file dma.h.

#define EXTDMA3_RX_DMA_NBR   9 /* External DMA 3 in. */

Definition at line 42 of file dma.h.

#define IO_PROC_DMA0_RX_DMA_NBR   3 /* IO processor DMA0 in. */

Definition at line 12 of file dma.h.

#define IO_PROC_DMA0_TX_DMA_NBR   2 /* IO processor DMA0 out. */

Definition at line 11 of file dma.h.

#define IO_PROC_DMA1_RX_DMA_NBR   5 /* IO processor DMA1 in. */

Definition at line 21 of file dma.h.

#define IO_PROC_DMA1_TX_DMA_NBR   4 /* IO processor DMA1 out. */

Definition at line 20 of file dma.h.

#define MAX_DMA_CHANNELS   10

Definition at line 6 of file dma.h.

#define NETWORK_ETH0   RX_DMA_NBR 1 /* Ethernet 0 in. */

Definition at line 9 of file dma.h.

#define NETWORK_ETH0_TX_DMA_NBR   0 /* Ethernet 0 out. */

Definition at line 8 of file dma.h.

#define NETWORK_ETH1_RX_DMA_NBR   7 /* Ethernet 1 in. */

Definition at line 39 of file dma.h.

#define NETWORK_ETH1_TX_DMA_NBR   6 /* Ethernet 1 out. */

Definition at line 38 of file dma.h.

#define STRCOP_RX_DMA_NBR   9 /* Stream co-processor in. */

Definition at line 45 of file dma.h.

#define STRCOP_TX_DMA_NBR   8 /* Stream co-processor out. */

Definition at line 44 of file dma.h.

#define SYNC_SER0_RX_DMA_NBR   5 /* Synchronous serial port 0 in. */

Definition at line 27 of file dma.h.

#define SYNC_SER0_TX_DMA_NBR   4 /* Synchronous serial port 0 out. */

Definition at line 26 of file dma.h.

#define SYNC_SER1_RX_DMA_NBR   7 /* Synchronous serial port 1 in. */

Definition at line 36 of file dma.h.

#define SYNC_SER1_TX_DMA_NBR   6 /* Synchronous serial port 1 out. */

Definition at line 35 of file dma.h.

Enumeration Type Documentation

enum dma_owner
Enumerator:
dma_eth 
dma_ser0 
dma_ser1 
dma_ser2 
dma_ser3 
dma_ata 
dma_par0 
dma_par1 
dma_ext0 
dma_ext1 
dma_int6 
dma_int7 
dma_usb 
dma_scsi0 
dma_scsi1 
dma_eth 
dma_ser0 
dma_ser1 
dma_ser2 
dma_ser3 
dma_ser4 
dma_iop 
dma_sser 
dma_strp 
dma_h264 
dma_jpeg 
dma_eth0 
dma_eth1 
dma_iop0 
dma_iop1 
dma_ser0 
dma_ser1 
dma_ser2 
dma_ser3 
dma_sser0 
dma_sser1 
dma_ata 
dma_strp 
dma_ext0 
dma_ext1 
dma_ext2 
dma_ext3 

Definition at line 50 of file dma.h.

Function Documentation

void crisv32_free_dma ( unsigned int  dmanr)

Definition at line 179 of file dma.c.

int crisv32_request_dma ( unsigned int  dmanr,
const char device_id,
unsigned  options,
unsigned  bandwidth,
enum dma_owner  owner 
)