linux/drivers/gpu/drm/radeon/rs400.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 "radeon.h"
#include "radeon_asic.h"
#include "rs400d.h"

/* This files gather functions specifics to : rs400,rs480 */
static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev);

void rs400_gart_adjust_size(struct radeon_device *rdev)
{}

void rs400_gart_tlb_flush(struct radeon_device *rdev)
{}

int rs400_gart_init(struct radeon_device *rdev)
{}

int rs400_gart_enable(struct radeon_device *rdev)
{}

void rs400_gart_disable(struct radeon_device *rdev)
{}

void rs400_gart_fini(struct radeon_device *rdev)
{}

#define RS400_PTE_UNSNOOPED
#define RS400_PTE_WRITEABLE
#define RS400_PTE_READABLE

uint64_t rs400_gart_get_page_entry(uint64_t addr, uint32_t flags)
{}

void rs400_gart_set_page(struct radeon_device *rdev, unsigned i,
			 uint64_t entry)
{}

int rs400_mc_wait_for_idle(struct radeon_device *rdev)
{}

static void rs400_gpu_init(struct radeon_device *rdev)
{}

static void rs400_mc_init(struct radeon_device *rdev)
{}

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

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

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

DEFINE_SHOW_ATTRIBUTE();
#endif

static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev)
{}

static void rs400_mc_program(struct radeon_device *rdev)
{}

static int rs400_startup(struct radeon_device *rdev)
{}

int rs400_resume(struct radeon_device *rdev)
{}

int rs400_suspend(struct radeon_device *rdev)
{}

void rs400_fini(struct radeon_device *rdev)
{}

int rs400_init(struct radeon_device *rdev)
{}