git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-arm
/
arch-imx
/
dma.h
diff --git
a/include/asm-arm/arch-imx/dma.h
b/include/asm-arm/arch-imx/dma.h
index
621ff2c
..
b45fa36
100644
(file)
--- a/
include/asm-arm/arch-imx/dma.h
+++ b/
include/asm-arm/arch-imx/dma.h
@@
-17,16
+17,27
@@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H
+/*
+ * DMA registration
+ */
+
typedef enum {
DMA_PRIO_HIGH = 0,
typedef enum {
DMA_PRIO_HIGH = 0,
- DMA_PRIO_MEDIUM =
1
,
- DMA_PRIO_LOW =
2
+ DMA_PRIO_MEDIUM =
3
,
+ DMA_PRIO_LOW =
6
} imx_dma_prio;
} imx_dma_prio;
+int imx_request_dma(char *name, imx_dma_prio prio,
+ void (*irq_handler) (int, void *, struct pt_regs *),
+ void (*err_handler) (int, void *, struct pt_regs *),
+ void *data);
+
+void imx_free_dma(int dma_ch);
+
+
#define DMA_REQ_UART3_T 2
#define DMA_REQ_UART3_R 3
#define DMA_REQ_SSI2_T 4
#define DMA_REQ_UART3_T 2
#define DMA_REQ_UART3_R 3
#define DMA_REQ_SSI2_T 4