diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 20:05:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 20:05:46 -0400 |
commit | 6f68fbaafbaa033205cd131d3e1f3c4b914e9b78 (patch) | |
tree | 56b434496064ed170f94381e3ec4c6c340b71376 /include/linux/timb_dma.h | |
parent | 6e4513972a5ad28517477d21f301a02ac7a0df76 (diff) | |
parent | 0b28330e39bbe0ffee4c56b09fc415fcec595ea3 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
DMAENGINE: extend the control command to include an arg
async_tx: trim dma_async_tx_descriptor in 'no channel switch' case
DMAENGINE: DMA40 fix for allocation of logical channel 0
DMAENGINE: DMA40 support paused channel status
dmaengine: mpc512x: Use resource_size
DMA ENGINE: Do not reset 'private' of channel
ioat: Remove duplicated devm_kzalloc() calls for ioatdma_device
ioat3: disable cacheline-unaligned transfers for raid operations
ioat2,3: convert to producer/consumer locking
ioat: convert to circ_buf
DMAENGINE: Support for ST-Ericssons DMA40 block v3
async_tx: use of kzalloc/kfree requires the include of slab.h
dmaengine: provide helper for setting txstate
DMAENGINE: generic channel status v2
DMAENGINE: generic slave control v2
dma: timb-dma: Update comment and fix compiler warning
dma: Add timb-dma
DMAENGINE: COH 901 318 fix bytesleft
DMAENGINE: COH 901 318 rename confusing vars
Diffstat (limited to 'include/linux/timb_dma.h')
-rw-r--r-- | include/linux/timb_dma.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/include/linux/timb_dma.h b/include/linux/timb_dma.h new file mode 100644 index 000000000000..bb043e970b96 --- /dev/null +++ b/include/linux/timb_dma.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /* | ||
2 | * timb_dma.h timberdale FPGA DMA driver defines | ||
3 | * Copyright (c) 2010 Intel Corporation | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
17 | */ | ||
18 | |||
19 | /* Supports: | ||
20 | * Timberdale FPGA DMA engine | ||
21 | */ | ||
22 | |||
23 | #ifndef _LINUX_TIMB_DMA_H | ||
24 | #define _LINUX_TIMB_DMA_H | ||
25 | |||
26 | /** | ||
27 | * struct timb_dma_platform_data_channel - Description of each individual | ||
28 | * DMA channel for the timberdale DMA driver | ||
29 | * @rx: true if this channel handles data in the direction to | ||
30 | * the CPU. | ||
31 | * @bytes_per_line: Number of bytes per line, this is specific for channels | ||
32 | * handling video data. For other channels this shall be left to 0. | ||
33 | * @descriptors: Number of descriptors to allocate for this channel. | ||
34 | * @descriptor_elements: Number of elements in each descriptor. | ||
35 | * | ||
36 | */ | ||
37 | struct timb_dma_platform_data_channel { | ||
38 | bool rx; | ||
39 | unsigned int bytes_per_line; | ||
40 | unsigned int descriptors; | ||
41 | unsigned int descriptor_elements; | ||
42 | }; | ||
43 | |||
44 | /** | ||
45 | * struct timb_dma_platform_data - Platform data of the timberdale DMA driver | ||
46 | * @nr_channels: Number of defined channels in the channels array. | ||
47 | * @channels: Definition of the each channel. | ||
48 | * | ||
49 | */ | ||
50 | struct timb_dma_platform_data { | ||
51 | unsigned nr_channels; | ||
52 | struct timb_dma_platform_data_channel channels[32]; | ||
53 | }; | ||
54 | |||
55 | #endif | ||