search for: quirk_i82576_sriov

Displaying 1 result from an estimated 1 matches for "quirk_i82576_sriov".

2009 Apr 03
0
[PATCH] PCI: sync up the SR-IOV changes between Dom0 and upstream kernels
...clear Flash BAR flags. + * For Intel 82576 SR-IOV NIC, if BIOS doesn''t allocate resources for the + * SR-IOV BARs, zero the Flash BAR and program the SR-IOV BARs to use the + * old Flash Memory Space. */ -static void __devinit intel_82576_quirk(struct pci_dev *dev) +static void __devinit quirk_i82576_sriov(struct pci_dev *dev) { - int i, flags; + int pos, flags; u32 bar, start, size; if (PAGE_SIZE > 0x10000) return; - if (pci_read_config_dword(dev, 0x184, &bar)) + flags = pci_resource_flags(dev, 0); + if ((flags & PCI_BASE_ADDRESS_SPACE) != + PCI_BASE_ADDRESS_SPACE_MEMORY ||...