mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Lars-Peter Clausen](/assets/img/avatar_default.png)
The enum xdma_ip_type is only used inside the Xilinx DMA driver and not exported to any consumers (nor should it be). So move it from the global header to driver file itself. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/*
|
|
* Xilinx DMA Engine drivers support header file
|
|
*
|
|
* Copyright (C) 2010-2014 Xilinx, Inc. All rights reserved.
|
|
*
|
|
* This is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __DMA_XILINX_DMA_H
|
|
#define __DMA_XILINX_DMA_H
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/dmaengine.h>
|
|
|
|
/**
|
|
* struct xilinx_vdma_config - VDMA Configuration structure
|
|
* @frm_dly: Frame delay
|
|
* @gen_lock: Whether in gen-lock mode
|
|
* @master: Master that it syncs to
|
|
* @frm_cnt_en: Enable frame count enable
|
|
* @park: Whether wants to park
|
|
* @park_frm: Frame to park on
|
|
* @coalesc: Interrupt coalescing threshold
|
|
* @delay: Delay counter
|
|
* @reset: Reset Channel
|
|
* @ext_fsync: External Frame Sync source
|
|
*/
|
|
struct xilinx_vdma_config {
|
|
int frm_dly;
|
|
int gen_lock;
|
|
int master;
|
|
int frm_cnt_en;
|
|
int park;
|
|
int park_frm;
|
|
int coalesc;
|
|
int delay;
|
|
int reset;
|
|
int ext_fsync;
|
|
};
|
|
|
|
int xilinx_vdma_channel_set_config(struct dma_chan *dchan,
|
|
struct xilinx_vdma_config *cfg);
|
|
|
|
#endif
|