diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2023-11-07 11:31:13 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-12-04 11:21:46 +0100 |
commit | 94ed00981b5167e22f66fd5bfedcc7cc7fd72551 (patch) | |
tree | 94a1239e241b28ed9fad498242b0e0f121ab100f /include/media | |
parent | eba5058633b4d11e2a4d65eae9f1fce0b96365d9 (diff) | |
download | lwn-94ed00981b5167e22f66fd5bfedcc7cc7fd72551.tar.gz lwn-94ed00981b5167e22f66fd5bfedcc7cc7fd72551.zip |
media: v4l: cci: Add driver-private bit definitions
Provide a few bits for drivers to store private information on register
definitions.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-cci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/v4l2-cci.h b/include/media/v4l2-cci.h index f2c2962e936b..ee469f03e440 100644 --- a/include/media/v4l2-cci.h +++ b/include/media/v4l2-cci.h @@ -33,6 +33,11 @@ struct cci_reg_sequence { #define CCI_REG_ADDR_MASK GENMASK(15, 0) #define CCI_REG_WIDTH_SHIFT 16 #define CCI_REG_WIDTH_MASK GENMASK(19, 16) +/* + * Private CCI register flags, for the use of drivers. + */ +#define CCI_REG_PRIVATE_SHIFT 28U +#define CCI_REG_PRIVATE_MASK GENMASK(31U, CCI_REG_PRIVATE_SHIFT) #define CCI_REG8(x) ((1 << CCI_REG_WIDTH_SHIFT) | (x)) #define CCI_REG16(x) ((2 << CCI_REG_WIDTH_SHIFT) | (x)) |