Commit 340b5b9c authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Optimise PCI searching in K8 GART driver.

parent 6ff792c7
...@@ -254,7 +254,7 @@ static int cache_nbs (void) ...@@ -254,7 +254,7 @@ static int cache_nbs (void)
int i = 0; int i = 0;
/* cache pci_devs of northbridges. */ /* cache pci_devs of northbridges. */
while ((loop_dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, loop_dev)) != NULL) { while ((loop_dev = pci_find_device(PCI_VENDOR_ID_AMD, 0x1103, loop_dev)) != NULL) {
if (loop_dev->bus->number == 0 && if (loop_dev->bus->number == 0 &&
PCI_FUNC(loop_dev->devfn) == 3 && PCI_FUNC(loop_dev->devfn) == 3 &&
PCI_SLOT(loop_dev->devfn) >= 24 && PCI_SLOT(loop_dev->devfn) >= 24 &&
...@@ -333,7 +333,7 @@ static int __init agp_amdk8_probe(struct pci_dev *pdev, ...@@ -333,7 +333,7 @@ static int __init agp_amdk8_probe(struct pci_dev *pdev,
#else #else
{ {
struct pci_dev *loop_dev = NULL; struct pci_dev *loop_dev = NULL;
while ((loop_dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, loop_dev)) != NULL) { while ((loop_dev = pci_find_device(PCI_VENDOR_ID_AMD, 0x1103, loop_dev)) != NULL) {
if (loop_dev->bus->number == 0 && if (loop_dev->bus->number == 0 &&
PCI_SLOT(loop_dev->devfn) == 24 && PCI_SLOT(loop_dev->devfn) == 24 &&
PCI_FUNC(loop_dev->devfn) == 3) { PCI_FUNC(loop_dev->devfn) == 3) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment