/*
* DMA DRIVER TEST
*/
----------------------------------------------------------driver test-----------------------------------------------------------
----------------------------------------------------------driver---------------------------------------------------------------
#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/dmaengine.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <asm/arch/map.h>
#include <asm/io.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <asm/arch/regs-gpio.h>
#include <asm/irq.h>
#define DMA_CHANNEL0 0
#define DMA_CHANNEL1 1
#define DMA_CHANNEL2 2
#define DMA_CHANNEL3 3
#define DMA_CHANNEL0_ADDR 0x4B000000
#define DMA_CHANNEL1_ADDR 0x4B000040
#define DMA_CHANNEL2_ADDR 0x4B000080
#define DMA_CHANNEL3_ADDR 0x4B0000C0
//static void __iomem *p = NULL;
#define SRCONAHB (0<<1)
#define SRCONAPB (1<<1)
#define ADDRINC (0<<0)
#define ADDRFIX (1<<0)
#define DMASTOP (1<<2)
#define DMAON (1<<1)
#define DMAOFF (0<<1)
#define DMASW_TRIG (1<<0)
struct dma_regs {
unsigned long disrc; //dma init src
unsigned long disrcc; //dma init src ctrl
unsigned long didst; //dma