search for: max_pci_devices

Displaying 2 results from an estimated 2 matches for "max_pci_devices".

2008 Jun 11
0
[PATCH] pci: fix off-by-one error and introduce MAX_PCI_FUNC
...ot;Probing bus 0x%02x... \n", bus); @@ -360,9 +360,9 @@ pci_bus_list->pci_bus[bus].pci_device_count = 0; pci_bus_list->count = 0;; - for (dev = 0; dev <= 0x1f; dev++) { - maxfunc = 0; - for (func = 0; func <= maxfunc; func++) { + for (dev = 0; dev < MAX_PCI_DEVICES; dev++) { + maxfunc = 1; + for (func = 0; func < maxfunc; func++) { a = pci_mkaddr(bus, dev, func, 0); did = pci_readl(a); @@ -374,7 +374,8 @@ hdrtype = pci_readb(a + 0x0e); if (hdrtype & 0x80) - maxfunc = 7; /* Multifunction device */ + /* Multifunction device */ +...
2008 Jul 13
4
[PATCH] pci: Introduce slot and function information
Introduce slot and function information to pci_device and fill them in pci_scan(). - Sebastian Index: syslinux-3.71-pre5-3-g852d962/com32/include/sys/pci.h =================================================================== --- syslinux-3.71-pre5-3-g852d962.orig/com32/include/sys/pci.h 2008-07-09 22:20:36.000000000 +0200 +++ syslinux-3.71-pre5-3-g852d962/com32/include/sys/pci.h 2008-07-09