From 90a20dbb2837f5ff05a9b19659ba1aa218cbd2de Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 27 Jan 2011 15:56:35 +0900 Subject: pci: replace the magic, 256, for the maximum of devfn Introduce symbol PCI_SLOT_MAX for the # of slots, and replace the magic, 256. Signed-off-by: Isaku Yamahata Signed-off-by: Michael S. Tsirkin --- hw/pci_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/pci_internals.h') diff --git a/hw/pci_internals.h b/hw/pci_internals.h index e3c93a3..efaefcd 100644 --- a/hw/pci_internals.h +++ b/hw/pci_internals.h @@ -22,7 +22,7 @@ struct PCIBus { pci_hotplug_fn hotplug; DeviceState *hotplug_qdev; void *irq_opaque; - PCIDevice *devices[256]; + PCIDevice *devices[PCI_SLOT_MAX * PCI_FUNC_MAX]; PCIDevice *parent_dev; target_phys_addr_t mem_base; -- cgit v1.1