Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
0004  */
0005 
0006 #ifndef _DP_DISPLAY_H_
0007 #define _DP_DISPLAY_H_
0008 
0009 #include "dp_panel.h"
0010 #include <sound/hdmi-codec.h>
0011 #include "disp/msm_disp_snapshot.h"
0012 
0013 struct msm_dp {
0014     struct drm_device *drm_dev;
0015     struct device *codec_dev;
0016     struct drm_bridge *bridge;
0017     struct drm_connector *connector;
0018     struct drm_bridge *next_bridge;
0019     bool is_connected;
0020     bool audio_enabled;
0021     bool power_on;
0022     unsigned int connector_type;
0023     bool is_edp;
0024 
0025     hdmi_codec_plugged_cb plugged_cb;
0026 
0027     bool wide_bus_en;
0028 
0029     u32 max_dp_lanes;
0030     struct dp_audio *dp_audio;
0031 };
0032 
0033 int dp_display_set_plugged_cb(struct msm_dp *dp_display,
0034         hdmi_codec_plugged_cb fn, struct device *codec_dev);
0035 int dp_display_get_modes(struct msm_dp *dp_display);
0036 int dp_display_request_irq(struct msm_dp *dp_display);
0037 bool dp_display_check_video_test(struct msm_dp *dp_display);
0038 int dp_display_get_test_bpp(struct msm_dp *dp_display);
0039 void dp_display_signal_audio_start(struct msm_dp *dp_display);
0040 void dp_display_signal_audio_complete(struct msm_dp *dp_display);
0041 
0042 #endif /* _DP_DISPLAY_H_ */