Rev 2787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 4692 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | t = pci_alloc_dev(a); |
27 | t = pci_alloc_dev(a); |
28 | t->bus = bus; |
28 | t->bus = bus; |
29 | for (dev = 0; dev < 32; dev++) { |
29 | for (dev = 0; dev < 32; dev++) { |
30 | t->dev = dev; |
30 | t->dev = dev; |
31 | multi = 0; |
31 | multi = 0; |
32 | for (t->func = 0; !t->func || multi && t->func < 8; |
32 | for (t->func = 0; !t->func || (multi && t->func < 8); |
33 | t->func++) { |
33 | t->func++) { |
34 | u32 vd = pci_read_long(t, PCI_VENDOR_ID); |
34 | u32 vd = pci_read_long(t, PCI_VENDOR_ID); |
35 | struct pci_dev *d; |
35 | struct pci_dev *d; |
36 | 36 | ||
37 | if (!vd || vd == 0xffffffff) |
37 | if (!vd || vd == 0xffffffff) |