1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * timb_dma.h timberdale FPGA DMA driver defines
4 * Copyright (c) 2010 Intel Corporation
8 * Timberdale FPGA DMA engine
11 #ifndef _LINUX_TIMB_DMA_H
12 #define _LINUX_TIMB_DMA_H
15 * struct timb_dma_platform_data_channel - Description of each individual
16 * DMA channel for the timberdale DMA driver
17 * @rx: true if this channel handles data in the direction to
19 * @bytes_per_line: Number of bytes per line, this is specific for channels
20 * handling video data. For other channels this shall be left to 0.
21 * @descriptors: Number of descriptors to allocate for this channel.
22 * @descriptor_elements: Number of elements in each descriptor.
25 struct timb_dma_platform_data_channel {
27 unsigned int bytes_per_line;
28 unsigned int descriptors;
29 unsigned int descriptor_elements;
33 * struct timb_dma_platform_data - Platform data of the timberdale DMA driver
34 * @nr_channels: Number of defined channels in the channels array.
35 * @channels: Definition of the each channel.
38 struct timb_dma_platform_data {
40 struct timb_dma_platform_data_channel channels[32];