1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2022, Advanced Micro Devices, Inc.
6 #ifndef _PLATDATA_AMD_XDMA_H
7 #define _PLATDATA_AMD_XDMA_H
9 #include <linux/dmaengine.h>
12 * struct xdma_chan_info - DMA channel information
13 * This information is used to match channel when request dma channel
14 * @dir: Channel transfer direction
16 struct xdma_chan_info
{
17 enum dma_transfer_direction dir
;
20 #define XDMA_FILTER_PARAM(chan_info) ((void *)(chan_info))
25 * struct xdma_platdata - platform specific data for XDMA engine
26 * @max_dma_channels: Maximum dma channels in each direction
28 struct xdma_platdata
{
31 struct dma_slave_map
*device_map
;
34 #endif /* _PLATDATA_AMD_XDMA_H */