summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e5dce3)
raw | patch | inline | side by side (parent: 3e5dce3)
author | Wendy Liang <jliang@xilinx.com> | |
Tue, 24 Jan 2017 22:11:52 +0000 (14:11 -0800) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Fri, 3 Feb 2017 21:41:23 +0000 (13:41 -0800) |
Add hil_vdev_notify to notify vdev config changes.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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 e43e6dd3f1a9044f53f9a6986b068e3fd65a3cd7..a8f06c425b6989f66358e568e0c6f931078333bc 100644 (file)
--- a/lib/common/hil.c
+++ b/lib/common/hil.c
return 0;
}
+/**
+ * hil_vdev_notify()
+ *
+ * This function generates IPI to let the other side know that there is
+ * update in the vritio dev configs
+ *
+ * @param vdev - pointer to the viritio device
+ *
+ */
+void hil_vdev_notify(struct virtio_device *vdev)
+{
+ struct hil_proc *proc = vdev->device;
+ struct proc_vdev *pvdev = &proc->vdev;
+
+ if (proc->ops->notify) {
+ proc->ops->notify(proc, &pvdev->intr_info);
+ }
+}
+
/**
* hil_vring_notify()
*
index 6176c72a8a2d58b151a6bfe19d089eba0bc2dc0c..8dca8aa0638fb12a791916b7f55469bfba841bad 100644 (file)
*/
int hil_enable_vring_notifications(int vring_index, struct virtqueue *vq);
+/**
+ * hil_vdev_notify()
+ *
+ * This function generates IPI to let the other side know that there is
+ * change to virtio device configs.
+ *
+ * @param vdev - pointer to virtio device
+ *
+ */
+void hil_vdev_notify(struct virtio_device *vdev);
+
/**
* hil_vring_notify()
*