Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ste_dma40.h File Reference
#include <linux/dmaengine.h>
#include <linux/scatterlist.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  stedma40_half_channel_info
 
struct  stedma40_chan_cfg
 
struct  stedma40_platform_data
 

Macros

#define STEDMA40_MAX_SEG_SIZE   0xFFFF
 
#define STEDMA40_DEV_DST_MEMORY   (-1)
 
#define STEDMA40_DEV_SRC_MEMORY   (-1)
 
#define STEDMA40_ESIZE_8_BIT   0x0
 
#define STEDMA40_ESIZE_16_BIT   0x1
 
#define STEDMA40_ESIZE_32_BIT   0x2
 
#define STEDMA40_ESIZE_64_BIT   0x3
 
#define STEDMA40_PSIZE_PHY_1   0x4
 
#define STEDMA40_PSIZE_PHY_2   0x0
 
#define STEDMA40_PSIZE_PHY_4   0x1
 
#define STEDMA40_PSIZE_PHY_8   0x2
 
#define STEDMA40_PSIZE_PHY_16   0x3
 
#define STEDMA40_PSIZE_LOG_1   STEDMA40_PSIZE_PHY_2
 
#define STEDMA40_PSIZE_LOG_4   STEDMA40_PSIZE_PHY_4
 
#define STEDMA40_PSIZE_LOG_8   STEDMA40_PSIZE_PHY_8
 
#define STEDMA40_PSIZE_LOG_16   STEDMA40_PSIZE_PHY_16
 
#define STEDMA40_MAX_PHYS   32
 

Enumerations

enum  stedma40_mode { STEDMA40_MODE_LOGICAL = 0, STEDMA40_MODE_PHYSICAL, STEDMA40_MODE_OPERATION }
 
enum  stedma40_mode_opt {
  STEDMA40_PCHAN_BASIC_MODE = 0, STEDMA40_LCHAN_SRC_LOG_DST_LOG = 0, STEDMA40_PCHAN_MODULO_MODE, STEDMA40_PCHAN_DOUBLE_DST_MODE,
  STEDMA40_LCHAN_SRC_PHY_DST_LOG, STEDMA40_LCHAN_SRC_LOG_DST_PHY
}
 
enum  stedma40_flow_ctrl { STEDMA40_NO_FLOW_CTRL, STEDMA40_FLOW_CTRL }
 
enum  stedma40_periph_data_width { STEDMA40_BYTE_WIDTH = STEDMA40_ESIZE_8_BIT, STEDMA40_HALFWORD_WIDTH = STEDMA40_ESIZE_16_BIT, STEDMA40_WORD_WIDTH = STEDMA40_ESIZE_32_BIT, STEDMA40_DOUBLEWORD_WIDTH = STEDMA40_ESIZE_64_BIT }
 
enum  stedma40_xfer_dir { STEDMA40_MEM_TO_MEM = 1, STEDMA40_MEM_TO_PERIPH, STEDMA40_PERIPH_TO_MEM, STEDMA40_PERIPH_TO_PERIPH }
 

Macro Definition Documentation

#define STEDMA40_DEV_DST_MEMORY   (-1)

Definition at line 26 of file ste_dma40.h.

#define STEDMA40_DEV_SRC_MEMORY   (-1)

Definition at line 27 of file ste_dma40.h.

#define STEDMA40_ESIZE_16_BIT   0x1

Definition at line 45 of file ste_dma40.h.

#define STEDMA40_ESIZE_32_BIT   0x2

Definition at line 46 of file ste_dma40.h.

#define STEDMA40_ESIZE_64_BIT   0x3

Definition at line 47 of file ste_dma40.h.

#define STEDMA40_ESIZE_8_BIT   0x0

Definition at line 44 of file ste_dma40.h.

#define STEDMA40_MAX_PHYS   32

Definition at line 66 of file ste_dma40.h.

#define STEDMA40_MAX_SEG_SIZE   0xFFFF

Definition at line 23 of file ste_dma40.h.

#define STEDMA40_PSIZE_LOG_1   STEDMA40_PSIZE_PHY_2

Definition at line 60 of file ste_dma40.h.

#define STEDMA40_PSIZE_LOG_16   STEDMA40_PSIZE_PHY_16

Definition at line 63 of file ste_dma40.h.

#define STEDMA40_PSIZE_LOG_4   STEDMA40_PSIZE_PHY_4

Definition at line 61 of file ste_dma40.h.

#define STEDMA40_PSIZE_LOG_8   STEDMA40_PSIZE_PHY_8

Definition at line 62 of file ste_dma40.h.

#define STEDMA40_PSIZE_PHY_1   0x4

Definition at line 50 of file ste_dma40.h.

#define STEDMA40_PSIZE_PHY_16   0x3

Definition at line 54 of file ste_dma40.h.

#define STEDMA40_PSIZE_PHY_2   0x0

Definition at line 51 of file ste_dma40.h.

#define STEDMA40_PSIZE_PHY_4   0x1

Definition at line 52 of file ste_dma40.h.

#define STEDMA40_PSIZE_PHY_8   0x2

Definition at line 53 of file ste_dma40.h.

Enumeration Type Documentation

Enumerator:
STEDMA40_NO_FLOW_CTRL 
STEDMA40_FLOW_CTRL 

Definition at line 68 of file ste_dma40.h.

Enumerator:
STEDMA40_MODE_LOGICAL 
STEDMA40_MODE_PHYSICAL 
STEDMA40_MODE_OPERATION 

Definition at line 29 of file ste_dma40.h.

Enumerator:
STEDMA40_PCHAN_BASIC_MODE 
STEDMA40_LCHAN_SRC_LOG_DST_LOG 
STEDMA40_PCHAN_MODULO_MODE 
STEDMA40_PCHAN_DOUBLE_DST_MODE 
STEDMA40_LCHAN_SRC_PHY_DST_LOG 
STEDMA40_LCHAN_SRC_LOG_DST_PHY 

Definition at line 35 of file ste_dma40.h.

Enumerator:
STEDMA40_BYTE_WIDTH 
STEDMA40_HALFWORD_WIDTH 
STEDMA40_WORD_WIDTH 
STEDMA40_DOUBLEWORD_WIDTH 

Definition at line 73 of file ste_dma40.h.

Enumerator:
STEDMA40_MEM_TO_MEM 
STEDMA40_MEM_TO_PERIPH 
STEDMA40_PERIPH_TO_MEM 
STEDMA40_PERIPH_TO_PERIPH 

Definition at line 80 of file ste_dma40.h.