1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Xilinx DMA Engine drivers support header file
5 * Copyright (C) 2010-2014 Xilinx, Inc. All rights reserved.
8 #ifndef __DMA_XILINX_DMA_H
9 #define __DMA_XILINX_DMA_H
11 #include <linux/dma-mapping.h>
12 #include <linux/dmaengine.h>
15 * struct xilinx_vdma_config - VDMA Configuration structure
16 * @frm_dly: Frame delay
17 * @gen_lock: Whether in gen-lock mode
18 * @master: Master that it syncs to
19 * @frm_cnt_en: Enable frame count enable
20 * @park: Whether wants to park
21 * @park_frm: Frame to park on
22 * @coalesc: Interrupt coalescing threshold
23 * @delay: Delay counter
24 * @reset: Reset Channel
25 * @ext_fsync: External Frame Sync source
26 * @vflip_en: Vertical Flip enable
28 struct xilinx_vdma_config
{
42 int xilinx_vdma_channel_set_config(struct dma_chan
*dchan
,
43 struct xilinx_vdma_config
*cfg
);