If a pci-2-pci bridge supports hot-plug functionality but there are no devices
connected to it, reserve IO/mem in order to be able to attach devices
later. Do not waste space, use minimum allowed.
Signed-off-by: Marcel Apfelbaum marce...@redhat.com
---
src/fw/pciinit.c | 3 +++
src/hw/pci.c
On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote:
If a pci-2-pci bridge supports hot-plug functionality but there are no devices
connected to it, reserve IO/mem in order to be able to attach devices
later. Do not waste space, use minimum allowed.
Signed-off-by: Marcel
On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote:
[...]
+for (i = 0, cap = pci_config_readb(pci-bdf, PCI_CAPABILITY_LIST);
+ (i = 0xff) cap;
+ i++, cap = pci_config_readb(pci-bdf, cap + PCI_CAP_LIST_NEXT))
+if (pci_config_readb(pci-bdf, cap +
On Thu, 2014-04-10 at 12:45 -0400, Kevin O'Connor wrote:
On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote:
[...]
+for (i = 0, cap = pci_config_readb(pci-bdf, PCI_CAPABILITY_LIST);
+ (i = 0xff) cap;
+ i++, cap = pci_config_readb(pci-bdf, cap +