Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sirf-dma.c File Reference
#include <linux/module.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/sirfsoc_dma.h>
#include "dmaengine.h"

Go to the source code of this file.

Data Structures

struct  sirfsoc_dma_desc
 
struct  sirfsoc_dma_chan
 
struct  sirfsoc_dma
 

Macros

#define SIRFSOC_DMA_DESCRIPTORS   16
 
#define SIRFSOC_DMA_CHANNELS   16
 
#define SIRFSOC_DMA_CH_ADDR   0x00
 
#define SIRFSOC_DMA_CH_XLEN   0x04
 
#define SIRFSOC_DMA_CH_YLEN   0x08
 
#define SIRFSOC_DMA_CH_CTRL   0x0C
 
#define SIRFSOC_DMA_WIDTH_0   0x100
 
#define SIRFSOC_DMA_CH_VALID   0x140
 
#define SIRFSOC_DMA_CH_INT   0x144
 
#define SIRFSOC_DMA_INT_EN   0x148
 
#define SIRFSOC_DMA_CH_LOOP_CTRL   0x150
 
#define SIRFSOC_DMA_MODE_CTRL_BIT   4
 
#define SIRFSOC_DMA_DIR_CTRL_BIT   5
 
#define SIRFSOC_DMA_WORD_LEN   4
 
#define DRV_NAME   "sirfsoc_dma"
 

Functions

bool sirfsoc_dma_filter_id (struct dma_chan *chan, void *chan_id)
 
 EXPORT_SYMBOL (sirfsoc_dma_filter_id)
 
 module_platform_driver (sirfsoc_dma_driver)
 
 MODULE_AUTHOR ("Rongjun Ying <[email protected]>, ""Barry Song <[email protected]>")
 
 MODULE_DESCRIPTION ("SIRFSOC DMA control driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define DRV_NAME   "sirfsoc_dma"

Definition at line 81 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_ADDR   0x00

Definition at line 26 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_CTRL   0x0C

Definition at line 29 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_INT   0x144

Definition at line 33 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_LOOP_CTRL   0x150

Definition at line 35 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_VALID   0x140

Definition at line 32 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_XLEN   0x04

Definition at line 27 of file sirf-dma.c.

#define SIRFSOC_DMA_CH_YLEN   0x08

Definition at line 28 of file sirf-dma.c.

#define SIRFSOC_DMA_CHANNELS   16

Definition at line 24 of file sirf-dma.c.

#define SIRFSOC_DMA_DESCRIPTORS   16

Definition at line 23 of file sirf-dma.c.

#define SIRFSOC_DMA_DIR_CTRL_BIT   5

Definition at line 38 of file sirf-dma.c.

#define SIRFSOC_DMA_INT_EN   0x148

Definition at line 34 of file sirf-dma.c.

#define SIRFSOC_DMA_MODE_CTRL_BIT   4

Definition at line 37 of file sirf-dma.c.

#define SIRFSOC_DMA_WIDTH_0   0x100

Definition at line 31 of file sirf-dma.c.

#define SIRFSOC_DMA_WORD_LEN   4

Definition at line 41 of file sirf-dma.c.

Function Documentation

EXPORT_SYMBOL ( sirfsoc_dma_filter_id  )
MODULE_AUTHOR ( "Rongjun Ying <[email protected] ,
""Barry Song< baohua.song @csr.com >"   
)
MODULE_DESCRIPTION ( "SIRFSOC DMA control driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( sirfsoc_dma_driver  )
bool sirfsoc_dma_filter_id ( struct dma_chan chan,
void chan_id 
)

Definition at line 541 of file sirf-dma.c.