aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWendy Liang2017-01-25 16:19:44 -0600
committerWendy Liang2017-02-03 15:41:24 -0600
commitc936c865354ebc9aa35fb12992a4eaf1c39380da (patch)
treea972ebde4e4b5b64d5f0c13cde39de2fa163e96a
parent098e128979210c0fbb7382d76a9d2726789eaaff (diff)
downloadopen-amp-c936c865354ebc9aa35fb12992a4eaf1c39380da.tar.gz
open-amp-c936c865354ebc9aa35fb12992a4eaf1c39380da.tar.xz
open-amp-c936c865354ebc9aa35fb12992a4eaf1c39380da.zip
hil: change enable_interupt input arg to proc_intr
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>
-rw-r--r--lib/common/hil.c2
-rw-r--r--lib/include/openamp/hil.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/common/hil.c b/lib/common/hil.c
index 7ba4063..5a09cea 100644
--- a/lib/common/hil.c
+++ b/lib/common/hil.c
@@ -331,7 +331,7 @@ int hil_enable_vring_notifications(int vring_index, struct virtqueue *vq)
331 vring_hw->vq = vq; 331 vring_hw->vq = vq;
332 332
333 if (proc_hw->ops->enable_interrupt) { 333 if (proc_hw->ops->enable_interrupt) {
334 proc_hw->ops->enable_interrupt(vring_hw); 334 proc_hw->ops->enable_interrupt(&vring_hw->intr_info);
335 } 335 }
336 336
337 return 0; 337 return 0;
diff --git a/lib/include/openamp/hil.h b/lib/include/openamp/hil.h
index 4cc7873..afea963 100644
--- a/lib/include/openamp/hil.h
+++ b/lib/include/openamp/hil.h
@@ -531,13 +531,13 @@ struct hil_platform_ops {
531 /** 531 /**
532 * enable_interrupt() 532 * enable_interrupt()
533 * 533 *
534 * This function enables interrupt(IPI) for given vring. 534 * This function enables interrupt(IPI)
535 * 535 *
536 * @param vring_hw - pointer to vring control block 536 * @param intr - pointer to intr information
537 * 537 *
538 * @return - execution status 538 * @return - execution status
539 */ 539 */
540 int (*enable_interrupt) (struct proc_vring * vring_hw); 540 int (*enable_interrupt) (struct proc_intr *intr);
541 541
542 /** 542 /**
543 * notify() 543 * notify()