hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
 * Author: Sandy Huang <hjc@rock-chips.com>
 */
 
#ifndef ROCKCHIP_DRM_LOGO_H
#define ROCKCHIP_DRM_LOGO_H
 
#include "rockchip_drm_vop.h"
 
struct rockchip_drm_mode_set {
   struct list_head head;
   struct drm_framebuffer *fb;
   struct rockchip_drm_sub_dev *sub_dev;
   struct drm_crtc *crtc;
   struct drm_display_mode *mode;
   struct post_csc csc;
   int clock;
   int hdisplay;
   int vdisplay;
   int vrefresh;
   int flags;
   int picture_aspect_ratio;
   int crtc_hsync_end;
   int crtc_vsync_end;
 
   int left_margin;
   int right_margin;
   int top_margin;
   int bottom_margin;
 
   unsigned int brightness;
   unsigned int contrast;
   unsigned int saturation;
   unsigned int hue;
 
   bool mode_changed;
   bool force_output;
   int ratio;
};
 
void rockchip_drm_show_logo(struct drm_device *drm_dev);
void rockchip_free_loader_memory(struct drm_device *drm);
 
#endif