diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2015-12-16 11:32:17 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:19:17 -0200 |
commit | 665faa971d087e8b968ef75d04079a7a462ddfca (patch) | |
tree | 86bf4c0dd50debbe5a8353208a1e4b818d22d51d /include/media/media-device.h | |
parent | 1630b832355399dd0dc4fcc2cadbcad47153a748 (diff) | |
download | talos-op-linux-665faa971d087e8b968ef75d04079a7a462ddfca.tar.gz talos-op-linux-665faa971d087e8b968ef75d04079a7a462ddfca.zip |
[media] media: Introduce internal index for media entities
The internal index can be used internally by the framework in order to keep
track of entities for a purpose or another. The internal index is constant
while it's registered to a media device, but the same index may be re-used
once the entity having that index is unregistered.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-device.h')
-rw-r--r-- | include/media/media-device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h index e01bbc427fcd..2ab4e6803842 100644 --- a/include/media/media-device.h +++ b/include/media/media-device.h @@ -261,6 +261,7 @@ * in the end provide a way to use driver-specific callbacks. */ +struct ida; struct device; /** @@ -278,6 +279,7 @@ struct device; * @pad_id: Unique ID used on the last pad registered * @link_id: Unique ID used on the last link registered * @intf_devnode_id: Unique ID used on the last interface devnode registered + * @entity_internal_idx: Allocated internal entity indices * @entities: List of registered entities * @interfaces: List of registered interfaces * @pads: List of registered pads @@ -313,6 +315,8 @@ struct media_device { u32 pad_id; u32 link_id; u32 intf_devnode_id; + struct ida entity_internal_idx; + int entity_internal_idx_max; struct list_head entities; struct list_head interfaces; |