diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-10-19 22:40:09 -0400 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-11-15 00:52:17 -0500 |
commit | f5bcb35387efc994cfd88f87039d7cdb6c1a06a2 (patch) | |
tree | aff942879db6443d15176992cdeedf6f310c0b8f /include/linux | |
parent | 2b45cef5868a9ad012121f4f7f11c700bfb7f2e4 (diff) |
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')
-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 { | |||
488 | /** | 488 | /** |
489 | * struct rproc_vdev - remoteproc state for a supported virtio device | 489 | * struct rproc_vdev - remoteproc state for a supported virtio device |
490 | * @refcount: reference counter for the vdev and vring allocations | 490 | * @refcount: reference counter for the vdev and vring allocations |
491 | * @subdev: handle for registering the vdev as a rproc subdevice | ||
492 | * @id: virtio device id (as in virtio_ids.h) | ||
491 | * @node: list node | 493 | * @node: list node |
492 | * @rproc: the rproc handle | 494 | * @rproc: the rproc handle |
493 | * @vdev: the virio device | 495 | * @vdev: the virio device |
@@ -497,6 +499,9 @@ struct rproc_vring { | |||
497 | struct rproc_vdev { | 499 | struct rproc_vdev { |
498 | struct kref refcount; | 500 | struct kref refcount; |
499 | 501 | ||
502 | struct rproc_subdev subdev; | ||
503 | |||
504 | unsigned int id; | ||
500 | struct list_head node; | 505 | struct list_head node; |
501 | struct rproc *rproc; | 506 | struct rproc *rproc; |
502 | struct virtio_device vdev; | 507 | struct virtio_device vdev; |