mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 01:05:18 +07:00
ea2305f6a8
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 14 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190520170857.915677517@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1022 B
C
46 lines
1022 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Xilinx DMA Engine drivers support header file
|
|
*
|
|
* Copyright (C) 2010-2014 Xilinx, Inc. All rights reserved.
|
|
*/
|
|
|
|
#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
|
|
* @vflip_en: Vertical Flip enable
|
|
*/
|
|
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;
|
|
bool vflip_en;
|
|
};
|
|
|
|
int xilinx_vdma_channel_set_config(struct dma_chan *dchan,
|
|
struct xilinx_vdma_config *cfg);
|
|
|
|
#endif
|