diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2008-07-19 22:26:48 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-19 17:29:48 -0700 |
commit | f8d4f8a641d0b397c4e57beb8de8fd3812e07b18 (patch) | |
tree | 7b1df5fd8cfdfc20609385892c58aa6d81a57756 /com32/include/sys/pci.h | |
parent | 8502d91fbd68a145dd92981c0599961bcdc44e0b (diff) | |
download | syslinux-3.71-pre15.tar.gz syslinux-3.71-pre15.tar.xz syslinux-3.71-pre15.zip |
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
Diffstat (limited to 'com32/include/sys/pci.h')
-rw-r--r-- | com32/include/sys/pci.h | 10 |
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 { |