summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
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 */