summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 098e128)
raw | patch | inline | side by side (parent: 098e128)
author | Wendy Liang <jliang@xilinx.com> | |
Wed, 25 Jan 2017 22:19:44 +0000 (14:19 -0800) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Fri, 3 Feb 2017 21:41:24 +0000 (13:41 -0800) |
It should be able to retrieve the container of proc_intr.
And thus, just pass proc_intr as input arg.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
And thus, just pass proc_intr as input arg.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/common/hil.c | patch | blob | history | |
lib/include/openamp/hil.h | patch | blob | history |
diff --git a/lib/common/hil.c b/lib/common/hil.c
index 7ba40638d4b89e29859d90fbfd7bd1768418e419..5a09cea771b090b3535e08f4ae3d36227a993a91 100644 (file)
--- a/lib/common/hil.c
+++ b/lib/common/hil.c
vring_hw->vq = vq;
if (proc_hw->ops->enable_interrupt) {
- proc_hw->ops->enable_interrupt(vring_hw);
+ proc_hw->ops->enable_interrupt(&vring_hw->intr_info);
}
return 0;
index 4cc7873c2ee65b4883178ef5ccef7535f2cdfb17..afea963c7eb87ec7ff97747be19c23e9f68f85cd 100644 (file)
/**
* enable_interrupt()
*
- * This function enables interrupt(IPI) for given vring.
+ * This function enables interrupt(IPI)
*
- * @param vring_hw - pointer to vring control block
+ * @param intr - pointer to intr information
*
* @return - execution status
*/
- int (*enable_interrupt) (struct proc_vring * vring_hw);
+ int (*enable_interrupt) (struct proc_intr *intr);
/**
* notify()