hil: add API to enable vdev IPI
[processor-sdk/open-amp.git] / lib / common / hil.c
index 5a09cea771b090b3535e08f4ae3d36227a993a91..f832d6b7aab82899d2b7f1171d8e033840fde293 100644 (file)
@@ -310,6 +310,17 @@ void hil_free_vqs(struct virtio_device *vdev)
        metal_mutex_release(&proc->lock);
 }
 
        metal_mutex_release(&proc->lock);
 }
 
+int hil_enable_vdev_notification(struct hil_proc *proc, int id)
+{
+       /* We only support single vdev in hil_proc */
+       (void)id;
+       if (!proc)
+               return -1;
+       if (proc->ops->enable_interrupt)
+               proc->ops->enable_interrupt(&proc->vdev.intr_info);
+       return 0;
+}
+
 /**
  * hil_enable_vring_notifications()
  *
 /**
  * hil_enable_vring_notifications()
  *