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