summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/amd_xdma.h
blob: b5e23e14bac87b4450fa981197d6072b2fc8ac91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2022, Advanced Micro Devices, Inc.
 */

#ifndef _PLATDATA_AMD_XDMA_H
#define _PLATDATA_AMD_XDMA_H

#include <linux/dmaengine.h>

/**
 * struct xdma_chan_info - DMA channel information
 *	This information is used to match channel when request dma channel
 * @dir: Channel transfer direction
 */
struct xdma_chan_info {
	enum dma_transfer_direction dir;
};

#define XDMA_FILTER_PARAM(chan_info)	((void *)(chan_info))

struct dma_slave_map;

/**
 * struct xdma_platdata - platform specific data for XDMA engine
 * @max_dma_channels: Maximum dma channels in each direction
 */
struct xdma_platdata {
	u32 max_dma_channels;
	u32 device_map_cnt;
	struct dma_slave_map *device_map;
};

#endif /* _PLATDATA_AMD_XDMA_H */