Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751246AbXAXL0N (ORCPT ); Wed, 24 Jan 2007 06:26:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751250AbXAXL0N (ORCPT ); Wed, 24 Jan 2007 06:26:13 -0500 Received: from ipmail03.adl2.internode.on.net ([203.16.214.135]:62313 "EHLO ipmail03.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbXAXLZl (ORCPT ); Wed, 24 Jan 2007 06:25:41 -0500 X-IronPort-AV: i="4.13,231,1167571800"; d="scan'208"; a="39454218:sNHT26608722" From: airlied@linux.ie To: linux-kernel@vger.kernel.org Cc: Dave Airlie Subject: [PATCH] gpu/radeon: add a radeon lowlevel GPU driver Date: Wed, 24 Jan 2007 22:20:20 +1100 Message-Id: <11696376362911-git-send-email-airlied@linux.ie> X-Mailer: git-send-email 1.4.1.ga3e6 In-Reply-To: <11696376332395-git-send-email-airlied@linux.ie> References: <1169637623985-git-send-email-airlied@linux.ie> <11696376332395-git-send-email-airlied@linux.ie> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15851 Lines: 496 From: Dave Airlie This creates a lowlevel radeon driver which detects the card and sets up the GPU layer to use it. Signed-off-by: Dave Airlie --- drivers/video/Kconfig | 5 + drivers/video/Makefile | 2 drivers/video/radeon_gpu.c | 343 ++++++++++++++++++++++++++++++++++++++++++++ include/linux/radeon_gpu.h | 92 ++++++++++++ 4 files changed, 442 insertions(+), 0 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index acf2df0..0a00588 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -8,6 +8,11 @@ config GPU bool default y +config GPU_RADEON + tristate "ATI Radeon gpu driver" + select GPU + default n + config FIRMWARE_EDID bool "Enable firmware EDID" default y diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 49c5d86..5634725 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -7,6 +7,8 @@ # Each configuration option enables a li obj-y += fb_notify.o obj-$(CONFIG_GPU) += gpu_layer.o obj-$(CONFIG_FB) += fb.o +obj-$(CONFIG_GPU_RADEON) += radeon_gpu.o + fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ modedb.o fbcvt.o fb-objs := $(fb-y) diff --git a/drivers/video/radeon_gpu.c b/drivers/video/radeon_gpu.c new file mode 100644 index 0000000..2eecf3b --- /dev/null +++ b/drivers/video/radeon_gpu.c @@ -0,0 +1,343 @@ +/* + * drivers/video/radeon_gpu.c + * + * Copyright (C) 2006 Dave Airlie + * + * some of this code is derived from the radeon framebuffer code + * Copyright 2003 Ben. Herrenschmidt + * Copyright 2000 Ani Joshi + */ +#include +#include +#include +#include +#include +#include + +#include +#include + +#include