struct pci_bus *bus;
struct pci_dev *bridge;
u16 cmd;
int pci_class = pdev->class >> 8;
/* Only deal with VGA class devices */
if ((pdev->class >> 8) != PCI_CLASS_DISPLAY_VGA)
if (pci_class != PCI_CLASS_DISPLAY_VGA &&
pci_class != PCI_CLASS_DISPLAY_3D)
return false;
/* Allocate structure */