lkml.org 
[lkml]   [2005]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2.6.10-mm2] agpgart: Add agp_find_bridge function
This patch gives non-generic platforms a method for using
platform specific agp_find_bridge functions.

Signed-off-by: Mike Werner <werner@sgi.com>
---

drivers/char/agp/backend.c | 5 ++++-
include/linux/agp_backend.h | 2 ++
2 files changed, 6 insertions(+), 1 deletion(-)

# This is a BitKeeper generated diff -Nru style patch.
#
# Add agp_find_bridge
#
diff -Nru a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c
--- a/drivers/char/agp/backend.c 2005-01-10 09:21:20 -08:00
+++ b/drivers/char/agp/backend.c 2005-01-10 09:21:20 -08:00
@@ -50,6 +50,9 @@
.minor = AGPGART_VERSION_MINOR,
};

+struct agp_bridge_data *(*agp_find_bridge)(struct pci_dev *) =
+ &agp_generic_find_bridge;
+
struct agp_bridge_data *agp_bridge;
LIST_HEAD(agp_bridges);
EXPORT_SYMBOL(agp_bridge);
@@ -63,7 +66,7 @@
{
struct agp_bridge_data *bridge;

- bridge = agp_generic_find_bridge(pdev);
+ bridge = agp_find_bridge(pdev);

if (!bridge)
return NULL;
diff -Nru a/include/linux/agp_backend.h b/include/linux/agp_backend.h
--- a/include/linux/agp_backend.h 2005-01-10 09:21:20 -08:00
+++ b/include/linux/agp_backend.h 2005-01-10 09:21:20 -08:00
@@ -94,6 +94,8 @@
extern struct agp_bridge_data *agp_bridge;
extern struct list_head agp_bridges;

+extern struct agp_bridge_data *(*agp_find_bridge)(struct pci_dev *);
+
extern void agp_free_memory(struct agp_memory *);
extern struct agp_memory *agp_allocate_memory(struct agp_bridge_data *, size_t, u32);
extern int agp_copy_info(struct agp_bridge_data *, struct agp_kern_info *);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.062 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site