提交 e5c4311e 编写于 作者: X Xiongfeng Wang 提交者: Xie XiuQi

firmware: arm_sdei: add interrupt binding api

euler inclusion
category: feature
Bugzilla: 5515
CVE: N/A

----------------------------------------

This patch add a interrupt binding api function which returns the binded
event number.
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b8163908
......@@ -190,6 +190,16 @@ int sdei_api_event_context(u32 query, u64 *result)
}
NOKPROBE_SYMBOL(sdei_api_event_context);
int sdei_api_event_interrupt_bind(int hwirq)
{
u64 event_number;
invoke_sdei_fn(SDEI_1_0_FN_SDEI_INTERRUPT_BIND, hwirq, 0, 0, 0, 0,
&event_number);
return (int)event_number;
}
static int sdei_api_event_get_info(u32 event, u32 info, u64 *result)
{
return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_GET_INFO, event, info, 0,
......
......@@ -38,6 +38,7 @@ int sdei_event_unregister(u32 event_num);
int sdei_event_enable(u32 event_num);
int sdei_event_disable(u32 event_num);
int sdei_api_event_interrupt_bind(int hwirq);
#ifdef CONFIG_ARM_SDE_INTERFACE
/* For use by arch code when CPU hotplug notifiers are not appropriate. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册