summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2008-07-19 22:26:48 +0200
committerH. Peter Anvin <hpa@zytor.com>2008-07-19 17:29:48 -0700
commitf8d4f8a641d0b397c4e57beb8de8fd3812e07b18 (patch)
tree7b1df5fd8cfdfc20609385892c58aa6d81a57756
parent8502d91fbd68a145dd92981c0599961bcdc44e0b (diff)
downloadsyslinux-f8d4f8a641d0b397c4e57beb8de8fd3812e07b18.tar.gz
pci: resize pci_device arrayssyslinux-3.71-pre15
pci_bus->pci_device get's populated with functions so it should take up to MAX_PCI_DEVICES * MAX_PCI_FUNC elements. pci_device_list->pci_device get's populated with functions for every possible pci bus. Therefore it should take up to MAX_PCI_BUS * MAX_PCI_DEVICES * MAX_PCI_FUNC elements. Also adjust count variable types. - Sebastian
-rw-r--r--com32/include/sys/pci.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/com32/include/sys/pci.h b/com32/include/sys/pci.h
index 3b07ae7c..adb25632 100644
--- a/com32/include/sys/pci.h
+++ b/com32/include/sys/pci.h
@@ -29,18 +29,18 @@ struct pci_device {
struct pci_bus {
uint16_t id;
- struct pci_device *pci_device[MAX_PCI_DEVICES];
- uint8_t pci_device_count;
+ struct pci_device *pci_device[MAX_PCI_DEVICES * MAX_PCI_FUNC];
+ uint32_t pci_device_count;
};
struct pci_device_list {
- struct pci_device pci_device[MAX_PCI_DEVICES];
- uint8_t count;
+ struct pci_device pci_device[MAX_PCI_BUSES * MAX_PCI_DEVICES * MAX_PCI_FUNC];
+ uint32_t count;
};
struct pci_bus_list {
struct pci_bus pci_bus[MAX_PCI_BUSES];
- uint8_t count;
+ uint32_t count;
};
struct match {