Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
dma.h File Reference
#include <arch/hwregs/dma_defs.h>

Go to the source code of this file.

Data Structures

struct  dma_descr_group
 
struct  dma_descr_context
 
struct  dma_descr_data
 

Macros

#define DMA_ENABLE(inst)
 
#define DMA_RESET(inst)
 
#define DMA_STOP(inst)
 
#define DMA_CONTINUE(inst)
 
#define DMA_WR_CMD(inst, cmd_par)
 
#define DMA_START_GROUP(inst, group_descr)
 
#define DMA_START_CONTEXT(inst, ctx_descr)
 
#define DMA_CONTINUE_DATA(inst)
 

Typedefs

typedef struct dma_descr_group dma_descr_group
 
typedef struct dma_descr_context dma_descr_context
 
typedef struct dma_descr_data dma_descr_data
 

Macro Definition Documentation

#define DMA_CONTINUE (   inst)
Value:
do { reg_dma_rw_cfg c = REG_RD( dma, inst, rw_cfg );\
c.stop = regk_dma_no; \
REG_WR( dma, inst, rw_cfg, c); } while( 0 )

Definition at line 93 of file dma.h.

#define DMA_CONTINUE_DATA (   inst)
Value:
do { reg_dma_rw_cmd c = {0}; \
c.cont_data = regk_dma_yes;\
REG_WR( dma, inst, rw_cmd, c ); } while( 0 )

Definition at line 122 of file dma.h.

#define DMA_ENABLE (   inst)
Value:
do { reg_dma_rw_cfg e = REG_RD( dma, inst, rw_cfg );\
e.en = regk_dma_yes; \
REG_WR( dma, inst, rw_cfg, e); } while( 0 )

Definition at line 75 of file dma.h.

#define DMA_RESET (   inst)
Value:
do { reg_dma_rw_cfg r = REG_RD( dma, inst, rw_cfg );\
r.en = regk_dma_no; \
REG_WR( dma, inst, rw_cfg, r); } while( 0 )

Definition at line 81 of file dma.h.

#define DMA_START_CONTEXT (   inst,
  ctx_descr 
)
Value:
do { REG_WR_INT( dma, inst, rw_group_down, (int) ctx_descr ); \
DMA_WR_CMD( inst, regk_dma_load_c ); \
DMA_WR_CMD( inst, regk_dma_load_d | regk_dma_burst ); \
} while( 0 )

Definition at line 115 of file dma.h.

#define DMA_START_GROUP (   inst,
  group_descr 
)
Value:
do { REG_WR_INT( dma, inst, rw_group, (int) group_descr ); \
DMA_WR_CMD( inst, regk_dma_load_g ); \
DMA_WR_CMD( inst, regk_dma_load_c ); \
DMA_WR_CMD( inst, regk_dma_load_d | regk_dma_burst ); \
} while( 0 )

Definition at line 107 of file dma.h.

#define DMA_STOP (   inst)
Value:
do { reg_dma_rw_cfg s = REG_RD( dma, inst, rw_cfg );\
s.stop = regk_dma_yes; \
REG_WR( dma, inst, rw_cfg, s); } while( 0 )

Definition at line 87 of file dma.h.

#define DMA_WR_CMD (   inst,
  cmd_par 
)
Value:
do { reg_dma_rw_stream_cmd __x = {0}; \
do { __x = REG_RD(dma, inst, rw_stream_cmd); } while (__x.busy); \
__x.cmd = (cmd_par); \
REG_WR(dma, inst, rw_stream_cmd, __x); \
} while (0)

Definition at line 99 of file dma.h.

Typedef Documentation