summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/amd_qdma.h
blob: 576d952f97edd433e4d1ac867eeaa2d771dd0456 (plain) (blame)
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
35
36
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2023-2024, Advanced Micro Devices, Inc.
 */

#ifndef _PLATDATA_AMD_QDMA_H
#define _PLATDATA_AMD_QDMA_H

#include <linux/dmaengine.h>

/**
 * struct qdma_queue_info - DMA queue information. This information is used to
 *			    match queue when DMA channel is requested
 * @dir: Channel transfer direction
 */
struct qdma_queue_info {
	enum dma_transfer_direction dir;
};

#define QDMA_FILTER_PARAM(qinfo)	((void *)(qinfo))

struct dma_slave_map;

/**
 * struct qdma_platdata - Platform specific data for QDMA engine
 * @max_mm_channels: Maximum number of MM DMA channels in each direction
 * @device_map: DMA slave map
 * @irq_index: The index of first IRQ
 */
struct qdma_platdata {
	u32			max_mm_channels;
	u32			irq_index;
	struct dma_slave_map	*device_map;
};

#endif /* _PLATDATA_AMD_QDMA_H */