Displaying 3 results from an estimated 3 matches for "pci_device_count".
2008 Jun 11
0
[PATCH] pci: fix off-by-one error and introduce MAX_PCI_FUNC
In include/sys/pci.h we have
#define MAX_PCI_BUSES 255
and
struct pci_bus_list {
struct pci_bus pci_bus[MAX_PCI_BUSES];
uint8_t count;
};
And in lib/pci/scan.c
for (bus = 0; bus <= MAX_PCI_BUSES; bus++) {
pci_bus_list->pci_bus[bus].pci_device_count = 0;
Fix possible overflows and introduce MAX_PCI_FUNC.
- Sebastian
Index: syslinux-20080611/com32/lib/pci/scan.c
===================================================================
--- syslinux-20080611.orig/com32/lib/pci/scan.c 2008-06-11 20:28:35.000000000 +0200
+++ syslinux-20080611/com32/li...
2008 Aug 01
0
[PATCH] pcitest: fix compile warnings
...s;
for (bus=0; bus<pci_bus_list->count;bus++) {
struct pci_bus pci_bus = pci_bus_list->pci_bus[bus];
printf("\nPCI BUS No %d:\n", pci_bus.id);
if (display_pci_devices) {
- int pci_dev;
+ unsigned int pci_dev;
for (pci_dev=0; pci_dev < pci_bus.pci_device_count; pci_dev++) {
struct pci_device pci_device=*(pci_bus.pci_device[pci_dev]);
printf("%02x:%02x.%01x %s :%04x:%04x[%04x:%04x]) %s:%s\n",
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