1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2023-2024, Advanced Micro Devices, Inc.
6 #ifndef _PLATDATA_AMD_QDMA_H
7 #define _PLATDATA_AMD_QDMA_H
9 #include <linux/dmaengine.h>
12 * struct qdma_queue_info - DMA queue information. This information is used to
13 * match queue when DMA channel is requested
14 * @dir: Channel transfer direction
16 struct qdma_queue_info
{
17 enum dma_transfer_direction dir
;
20 #define QDMA_FILTER_PARAM(qinfo) ((void *)(qinfo))
25 * struct qdma_platdata - Platform specific data for QDMA engine
26 * @max_mm_channels: Maximum number of MM DMA channels in each direction
27 * @device_map: DMA slave map
28 * @irq_index: The index of first IRQ
30 struct qdma_platdata
{
33 struct dma_slave_map
*device_map
;
36 #endif /* _PLATDATA_AMD_QDMA_H */