xilinx_dma.h 1022 B

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