luckfox-pico-sdk/sysdrv/source/kernel/include/uapi/linux/rk_hdmirx_config.h
luckfox-eng29 8f34c2760d project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between
the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door
for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more
usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp:
Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for
compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem.
sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device
tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately.
sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick
boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades.
sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for
fastboot.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2024-10-14 09:47:04 +08:00

86 lines
1.8 KiB
C

/* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT)
*
* Rockchip hdmirx driver
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
*/
#ifndef _UAPI_RK_HDMIRX_CONFIG_H
#define _UAPI_RK_HDMIRX_CONFIG_H
#include <linux/types.h>
#include <linux/v4l2-controls.h>
enum mute_type {
MUTE_OFF = 0,
MUTE_VIDEO = 1,
MUTE_AUDIO = 2,
MUTE_ALL = 3,
};
enum audio_stat {
AUDIO_OFF = 0,
AUDIO_ON = 1,
AUDIO_UNSTABLE = 2,
};
enum input_mode {
MODE_HDMI = 0,
MODE_DVI = 1,
};
enum hdmirx_color_range {
HDMIRX_DEFAULT_RANGE = 0,
HDMIRX_LIMIT_RANGE = 1,
HDMIRX_FULL_RANGE = 2,
};
enum hdmirx_color_space {
HDMIRX_XVYCC601 = 0,
HDMIRX_XVYCC709 = 1,
HDMIRX_SYCC601 = 2,
HDMIRX_ADOBE_YCC601 = 3,
HDMIRX_ADOBE_RGB = 4,
HDMIRX_BT2020_YCC_CONST_LUM = 5,
HDMIRX_BT2020_RGB_OR_YCC = 6,
};
/* Private v4l2 ioctl */
#define RK_HDMIRX_CMD_GET_FPS \
_IOR('V', BASE_VIDIOC_PRIVATE + 0, int)
#define RK_HDMIRX_CMD_GET_SIGNAL_STABLE_STATUS \
_IOR('V', BASE_VIDIOC_PRIVATE + 1, int)
#define RK_HDMIRX_CMD_GET_HDCP_STATUS \
_IOR('V', BASE_VIDIOC_PRIVATE + 2, int)
#define RK_HDMIRX_CMD_SET_MUTE \
_IOW('V', BASE_VIDIOC_PRIVATE + 3, int)
#define RK_HDMIRX_CMD_SET_HPD \
_IOW('V', BASE_VIDIOC_PRIVATE + 4, int)
#define RK_HDMIRX_CMD_SET_AUDIO_STATE \
_IOW('V', BASE_VIDIOC_PRIVATE + 5, int)
#define RK_HDMIRX_CMD_SOFT_RESET \
_IO('V', BASE_VIDIOC_PRIVATE + 6)
#define RK_HDMIRX_CMD_RESET_AUDIO_FIFO \
_IO('V', BASE_VIDIOC_PRIVATE + 7)
#define RK_HDMIRX_CMD_GET_INPUT_MODE \
_IOR('V', BASE_VIDIOC_PRIVATE + 8, int)
#define RK_HDMIRX_CMD_GET_COLOR_RANGE \
_IOR('V', BASE_VIDIOC_PRIVATE + 9, int)
#define RK_HDMIRX_CMD_GET_COLOR_SPACE \
_IOR('V', BASE_VIDIOC_PRIVATE + 10, int)
/* Private v4l2 event */
#define RK_HDMIRX_V4L2_EVENT_SIGNAL_LOST \
(V4L2_EVENT_PRIVATE_START + 1)
#endif /* _UAPI_RK_HDMIRX_CONFIG_H */