xref: /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/rockchip_drm_logo.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 #include "rockchip_drm_vop.h"
11 
12 struct rockchip_drm_mode_set {
13 	struct list_head head;
14 	struct drm_framebuffer *fb;
15 	struct rockchip_drm_sub_dev *sub_dev;
16 	struct drm_crtc *crtc;
17 	struct drm_display_mode *mode;
18 	struct post_csc csc;
19 	int clock;
20 	int hdisplay;
21 	int vdisplay;
22 	int vrefresh;
23 	int flags;
24 	int picture_aspect_ratio;
25 	int crtc_hsync_end;
26 	int crtc_vsync_end;
27 
28 	int left_margin;
29 	int right_margin;
30 	int top_margin;
31 	int bottom_margin;
32 
33 	unsigned int brightness;
34 	unsigned int contrast;
35 	unsigned int saturation;
36 	unsigned int hue;
37 
38 	bool mode_changed;
39 	bool force_output;
40 	int ratio;
41 };
42 
43 void rockchip_drm_show_logo(struct drm_device *drm_dev);
44 void rockchip_free_loader_memory(struct drm_device *drm);
45 
46 #endif
47