From: Michael Werner <werner@mrcoffee.engr.sgi.com>
To: linux-kernel@vger.kernel.org
Subject: [patch 2.6.10-mm2] agpgart: Add agp_find_bridge function
Date: Mon, 10 Jan 2005 12:12:33 -0800 (PST) [thread overview]
Message-ID: <200501102012.j0AKCXJr2075714@mrcoffee.engr.sgi.com> (raw)
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 *);
reply other threads:[~2005-01-10 20:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501102012.j0AKCXJr2075714@mrcoffee.engr.sgi.com \
--to=werner@mrcoffee.engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®