summaryrefslogtreecommitdiff
path: root/include/linux/remoteproc.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-10-20 05:40:09 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-11-15 08:52:17 +0300
commitf5bcb35387efc994cfd88f87039d7cdb6c1a06a2 (patch)
treeaff942879db6443d15176992cdeedf6f310c0b8f /include/linux/remoteproc.h
parent2b45cef5868a9ad012121f4f7f11c700bfb7f2e4 (diff)
downloadlinux-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.h5
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;