diff options
| author | Kedareswara rao Appana <appana.durga.rao@xilinx.com> | 2015-03-02 12:54:24 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-17 06:53:21 -0400 |
| commit | 937abe88aea3161cd3a563e577fc9cf4522c7aad (patch) | |
| tree | b42c292808f3c05772d390ec2107b99c26cbf15d /include/linux/dma | |
| parent | 3b62286d0ef785815994e2558e8cfb686597b0cd (diff) | |
dmaengine: xilinx-dma: move header file to common location
This patch moves the xilinx_dma.h header file
to the include/linux/dma.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/dma')
| -rw-r--r-- | include/linux/dma/xilinx_dma.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/dma/xilinx_dma.h b/include/linux/dma/xilinx_dma.h new file mode 100644 index 000000000000..34b98f276ed0 --- /dev/null +++ b/include/linux/dma/xilinx_dma.h | |||
| @@ -0,0 +1,47 @@ | |||
| 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 | */ | ||
| 31 | struct xilinx_vdma_config { | ||
| 32 | int frm_dly; | ||
| 33 | int gen_lock; | ||
| 34 | int master; | ||
| 35 | int frm_cnt_en; | ||
| 36 | int park; | ||
| 37 | int park_frm; | ||
| 38 | int coalesc; | ||
| 39 | int delay; | ||
| 40 | int reset; | ||
| 41 | int ext_fsync; | ||
| 42 | }; | ||
| 43 | |||
| 44 | int xilinx_vdma_channel_set_config(struct dma_chan *dchan, | ||
| 45 | struct xilinx_vdma_config *cfg); | ||
| 46 | |||
| 47 | #endif | ||
