mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
The Xilinx DMA/Bridge Subsystem for PCIe (XDMA) provides up to 16 user interrupt wires to user logic that generate interrupts to the host. This patch adds APIs to enable/disable user logic interrupt for a given interrupt wire index. Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Sonal Santan <[email protected]> Signed-off-by: Max Zhen <[email protected]> Signed-off-by: Brian Xu <[email protected]> Tested-by: Martin Tuma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
17 lines
483 B
C
17 lines
483 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2022, Advanced Micro Devices, Inc.
|
|
*/
|
|
|
|
#ifndef _DMAENGINE_AMD_XDMA_H
|
|
#define _DMAENGINE_AMD_XDMA_H
|
|
|
|
#include <linux/interrupt.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
int xdma_enable_user_irq(struct platform_device *pdev, u32 irq_num);
|
|
void xdma_disable_user_irq(struct platform_device *pdev, u32 irq_num);
|
|
int xdma_get_user_irq(struct platform_device *pdev, u32 user_irq_index);
|
|
|
|
#endif /* _DMAENGINE_AMD_XDMA_H */
|