linux/drivers/gpu/drm/i915/display/intel_display_debugfs.c

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2020 Intel Corporation
 */

#include <linux/string_helpers.h>

#include <drm/drm_debugfs.h>
#include <drm/drm_edid.h>
#include <drm/drm_fourcc.h>

#include "hsw_ips.h"
#include "i915_debugfs.h"
#include "i915_irq.h"
#include "i915_reg.h"
#include "intel_alpm.h"
#include "intel_crtc.h"
#include "intel_de.h"
#include "intel_crtc_state_dump.h"
#include "intel_display_debugfs.h"
#include "intel_display_debugfs_params.h"
#include "intel_display_power.h"
#include "intel_display_power_well.h"
#include "intel_display_types.h"
#include "intel_dmc.h"
#include "intel_dp.h"
#include "intel_dp_link_training.h"
#include "intel_dp_mst.h"
#include "intel_drrs.h"
#include "intel_fbc.h"
#include "intel_fbdev.h"
#include "intel_hdcp.h"
#include "intel_hdmi.h"
#include "intel_hotplug.h"
#include "intel_panel.h"
#include "intel_pps.h"
#include "intel_psr.h"
#include "intel_psr_regs.h"
#include "intel_vdsc.h"
#include "intel_wm.h"

static inline struct drm_i915_private *node_to_i915(struct drm_info_node *node)
{}

static int i915_frontbuffer_tracking(struct seq_file *m, void *unused)
{}

static int i915_sr_status(struct seq_file *m, void *unused)
{}

static int i915_gem_framebuffer_info(struct seq_file *m, void *data)
{}

static int i915_power_domain_info(struct seq_file *m, void *unused)
{}

static void intel_seq_print_mode(struct seq_file *m, int tabs,
				 const struct drm_display_mode *mode)
{}

static void intel_encoder_info(struct seq_file *m,
			       struct intel_crtc *crtc,
			       struct intel_encoder *encoder)
{}

static void intel_panel_info(struct seq_file *m,
			     struct intel_connector *connector)
{}

static void intel_hdcp_info(struct seq_file *m,
			    struct intel_connector *intel_connector,
			    bool remote_req)
{}

static void intel_dp_info(struct seq_file *m, struct intel_connector *connector)
{}

static void intel_dp_mst_info(struct seq_file *m,
			      struct intel_connector *connector)
{}

static void intel_hdmi_info(struct seq_file *m,
			    struct intel_connector *connector)
{}

static void intel_connector_info(struct seq_file *m,
				 struct drm_connector *connector)
{}

static const char *plane_type(enum drm_plane_type type)
{}

static void plane_rotation(char *buf, size_t bufsize, unsigned int rotation)
{}

static const char *plane_visibility(const struct intel_plane_state *plane_state)
{}

static void intel_plane_uapi_info(struct seq_file *m, struct intel_plane *plane)
{}

static void intel_plane_hw_info(struct seq_file *m, struct intel_plane *plane)
{}

static void intel_plane_info(struct seq_file *m, struct intel_crtc *crtc)
{}

static void intel_scaler_info(struct seq_file *m, struct intel_crtc *crtc)
{}

#if IS_ENABLED(CONFIG_DRM_I915_DEBUG_VBLANK_EVADE)
static void crtc_updates_info(struct seq_file *m,
			      struct intel_crtc *crtc,
			      const char *hdr)
{}

static int crtc_updates_show(struct seq_file *m, void *data)
{}

static int crtc_updates_open(struct inode *inode, struct file *file)
{}

static ssize_t crtc_updates_write(struct file *file,
				  const char __user *ubuf,
				  size_t len, loff_t *offp)
{}

static const struct file_operations crtc_updates_fops =;

static void crtc_updates_add(struct intel_crtc *crtc)
{}

#else
static void crtc_updates_info(struct seq_file *m,
			      struct intel_crtc *crtc,
			      const char *hdr)
{
}

static void crtc_updates_add(struct intel_crtc *crtc)
{
}
#endif

static void intel_crtc_info(struct seq_file *m, struct intel_crtc *crtc)
{}

static int i915_display_info(struct seq_file *m, void *unused)
{}

static int i915_display_capabilities(struct seq_file *m, void *unused)
{}

static int i915_shared_dplls_info(struct seq_file *m, void *unused)
{}

static int i915_ddb_info(struct seq_file *m, void *unused)
{}

static bool
intel_lpsp_power_well_enabled(struct drm_i915_private *i915,
			      enum i915_power_well_id power_well_id)
{}

static int i915_lpsp_status(struct seq_file *m, void *unused)
{}

static int i915_dp_mst_info(struct seq_file *m, void *unused)
{}

static ssize_t i915_displayport_test_active_write(struct file *file,
						  const char __user *ubuf,
						  size_t len, loff_t *offp)
{}

static int i915_displayport_test_active_show(struct seq_file *m, void *data)
{}

static int i915_displayport_test_active_open(struct inode *inode,
					     struct file *file)
{}

static const struct file_operations i915_displayport_test_active_fops =;

static int i915_displayport_test_data_show(struct seq_file *m, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

static int i915_displayport_test_type_show(struct seq_file *m, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

static ssize_t
i915_fifo_underrun_reset_write(struct file *filp,
			       const char __user *ubuf,
			       size_t cnt, loff_t *ppos)
{}

static const struct file_operations i915_fifo_underrun_reset_ops =;

static const struct drm_info_list intel_display_debugfs_list[] =;

static const struct {} intel_display_debugfs_files[] =;

void intel_display_debugfs_register(struct drm_i915_private *i915)
{}

static int i915_hdcp_sink_capability_show(struct seq_file *m, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

static int i915_lpsp_capability_show(struct seq_file *m, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
{}

static ssize_t i915_dsc_fec_support_write(struct file *file,
					  const char __user *ubuf,
					  size_t len, loff_t *offp)
{}

static int i915_dsc_fec_support_open(struct inode *inode,
				     struct file *file)
{}

static const struct file_operations i915_dsc_fec_support_fops =;

static int i915_dsc_bpc_show(struct seq_file *m, void *data)
{}

static ssize_t i915_dsc_bpc_write(struct file *file,
				  const char __user *ubuf,
				  size_t len, loff_t *offp)
{}

static int i915_dsc_bpc_open(struct inode *inode,
			     struct file *file)
{}

static const struct file_operations i915_dsc_bpc_fops =;

static int i915_dsc_output_format_show(struct seq_file *m, void *data)
{}

static ssize_t i915_dsc_output_format_write(struct file *file,
					    const char __user *ubuf,
					    size_t len, loff_t *offp)
{}

static int i915_dsc_output_format_open(struct inode *inode,
				       struct file *file)
{}

static const struct file_operations i915_dsc_output_format_fops =;

static int i915_dsc_fractional_bpp_show(struct seq_file *m, void *data)
{}

static ssize_t i915_dsc_fractional_bpp_write(struct file *file,
					     const char __user *ubuf,
					     size_t len, loff_t *offp)
{}

static int i915_dsc_fractional_bpp_open(struct inode *inode,
					struct file *file)
{}

static const struct file_operations i915_dsc_fractional_bpp_fops =;

/*
 * Returns the Current CRTC's bpc.
 * Example usage: cat /sys/kernel/debug/dri/0/crtc-0/i915_current_bpc
 */
static int i915_current_bpc_show(struct seq_file *m, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

/* Pipe may differ from crtc index if pipes are fused off */
static int intel_crtc_pipe_show(struct seq_file *m, void *unused)
{}
DEFINE_SHOW_ATTRIBUTE();

/**
 * intel_connector_debugfs_add - add i915 specific connector debugfs files
 * @connector: pointer to a registered intel_connector
 *
 * Cleanup will be done by drm_connector_unregister() through a call to
 * drm_debugfs_connector_remove().
 */
void intel_connector_debugfs_add(struct intel_connector *connector)
{}

/**
 * intel_crtc_debugfs_add - add i915 specific crtc debugfs files
 * @crtc: pointer to a drm_crtc
 *
 * Failure to add debugfs entries should generally be ignored.
 */
void intel_crtc_debugfs_add(struct intel_crtc *crtc)
{}