linux/drivers/gpu/drm/i915/intel_clock_gating.c

/*
 * Copyright © 2012 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * Authors:
 *    Eugeni Dodonov <[email protected]>
 *
 */

#include "display/i9xx_plane_regs.h"
#include "display/intel_display.h"

#include "gt/intel_engine_regs.h"
#include "gt/intel_gt.h"
#include "gt/intel_gt_mcr.h"
#include "gt/intel_gt_regs.h"

#include "i915_drv.h"
#include "i915_reg.h"
#include "intel_clock_gating.h"
#include "intel_mchbar_regs.h"
#include "vlv_sideband.h"

struct drm_i915_clock_gating_funcs {};

static void gen9_init_clock_gating(struct drm_i915_private *i915)
{}

static void bxt_init_clock_gating(struct drm_i915_private *i915)
{}

static void glk_init_clock_gating(struct drm_i915_private *i915)
{}

static void ibx_init_clock_gating(struct drm_i915_private *i915)
{}

static void g4x_disable_trickle_feed(struct drm_i915_private *dev_priv)
{}

static void ilk_init_clock_gating(struct drm_i915_private *i915)
{}

static void cpt_init_clock_gating(struct drm_i915_private *i915)
{}

static void gen6_check_mch_setup(struct drm_i915_private *i915)
{}

static void gen6_init_clock_gating(struct drm_i915_private *i915)
{}

static void lpt_init_clock_gating(struct drm_i915_private *i915)
{}

static void gen8_set_l3sqc_credits(struct drm_i915_private *i915,
				   int general_prio_credits,
				   int high_prio_credits)
{}

static void dg2_init_clock_gating(struct drm_i915_private *i915)
{}

static void cnp_init_clock_gating(struct drm_i915_private *i915)
{}

static void cfl_init_clock_gating(struct drm_i915_private *i915)
{}

static void kbl_init_clock_gating(struct drm_i915_private *i915)
{}

static void skl_init_clock_gating(struct drm_i915_private *i915)
{}

static void bdw_init_clock_gating(struct drm_i915_private *i915)
{}

static void hsw_init_clock_gating(struct drm_i915_private *i915)
{}

static void ivb_init_clock_gating(struct drm_i915_private *i915)
{}

static void vlv_init_clock_gating(struct drm_i915_private *i915)
{}

static void chv_init_clock_gating(struct drm_i915_private *i915)
{}

static void g4x_init_clock_gating(struct drm_i915_private *i915)
{}

static void i965gm_init_clock_gating(struct drm_i915_private *i915)
{}

static void i965g_init_clock_gating(struct drm_i915_private *i915)
{}

static void gen3_init_clock_gating(struct drm_i915_private *i915)
{}

static void i85x_init_clock_gating(struct drm_i915_private *i915)
{}

static void i830_init_clock_gating(struct drm_i915_private *i915)
{}

void intel_clock_gating_init(struct drm_i915_private *i915)
{}

static void nop_init_clock_gating(struct drm_i915_private *i915)
{}

#define CG_FUNCS

CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
CG_FUNCS;
#undef CG_FUNCS

/**
 * intel_clock_gating_hooks_init - setup the clock gating hooks
 * @i915: device private
 *
 * Setup the hooks that configure which clocks of a given platform can be
 * gated and also apply various GT and display specific workarounds for these
 * platforms. Note that some GT specific workarounds are applied separately
 * when GPU contexts or batchbuffers start their execution.
 */
void intel_clock_gating_hooks_init(struct drm_i915_private *i915)
{}