diff options
author | Wendy Liang | 2017-01-25 00:55:31 -0600 |
---|---|---|
committer | Wendy Liang | 2017-02-03 15:41:23 -0600 |
commit | 12c77c973146c7c554f7c268ec011d11680f050a (patch) | |
tree | 554974145c2d571af20e81fb91b5449c8a811f9f | |
parent | b91887a3c094bd39846f2d792084350b3375a844 (diff) | |
download | open-amp-12c77c973146c7c554f7c268ec011d11680f050a.tar.gz open-amp-12c77c973146c7c554f7c268ec011d11680f050a.tar.xz open-amp-12c77c973146c7c554f7c268ec011d11680f050a.zip |
hil: add proc_vdev reset callback
Add proc_vdev reset callback.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
-rw-r--r-- | lib/include/openamp/hil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/include/openamp/hil.h b/lib/include/openamp/hil.h index 40432f6..4fc6e1d 100644 --- a/lib/include/openamp/hil.h +++ b/lib/include/openamp/hil.h | |||
@@ -56,6 +56,10 @@ | |||
56 | /* Reserved CPU id */ | 56 | /* Reserved CPU id */ |
57 | #define HIL_RSVD_CPU_ID 0xffffffff | 57 | #define HIL_RSVD_CPU_ID 0xffffffff |
58 | 58 | ||
59 | struct hil_proc; | ||
60 | |||
61 | typedef void (*hil_proc_vdev_rst_cb_t)(struct hil_proc *proc, int id); | ||
62 | |||
59 | /** | 63 | /** |
60 | * struct proc_shm | 64 | * struct proc_shm |
61 | * | 65 | * |
@@ -139,6 +143,8 @@ struct proc_vdev { | |||
139 | void *vdev_info; | 143 | void *vdev_info; |
140 | /* Vdev interrupt control block */ | 144 | /* Vdev interrupt control block */ |
141 | struct proc_intr intr_info; | 145 | struct proc_intr intr_info; |
146 | /* Vdev reset callback */ | ||
147 | hil_proc_vdev_rst_cb_t rst_cb; | ||
142 | /* Number of vrings */ | 148 | /* Number of vrings */ |
143 | unsigned int num_vrings; | 149 | unsigned int num_vrings; |
144 | /* Virtio device features */ | 150 | /* Virtio device features */ |