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

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2020 Intel Corporation
 */
#include <linux/kernel.h>
#include <linux/pm_qos.h>
#include <linux/slab.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_plane.h>
#include <drm/drm_vblank_work.h>

#include "i915_vgpu.h"
#include "i9xx_plane.h"
#include "icl_dsi.h"
#include "intel_atomic.h"
#include "intel_atomic_plane.h"
#include "intel_color.h"
#include "intel_crtc.h"
#include "intel_cursor.h"
#include "intel_display_debugfs.h"
#include "intel_display_irq.h"
#include "intel_display_trace.h"
#include "intel_display_types.h"
#include "intel_drrs.h"
#include "intel_dsi.h"
#include "intel_fifo_underrun.h"
#include "intel_pipe_crc.h"
#include "intel_psr.h"
#include "intel_sprite.h"
#include "intel_vblank.h"
#include "intel_vrr.h"
#include "skl_universal_plane.h"

static void assert_vblank_disabled(struct drm_crtc *crtc)
{}

struct intel_crtc *intel_first_crtc(struct drm_i915_private *i915)
{}

struct intel_crtc *intel_crtc_for_pipe(struct drm_i915_private *i915,
				       enum pipe pipe)
{}

void intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)
{}

void intel_wait_for_vblank_if_active(struct drm_i915_private *i915,
				     enum pipe pipe)
{}

u32 intel_crtc_get_vblank_counter(struct intel_crtc *crtc)
{}

u32 intel_crtc_max_vblank_count(const struct intel_crtc_state *crtc_state)
{}

void intel_crtc_vblank_on(const struct intel_crtc_state *crtc_state)
{}

void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state)
{}

struct intel_crtc_state *intel_crtc_state_alloc(struct intel_crtc *crtc)
{}

void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,
			    struct intel_crtc *crtc)
{}

static struct intel_crtc *intel_crtc_alloc(void)
{}

static void intel_crtc_free(struct intel_crtc *crtc)
{}

static void intel_crtc_destroy(struct drm_crtc *_crtc)
{}

static int intel_crtc_late_register(struct drm_crtc *crtc)
{}

#define INTEL_CRTC_FUNCS

static const struct drm_crtc_funcs bdw_crtc_funcs =;

static const struct drm_crtc_funcs ilk_crtc_funcs =;

static const struct drm_crtc_funcs g4x_crtc_funcs =;

static const struct drm_crtc_funcs i965_crtc_funcs =;

static const struct drm_crtc_funcs i915gm_crtc_funcs =;

static const struct drm_crtc_funcs i915_crtc_funcs =;

static const struct drm_crtc_funcs i8xx_crtc_funcs =;

int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)
{}

static bool intel_crtc_needs_vblank_work(const struct intel_crtc_state *crtc_state)
{}

static void intel_crtc_vblank_work(struct kthread_work *base)
{}

static void intel_crtc_vblank_work_init(struct intel_crtc_state *crtc_state)
{}

void intel_wait_for_vblank_workers(struct intel_atomic_state *state)
{}

int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode,
			     int usecs)
{}

/**
 * intel_pipe_update_start() - start update of a set of display registers
 * @state: the atomic state
 * @crtc: the crtc
 *
 * Mark the start of an update to pipe registers that should be updated
 * atomically regarding vblank. If the next vblank will happens within
 * the next 100 us, this function waits until the vblank passes.
 *
 * After a successful call to this function, interrupts will be disabled
 * until a subsequent call to intel_pipe_update_end(). That is done to
 * avoid random delays.
 */
void intel_pipe_update_start(struct intel_atomic_state *state,
			     struct intel_crtc *crtc)
{}

#if IS_ENABLED(CONFIG_DRM_I915_DEBUG_VBLANK_EVADE)
static void dbg_vblank_evade(struct intel_crtc *crtc, ktime_t end)
{}
#else
static void dbg_vblank_evade(struct intel_crtc *crtc, ktime_t end) {}
#endif

void intel_crtc_arm_vblank_event(struct intel_crtc_state *crtc_state)
{}

/**
 * intel_pipe_update_end() - end update of a set of display registers
 * @state: the atomic state
 * @crtc: the crtc
 *
 * Mark the end of an update started with intel_pipe_update_start(). This
 * re-enables interrupts and verifies the update was actually completed
 * before a vblank.
 */
void intel_pipe_update_end(struct intel_atomic_state *state,
			   struct intel_crtc *crtc)
{}