hil: change enable_interupt input arg to proc_intr
authorWendy Liang <jliang@xilinx.com>
Wed, 25 Jan 2017 22:19:44 +0000 (14:19 -0800)
committerWendy 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>
lib/common/hil.c
lib/include/openamp/hil.h

index 7ba40638d4b89e29859d90fbfd7bd1768418e419..5a09cea771b090b3535e08f4ae3d36227a993a91 100644 (file)
@@ -331,7 +331,7 @@ int hil_enable_vring_notifications(int vring_index, struct virtqueue *vq)
        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)
@@ -531,13 +531,13 @@ struct hil_platform_ops {
        /**
         * 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()