1 /*
2  * Xilinx DMA Engine drivers support header file
3  *
4  * Copyright (C) 2010-2014 Xilinx, Inc. All rights reserved.
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11 
12 #ifndef __DMA_XILINX_DMA_H
13 #define __DMA_XILINX_DMA_H
14 
15 #include <linux/dma-mapping.h>
16 #include <linux/dmaengine.h>
17 
18 /**
19  * struct xilinx_vdma_config - VDMA Configuration structure
20  * @frm_dly: Frame delay
21  * @gen_lock: Whether in gen-lock mode
22  * @master: Master that it syncs to
23  * @frm_cnt_en: Enable frame count enable
24  * @park: Whether wants to park
25  * @park_frm: Frame to park on
26  * @coalesc: Interrupt coalescing threshold
27  * @delay: Delay counter
28  * @reset: Reset Channel
29  * @ext_fsync: External Frame Sync source
30  * @vflip_en:  Vertical Flip enable
31  */
32 struct xilinx_vdma_config {
33 	int frm_dly;
34 	int gen_lock;
35 	int master;
36 	int frm_cnt_en;
37 	int park;
38 	int park_frm;
39 	int coalesc;
40 	int delay;
41 	int reset;
42 	int ext_fsync;
43 	bool vflip_en;
44 };
45 
46 int xilinx_vdma_channel_set_config(struct dma_chan *dchan,
47 					struct xilinx_vdma_config *cfg);
48 
49 #endif
50