diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-10-20 05:40:09 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-11-15 08:52:17 +0300 |
commit | f5bcb35387efc994cfd88f87039d7cdb6c1a06a2 (patch) | |
tree | aff942879db6443d15176992cdeedf6f310c0b8f /include/linux/remoteproc.h | |
parent | 2b45cef5868a9ad012121f4f7f11c700bfb7f2e4 (diff) | |
download | linux-f5bcb35387efc994cfd88f87039d7cdb6c1a06a2.tar.xz |
remoteproc: Decouple vdev resources and devices
Represent the virtio device part of the vdev resources as remoteproc
subdevices to finalize the decoupling of the virtio resource and device
handling.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r-- | include/linux/remoteproc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 5def5c84b9c0..8265d351c9f0 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -488,6 +488,8 @@ struct rproc_vring { /** * struct rproc_vdev - remoteproc state for a supported virtio device * @refcount: reference counter for the vdev and vring allocations + * @subdev: handle for registering the vdev as a rproc subdevice + * @id: virtio device id (as in virtio_ids.h) * @node: list node * @rproc: the rproc handle * @vdev: the virio device @@ -497,6 +499,9 @@ struct rproc_vring { struct rproc_vdev { struct kref refcount; + struct rproc_subdev subdev; + + unsigned int id; struct list_head node; struct rproc *rproc; struct virtio_device vdev; |