summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-05-24 19:04:47 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-05-24 19:04:47 +0000
commit9da7ff91f5e2cd428451ebd7477025e1dad7b716 (patch)
tree7fa65ea59a7c246bf7cb00211a6c4b4425f6809e /src/devices
parent7b095aa1d932099f11800efaf1a5f431e8c8acef (diff)
downloadcoreboot-9da7ff91f5e2cd428451ebd7477025e1dad7b716.tar.xz
added AGP support for AMD K8
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1568 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/pci_device.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c
index ec48e7f852..a185aae8d6 100644
--- a/src/devices/pci_device.c
+++ b/src/devices/pci_device.c
@@ -456,6 +456,17 @@ static void set_pci_ops(struct device *dev)
}
}
+#if 0
+ extern struct pci_driver generic_vga_driver;
+ /* TODO: Install generic VGA driver for VGA devices, base on the
+ * class ID */
+ if ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
+ printk_debug("setting up generic VGA driver\n");
+ dev->ops = generic_vga_driver.ops;
+ return;
+ }
+#endif
+
/* If I don't have a specific driver use the default operations */
switch(dev->hdr_type & 0x7f) { /* header type */
case PCI_HEADER_TYPE_NORMAL: /* standard header */