mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 00:15:26 +07:00
82c298100a
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 675 mass ave cambridge ma 02139 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 44 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170025.980374610@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* timb_dma.h timberdale FPGA DMA driver defines
|
|
* Copyright (c) 2010 Intel Corporation
|
|
*/
|
|
|
|
/* Supports:
|
|
* Timberdale FPGA DMA engine
|
|
*/
|
|
|
|
#ifndef _LINUX_TIMB_DMA_H
|
|
#define _LINUX_TIMB_DMA_H
|
|
|
|
/**
|
|
* struct timb_dma_platform_data_channel - Description of each individual
|
|
* DMA channel for the timberdale DMA driver
|
|
* @rx: true if this channel handles data in the direction to
|
|
* the CPU.
|
|
* @bytes_per_line: Number of bytes per line, this is specific for channels
|
|
* handling video data. For other channels this shall be left to 0.
|
|
* @descriptors: Number of descriptors to allocate for this channel.
|
|
* @descriptor_elements: Number of elements in each descriptor.
|
|
*
|
|
*/
|
|
struct timb_dma_platform_data_channel {
|
|
bool rx;
|
|
unsigned int bytes_per_line;
|
|
unsigned int descriptors;
|
|
unsigned int descriptor_elements;
|
|
};
|
|
|
|
/**
|
|
* struct timb_dma_platform_data - Platform data of the timberdale DMA driver
|
|
* @nr_channels: Number of defined channels in the channels array.
|
|
* @channels: Definition of the each channel.
|
|
*
|
|
*/
|
|
struct timb_dma_platform_data {
|
|
unsigned nr_channels;
|
|
struct timb_dma_platform_data_channel channels[32];
|
|
};
|
|
|
|
#endif
|