linux/drivers/gpu/drm/radeon/rv515.c

/*
 * Copyright 2008 Advanced Micro Devices, Inc.
 * Copyright 2008 Red Hat Inc.
 * Copyright 2009 Jerome Glisse.
 *
 * 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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: Dave Airlie
 *          Alex Deucher
 *          Jerome Glisse
 */

#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

#include <drm/drm_device.h>
#include <drm/drm_file.h>

#include "atom.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "rv515_reg_safe.h"
#include "rv515d.h"

/* This files gather functions specifics to: rv515 */
static void rv515_gpu_init(struct radeon_device *rdev);
int rv515_mc_wait_for_idle(struct radeon_device *rdev);

static const u32 crtc_offsets[2] =;

void rv515_ring_start(struct radeon_device *rdev, struct radeon_ring *ring)
{}

int rv515_mc_wait_for_idle(struct radeon_device *rdev)
{}

void rv515_vga_render_disable(struct radeon_device *rdev)
{}

static void rv515_gpu_init(struct radeon_device *rdev)
{}

static void rv515_vram_get_type(struct radeon_device *rdev)
{}

static void rv515_mc_init(struct radeon_device *rdev)
{}

uint32_t rv515_mc_rreg(struct radeon_device *rdev, uint32_t reg)
{}

void rv515_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v)
{}

#if defined(CONFIG_DEBUG_FS)
static int rv515_debugfs_pipes_info_show(struct seq_file *m, void *unused)
{}

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

DEFINE_SHOW_ATTRIBUTE();
DEFINE_SHOW_ATTRIBUTE();
#endif

void rv515_debugfs(struct radeon_device *rdev)
{}

void rv515_mc_stop(struct radeon_device *rdev, struct rv515_mc_save *save)
{}

void rv515_mc_resume(struct radeon_device *rdev, struct rv515_mc_save *save)
{}

static void rv515_mc_program(struct radeon_device *rdev)
{}

void rv515_clock_startup(struct radeon_device *rdev)
{}

static int rv515_startup(struct radeon_device *rdev)
{}

int rv515_resume(struct radeon_device *rdev)
{}

int rv515_suspend(struct radeon_device *rdev)
{}

void rv515_set_safe_registers(struct radeon_device *rdev)
{}

void rv515_fini(struct radeon_device *rdev)
{}

int rv515_init(struct radeon_device *rdev)
{}

void atom_rv515_force_tv_scaler(struct radeon_device *rdev, struct radeon_crtc *crtc)
{}

struct rv515_watermark {};

static void rv515_crtc_bandwidth_compute(struct radeon_device *rdev,
					 struct radeon_crtc *crtc,
					 struct rv515_watermark *wm,
					 bool low)
{}

static void rv515_compute_mode_priority(struct radeon_device *rdev,
					struct rv515_watermark *wm0,
					struct rv515_watermark *wm1,
					struct drm_display_mode *mode0,
					struct drm_display_mode *mode1,
					u32 *d1mode_priority_a_cnt,
					u32 *d2mode_priority_a_cnt)
{}

void rv515_bandwidth_avivo_update(struct radeon_device *rdev)
{}

void rv515_bandwidth_update(struct radeon_device *rdev)
{}