#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"
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)
{ … }