linux/drivers/gpu/drm/radeon/rs600.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
 */
/* RS600 / Radeon X1250/X1270 integrated GPU
 *
 * This file gather function specific to RS600 which is the IGP of
 * the X1250/X1270 family supporting intel CPU (while RS690/RS740
 * is the X1250/X1270 supporting AMD CPU). The display engine are
 * the avivo one, bios is an atombios, 3D block are the one of the
 * R4XX family. The GART is different from the RS400 one and is very
 * close to the one of the R600 family (R600 likely being an evolution
 * of the RS600 GART block).
 */

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

/**
 * avivo_wait_for_vblank - vblank wait asic callback.
 *
 * @rdev: radeon_device pointer
 * @crtc: crtc to wait for vblank on
 *
 * Wait for vblank on the requested crtc (r5xx-r7xx).
 */
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)
{}

/* hpd for digital panel detect/disconnect */
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)
{}

/*
 * GART.
 */
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)
{}