riscv::starfive:driver:dc8200
[platform/kernel/linux-starfive.git] / include / uapi / drm / vs_drm.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020 VeriSilicon Holdings Co., Ltd.
4  */
5
6 #ifndef __VS_DRM_H__
7 #define __VS_DRM_H__
8
9 #include "drm.h"
10
11 enum drm_vs_degamma_mode {
12     VS_DEGAMMA_DISABLE = 0,
13     VS_DEGAMMA_BT709 = 1,
14     VS_DEGAMMA_BT2020 = 2,
15 };
16
17 enum drm_vs_sync_dc_mode {
18     VS_SINGLE_DC = 0,
19     VS_MULTI_DC_PRIMARY = 1,
20     VS_MULTI_DC_SECONDARY = 2,
21 };
22
23 enum drm_vs_mmu_prefetch_mode {
24     VS_MMU_PREFETCH_DISABLE = 0,
25     VS_MMU_PREFETCH_ENABLE = 1,
26 };
27
28 struct drm_vs_watermark {
29     __u32 watermark;
30     __u8 qos_low;
31     __u8 qos_high;
32 };
33
34 struct drm_vs_color_mgmt {
35     __u32 colorkey;
36     __u32 colorkey_high;
37     __u32 clear_value;
38     bool  clear_enable;
39     bool  transparency;
40 };
41
42 struct drm_vs_roi {
43     bool enable;
44     __u16 roi_x;
45     __u16 roi_y;
46     __u16 roi_w;
47     __u16 roi_h;
48 };
49
50 #endif /* __VS_DRM_H__ */