2 * dma.h - Blackfin DMA defines/structures/etc...
4 * Copyright 2004-2008 Analog Devices Inc.
5 * Licensed under the GPL-2 or later.
8 #ifndef _BLACKFIN_DMA_H_
9 #define _BLACKFIN_DMA_H_
11 #include <linux/types.h>
13 #include <asm/mach-common/bits/dde.h>
15 #include <asm/mach-common/bits/dma.h>
26 } __attribute__((packed));
35 } __attribute__((packed));
39 void *next_desc_ptr; /* DMA Next Descriptor Pointer register */
40 u32 start_addr; /* DMA Start address register */
41 u32 config; /* DMA Configuration register */
43 u32 x_count; /* DMA x_count register */
44 s32 x_modify; /* DMA x_modify register */
45 u32 y_count; /* DMA y_count register */
46 s32 y_modify; /* DMA y_modify register */
49 void *curr_desc_ptr; /* DMA Curr Descriptor Pointer register */
50 void *prev_desc_ptr; /* DMA Prev Descriptor Pointer register */
51 void *curr_addr; /* DMA Current Address Pointer register */
52 u32 status; /* DMA irq status register */
53 u32 curr_x_count; /* DMA Current x-count register */
54 u32 curr_y_count; /* DMA Current y-count register */
57 u32 bw_limit; /* DMA Bandwidth Limit Count */
58 u32 curr_bw_limit; /* DMA curr Bandwidth Limit Count */
59 u32 bw_monitor; /* DMA Bandwidth Monitor Count */
60 u32 curr_bw_monitor; /* DMA curr Bandwidth Monitor Count */
62 void *next_desc_ptr; /* DMA Next Descriptor Pointer register */
63 u32 start_addr; /* DMA Start address register */
65 u16 config; /* DMA Configuration register */
66 u16 dummy1; /* DMA Configuration register */
70 u16 x_count; /* DMA x_count register */
73 s16 x_modify; /* DMA x_modify register */
76 u16 y_count; /* DMA y_count register */
79 s16 y_modify; /* DMA y_modify register */
82 void *curr_desc_ptr; /* DMA Current Descriptor Pointer register */
84 u32 curr_addr_ptr; /* DMA Current Address Pointer register */
86 u16 status; /* DMA irq status register */
89 u16 peripheral_map; /* DMA peripheral map register */
92 u16 curr_x_count; /* DMA Current x-count register */
97 u16 curr_y_count; /* DMA Current y-count register */