mirror of
https://github.com/torvalds/linux
synced 2024-10-15 07:47:34 +00:00
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>
This commit is contained in:
parent
eba5058633
commit
94ed00981b
|
@ -33,6 +33,11 @@ struct cci_reg_sequence {
|
||||||
#define CCI_REG_ADDR_MASK GENMASK(15, 0)
|
#define CCI_REG_ADDR_MASK GENMASK(15, 0)
|
||||||
#define CCI_REG_WIDTH_SHIFT 16
|
#define CCI_REG_WIDTH_SHIFT 16
|
||||||
#define CCI_REG_WIDTH_MASK GENMASK(19, 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_REG8(x) ((1 << CCI_REG_WIDTH_SHIFT) | (x))
|
||||||
#define CCI_REG16(x) ((2 << CCI_REG_WIDTH_SHIFT) | (x))
|
#define CCI_REG16(x) ((2 << CCI_REG_WIDTH_SHIFT) | (x))
|
||||||
|
|
Loading…
Reference in a new issue