X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fopen-amp.git;a=blobdiff_plain;f=lib%2Fcommon%2Fhil.c;h=f832d6b7aab82899d2b7f1171d8e033840fde293;hp=5a09cea771b090b3535e08f4ae3d36227a993a91;hb=c8a2fe16e9b7193a8b52ab6dbe72f6958b95f46f;hpb=48b798295c5dadc79f012f911794cb40f27a924d diff --git a/lib/common/hil.c b/lib/common/hil.c index 5a09cea..f832d6b 100644 --- a/lib/common/hil.c +++ b/lib/common/hil.c @@ -310,6 +310,17 @@ void hil_free_vqs(struct virtio_device *vdev) 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() *