Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v6.7 46 lines 1.3 kB view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 4 */ 5 6#ifndef _DP_DISPLAY_H_ 7#define _DP_DISPLAY_H_ 8 9#include "dp_panel.h" 10#include <sound/hdmi-codec.h> 11#include "disp/msm_disp_snapshot.h" 12 13struct msm_dp { 14 struct drm_device *drm_dev; 15 struct platform_device *pdev; 16 struct device *codec_dev; 17 struct drm_bridge *bridge; 18 struct drm_connector *connector; 19 struct drm_bridge *next_bridge; 20 bool is_connected; 21 bool audio_enabled; 22 bool power_on; 23 unsigned int connector_type; 24 bool is_edp; 25 bool internal_hpd; 26 27 hdmi_codec_plugged_cb plugged_cb; 28 29 bool wide_bus_en; 30 31 u32 max_dp_lanes; 32 struct dp_audio *dp_audio; 33 bool psr_supported; 34}; 35 36int dp_display_set_plugged_cb(struct msm_dp *dp_display, 37 hdmi_codec_plugged_cb fn, struct device *codec_dev); 38int dp_display_get_modes(struct msm_dp *dp_display); 39int dp_display_request_irq(struct msm_dp *dp_display); 40bool dp_display_check_video_test(struct msm_dp *dp_display); 41int dp_display_get_test_bpp(struct msm_dp *dp_display); 42void dp_display_signal_audio_start(struct msm_dp *dp_display); 43void dp_display_signal_audio_complete(struct msm_dp *dp_display); 44void dp_display_set_psr(struct msm_dp *dp, bool enter); 45 46#endif /* _DP_DISPLAY_H_ */