forked from Xilinx/linux-xoclv2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dmaengine: xilinx: xdma: Add user logic interrupt support
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 register/unregister interrupt handler for a given interrupt wire index. Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Sonal Santan <sonal.santan@amd.com> Signed-off-by: Max Zhen <max.zhen@amd.com> Signed-off-by: Brian Xu <brian.xu@amd.com>
- Loading branch information
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* | ||
* Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved. | ||
*/ | ||
|
||
#ifndef _DMAENGINE_AMD_XDMA_H | ||
#define _DMAENGINE_AMD_XDMA_H | ||
|
||
#include <linux/interrupt.h> | ||
#include <linux/platform_device.h> | ||
|
||
int xdma_request_user_irq(struct platform_device *pdev, u32 user_irq_index, | ||
irq_handler_t handler, void *arg, ulong flags); | ||
void xdma_free_user_irq(struct platform_device *pdev, u32 user_irq_index, | ||
void *arg); | ||
|
||
#endif /* _DMAENGINE_AMD_XDMA_H */ |