1 /* SPDX-License-Identifier: MIT */ 2 3 #ifndef DRM_HDMI_HELPER 4 #define DRM_HDMI_HELPER 5 6 #include <linux/hdmi.h> 7 8 struct drm_connector; 9 struct drm_connector_state; 10 struct drm_display_mode; 11 12 void 13 drm_hdmi_avi_infoframe_colorimetry(struct hdmi_avi_infoframe *frame, 14 const struct drm_connector_state *conn_state); 15 16 void 17 drm_hdmi_avi_infoframe_bars(struct hdmi_avi_infoframe *frame, 18 const struct drm_connector_state *conn_state); 19 20 int 21 drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame, 22 const struct drm_connector_state *conn_state); 23 24 void drm_hdmi_avi_infoframe_content_type(struct hdmi_avi_infoframe *frame, 25 const struct drm_connector_state *conn_state); 26 27 unsigned long long 28 drm_hdmi_compute_mode_clock(const struct drm_display_mode *mode, 29 unsigned int bpc, enum hdmi_colorspace fmt); 30 31 #endif 32