Messages in this thread Patch in this message | | | From | dillon.minfei@gmail ... | Subject | [PATCH v2 8/9] media: v4l: uapi: Add user control base for stm32 dma2d controls | Date | Thu, 15 Jul 2021 17:24:27 +0800 |
| |
From: Dillon Min <dillon.minfei@gmail.com>
Add a control base for stm32 controls, and reserve 16 controls.
Signed-off-by: Dillon Min <dillon.minfei@gmail.com> --- v2: reserved 16 ioctls from v4l2-controls.h for stm32, thanks Hans
include/uapi/linux/stm32-media.h | 12 ++++++++++++ include/uapi/linux/v4l2-controls.h | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 include/uapi/linux/stm32-media.h
diff --git a/include/uapi/linux/stm32-media.h b/include/uapi/linux/stm32-media.h new file mode 100644 index 000000000000..c5a05801a7a4 --- /dev/null +++ b/include/uapi/linux/stm32-media.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ +/* Copyright (C) 2021 Dillon Min, <dillon.minfei@gmail.com> */ + +#ifndef __UAPI_STM32_MEDIA_H__ +#define __UAPI_STM32_MEDIA_H__ + +#include <linux/v4l2-controls.h> + +#define V4L2_CID_DMA2D_R2M_COLOR (V4L2_CID_USER_STM32_BASE + 1) +#define V4L2_CID_DMA2D_R2M_MODE (V4L2_CID_USER_STM32_BASE + 2) + +#endif diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index fdf97a6d7d18..72d0bb095732 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -212,6 +212,11 @@ enum v4l2_colorfx { */ #define V4L2_CID_USER_CCS_BASE (V4L2_CID_USER_BASE + 0x10f0) +/* The base for the stm32 dma2d driver controls. + * We reserve 16 controls for this driver. + */ +#define V4L2_CID_USER_STM32_BASE (V4L2_CID_USER_BASE + 0x1170) + /* MPEG-class control IDs */ /* The MPEG controls are applicable to all codec controls * and the 'MPEG' part of the define is historical */ -- 2.7.4
| |