linux/drivers/gpu/drm/display/drm_hdmi_helper.c

// SPDX-License-Identifier: MIT

#include <linux/module.h>

#include <drm/display/drm_hdmi_helper.h>
#include <drm/drm_connector.h>
#include <drm/drm_edid.h>
#include <drm/drm_modes.h>
#include <drm/drm_print.h>
#include <drm/drm_property.h>

static inline bool is_eotf_supported(u8 output_eotf, u8 sink_eotf)
{}

/**
 * drm_hdmi_infoframe_set_hdr_metadata() - fill an HDMI DRM infoframe with
 *                                         HDR metadata from userspace
 * @frame: HDMI DRM infoframe
 * @conn_state: Connector state containing HDR metadata
 *
 * Return: 0 on success or a negative error code on failure.
 */
int drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame,
					const struct drm_connector_state *conn_state)
{}
EXPORT_SYMBOL();

/* HDMI Colorspace Spec Definitions */
#define FULL_COLORIMETRY_MASK
#define NORMAL_COLORIMETRY_MASK
#define EXTENDED_COLORIMETRY_MASK
#define EXTENDED_ACE_COLORIMETRY_MASK

#define C
#define EC
#define ACE

#define HDMI_COLORIMETRY_NO_DATA
#define HDMI_COLORIMETRY_SMPTE_170M_YCC
#define HDMI_COLORIMETRY_BT709_YCC
#define HDMI_COLORIMETRY_XVYCC_601
#define HDMI_COLORIMETRY_XVYCC_709
#define HDMI_COLORIMETRY_SYCC_601
#define HDMI_COLORIMETRY_OPYCC_601
#define HDMI_COLORIMETRY_OPRGB
#define HDMI_COLORIMETRY_BT2020_CYCC
#define HDMI_COLORIMETRY_BT2020_RGB
#define HDMI_COLORIMETRY_BT2020_YCC
#define HDMI_COLORIMETRY_DCI_P3_RGB_D65
#define HDMI_COLORIMETRY_DCI_P3_RGB_THEATER

static const u32 hdmi_colorimetry_val[] =;

#undef C
#undef EC
#undef ACE

/**
 * drm_hdmi_avi_infoframe_colorimetry() - fill the HDMI AVI infoframe
 *                                       colorimetry information
 * @frame: HDMI AVI infoframe
 * @conn_state: connector state
 */
void drm_hdmi_avi_infoframe_colorimetry(struct hdmi_avi_infoframe *frame,
					const struct drm_connector_state *conn_state)
{}
EXPORT_SYMBOL();

/**
 * drm_hdmi_avi_infoframe_bars() - fill the HDMI AVI infoframe
 *                                 bar information
 * @frame: HDMI AVI infoframe
 * @conn_state: connector state
 */
void drm_hdmi_avi_infoframe_bars(struct hdmi_avi_infoframe *frame,
				 const struct drm_connector_state *conn_state)
{}
EXPORT_SYMBOL();

/**
 * drm_hdmi_avi_infoframe_content_type() - fill the HDMI AVI infoframe
 *                                         content type information, based
 *                                         on correspondent DRM property.
 * @frame: HDMI AVI infoframe
 * @conn_state: DRM display connector state
 *
 */
void drm_hdmi_avi_infoframe_content_type(struct hdmi_avi_infoframe *frame,
					 const struct drm_connector_state *conn_state)
{}
EXPORT_SYMBOL();

/**
 * drm_hdmi_compute_mode_clock() - Computes the TMDS Character Rate
 * @mode: Display mode to compute the clock for
 * @bpc: Bits per character
 * @fmt: Output Pixel Format used
 *
 * Returns the TMDS Character Rate for a given mode, bpc count and output format.
 *
 * RETURNS:
 * The TMDS Character Rate, in Hertz, or 0 on error.
 */
unsigned long long
drm_hdmi_compute_mode_clock(const struct drm_display_mode *mode,
			    unsigned int bpc, enum hdmi_colorspace fmt)
{}
EXPORT_SYMBOL();