unsigned int id;
};
-static struct pci_devices devices[64];
+#define MAX_PCI_DEVICES 64
+static struct pci_devices devices[MAX_PCI_DEVICES];
static int devices_index;
/* Number of entries to show in the list */
unsigned int val;
unsigned char hdr;
- for (slot = 0; slot < 0x1f; slot++) {
+ for (slot = 0; slot < 0x20; slot++) {
for (func = 0; func < 8; func++) {
pcidev_t dev = PCI_DEV(bus, slot, func);
continue;
/* FIXME: Remove this arbitrary limitation. */
- if (devices_index >= 64)
+ if (devices_index >= MAX_PCI_DEVICES)
return;
- devices[devices_index].device =
+ devices[devices_index].device =
PCI_DEV(bus, slot, func);
devices[devices_index++].id = val;