#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/pci.h>
#include <drm/drm_device.h>
#include <drm/drm_vblank.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_framebuffer.h>
#include "atom.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include "rs600_reg_safe.h"
#include "rs600d.h"
static void rs600_gpu_init(struct radeon_device *rdev);
int rs600_mc_wait_for_idle(struct radeon_device *rdev);
static const u32 crtc_offsets[2] = …;
static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc)
{ … }
static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc)
{ … }
void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc)
{ … }
void rs600_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base, bool async)
{ … }
bool rs600_page_flip_pending(struct radeon_device *rdev, int crtc_id)
{ … }
void avivo_program_fmt(struct drm_encoder *encoder)
{ … }
void rs600_pm_misc(struct radeon_device *rdev)
{ … }
void rs600_pm_prepare(struct radeon_device *rdev)
{ … }
void rs600_pm_finish(struct radeon_device *rdev)
{ … }
bool rs600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd)
{ … }
void rs600_hpd_set_polarity(struct radeon_device *rdev,
enum radeon_hpd_id hpd)
{ … }
void rs600_hpd_init(struct radeon_device *rdev)
{ … }
void rs600_hpd_fini(struct radeon_device *rdev)
{ … }
int rs600_asic_reset(struct radeon_device *rdev, bool hard)
{ … }
void rs600_gart_tlb_flush(struct radeon_device *rdev)
{ … }
static int rs600_gart_init(struct radeon_device *rdev)
{ … }
static int rs600_gart_enable(struct radeon_device *rdev)
{ … }
static void rs600_gart_disable(struct radeon_device *rdev)
{ … }
static void rs600_gart_fini(struct radeon_device *rdev)
{ … }
uint64_t rs600_gart_get_page_entry(uint64_t addr, uint32_t flags)
{ … }
void rs600_gart_set_page(struct radeon_device *rdev, unsigned i,
uint64_t entry)
{ … }
int rs600_irq_set(struct radeon_device *rdev)
{ … }
static inline u32 rs600_irq_ack(struct radeon_device *rdev)
{ … }
void rs600_irq_disable(struct radeon_device *rdev)
{ … }
int rs600_irq_process(struct radeon_device *rdev)
{ … }
u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc)
{ … }
int rs600_mc_wait_for_idle(struct radeon_device *rdev)
{ … }
static void rs600_gpu_init(struct radeon_device *rdev)
{ … }
static void rs600_mc_init(struct radeon_device *rdev)
{ … }
void rs600_bandwidth_update(struct radeon_device *rdev)
{ … }
uint32_t rs600_mc_rreg(struct radeon_device *rdev, uint32_t reg)
{ … }
void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v)
{ … }
void rs600_set_safe_registers(struct radeon_device *rdev)
{ … }
static void rs600_mc_program(struct radeon_device *rdev)
{ … }
static int rs600_startup(struct radeon_device *rdev)
{ … }
int rs600_resume(struct radeon_device *rdev)
{ … }
int rs600_suspend(struct radeon_device *rdev)
{ … }
void rs600_fini(struct radeon_device *rdev)
{ … }
int rs600_init(struct radeon_device *rdev)
{ … }