|
@@ -0,0 +1,51 @@
|
|
|
|
+/*
|
|
|
|
+ * dma.h - Blackfin DMA defines/structures/etc...
|
|
|
|
+ *
|
|
|
|
+ * Copyright 2004-2008 Analog Devices Inc.
|
|
|
|
+ * Licensed under the GPL-2 or later.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#ifndef _BLACKFIN_DMA_H_
|
|
|
|
+#define _BLACKFIN_DMA_H_
|
|
|
|
+
|
|
|
|
+#include <linux/interrupt.h>
|
|
|
|
+#include <mach/dma.h>
|
|
|
|
+#include <linux/atomic.h>
|
|
|
|
+#include <asm/blackfin.h>
|
|
|
|
+#include <asm/page.h>
|
|
|
|
+#include <asm-generic/dma.h>
|
|
|
|
+#include <asm/bfin_dma.h>
|
|
|
|
+
|
|
|
|
+/*-------------------------
|
|
|
|
+ * config reg bits value
|
|
|
|
+ *-------------------------*/
|
|
|
|
+#define DATA_SIZE_8 0
|
|
|
|
+#define DATA_SIZE_16 1
|
|
|
|
+#define DATA_SIZE_32 2
|
|
|
|
+#ifdef CONFIG_BF60x
|
|
|
|
+#define DATA_SIZE_64 3
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define DMA_FLOW_STOP 0
|
|
|
|
+#define DMA_FLOW_AUTO 1
|
|
|
|
+#ifdef CONFIG_BF60x
|
|
|
|
+#define DMA_FLOW_LIST 4
|
|
|
|
+#define DMA_FLOW_ARRAY 5
|
|
|
|
+#define DMA_FLOW_LIST_DEMAND 6
|
|
|
|
+#define DMA_FLOW_ARRAY_DEMAND 7
|
|
|
|
+#else
|
|
|
|
+#define DMA_FLOW_ARRAY 4
|
|
|
|
+#define DMA_FLOW_SMALL 6
|
|
|
|
+#define DMA_FLOW_LARGE 7
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define DIMENSION_LINEAR 0
|
|
|
|
+#define DIMENSION_2D 1
|
|
|
|
+
|
|
|
|
+#define DIR_READ 0
|
|
|
|
+#define DIR_WRITE 1
|
|
|
|
+
|
|
|
|
+#define INTR_DISABLE 0
|
|
|
|
+#ifdef CONFIG_BF60x
|
|
|
|
+#define INTR_ON_PERI 1
|
|
|
|
+#endif
|