diff --git a/include/kvm/pci.h b/include/kvm/pci.h index f71af0b..b578ad7 100644 --- a/include/kvm/pci.h +++ b/include/kvm/pci.h @@ -6,6 +6,7 @@ #include #include +#define PCI_MAX_DEVICES 256 /* * PCI Configuration Mechanism #1 I/O ports. See Section 3.7.4.1. * ("Configuration Mechanism #1") of the PCI Local Bus Specification 2.1 for diff --git a/pci.c b/pci.c index d1afc05..920e13e 100644 --- a/pci.c +++ b/pci.c @@ -5,7 +5,6 @@ #include -#define PCI_MAX_DEVICES 256 #define PCI_BAR_OFFSET(b) (offsetof(struct pci_device_header, bar[b])) static struct pci_device_header *pci_devices[PCI_MAX_DEVICES];