lkml.org 
[lkml]   [2003]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[2.5.55] [PATCH] AGP: missing includes on Alpha
From
Date
Hi,

the following patch, which only adds some includes, is needed to
compile AGP support on Alpha. After that, it works fine with my AMD
Irongate chipset and a Radeon 7500 card.

--
Falk

diff -Nurp linux-2.5.55/drivers/char/agp/amd-k7-agp.c linux-2.5.55.hacked/drivers/char/agp/amd-k7-agp.c
--- linux-2.5.55/drivers/char/agp/amd-k7-agp.c 2003-01-09 05:04:28.000000000 +0100
+++ linux-2.5.55.hacked/drivers/char/agp/amd-k7-agp.c 2003-01-09 22:45:37.000000000 +0100
@@ -6,6 +6,10 @@
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/agp_backend.h>
+#include <linux/gfp.h>
+#include <linux/page-flags.h>
+#include <linux/mm.h>
+#include <asm/io.h>
#include "agp.h"

static int agp_try_unsupported __initdata = 0;
diff -Nurp linux-2.5.55/drivers/char/agp/backend.c linux-2.5.55.hacked/drivers/char/agp/backend.c
--- linux-2.5.55/drivers/char/agp/backend.c 2003-01-09 05:04:19.000000000 +0100
+++ linux-2.5.55.hacked/drivers/char/agp/backend.c 2003-01-09 22:48:16.000000000 +0100
@@ -34,6 +34,8 @@
#include <linux/miscdevice.h>
#include <linux/pm.h>
#include <linux/agp_backend.h>
+#include <linux/vmalloc.h>
+#include <asm/io.h>
#include "agp.h"

/* Due to XFree86 brain-damage, we can't go to 1.0 until they
diff -Nurp linux-2.5.55/drivers/char/agp/frontend.c linux-2.5.55.hacked/drivers/char/agp/frontend.c
--- linux-2.5.55/drivers/char/agp/frontend.c 2003-01-09 05:03:55.000000000 +0100
+++ linux-2.5.55.hacked/drivers/char/agp/frontend.c 2003-01-09 22:40:36.000000000 +0100
@@ -34,7 +34,10 @@
#include <linux/miscdevice.h>
#include <linux/agp_backend.h>
#include <linux/agpgart.h>
+#include <linux/slab.h>
+#include <linux/mm.h>
#include <asm/uaccess.h>
+#include <asm/pgtable.h>

#include "agp.h"

diff -Nurp linux-2.5.55/drivers/char/agp/generic.c linux-2.5.55.hacked/drivers/char/agp/generic.c
--- linux-2.5.55/drivers/char/agp/generic.c 2003-01-09 05:04:00.000000000 +0100
+++ linux-2.5.55.hacked/drivers/char/agp/generic.c 2003-01-09 22:42:20.000000000 +0100
@@ -34,6 +34,8 @@
#include <linux/miscdevice.h>
#include <linux/pm.h>
#include <linux/agp_backend.h>
+#include <linux/vmalloc.h>
+#include <asm/io.h>
#include "agp.h"

__u32 *agp_gatt_table;
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.028 / U:3.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site