From 3b3923976dfb93a08cfcc957c6760086514b8381 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 22 Jul 2006 06:27:09 +1000 Subject: [PATCH] gpu/radeon: add a radeon lowlevel GPU driver (04/07) 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 8512aa8..6602752 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -8,6 +8,11 @@ config GPU bool default n +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 a882fdd..2650f02 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -6,6 +6,8 @@ # Each configuration option enables a li obj-$(CONFIG_GPU) += gpu_layer.o +obj-$(CONFIG_GPU_RADEON) += radeon_gpu.o + obj-$(CONFIG_FB) += fb.o fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ modedb.o fbcvt.o 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