From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Evans Subject: [PATCH V2 18/23] kvm tools: Move PCI_MAX_DEVICES to pci.h Date: Fri, 09 Dec 2011 17:55:30 +1100 Message-ID: <4EE1B0E2.6030304@ozlabs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: penberg@kernel.org, asias.hejun@gmail.com, levinsasha928@gmail.com, gorcunov@gmail.com To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Return-path: In-Reply-To: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Other pieces of kvmtool may be interested in PCI_MAX_DEVICES. Signed-off-by: Matt Evans --- tools/kvm/include/kvm/pci.h | 1 + tools/kvm/pci.c | 1 - 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/include/kvm/pci.h b/tools/kvm/include/kvm/pci.h index f71af0b..b578ad7 100644 --- a/tools/kvm/include/kvm/pci.h +++ b/tools/kvm/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/tools/kvm/pci.c b/tools/kvm/pci.c index d1afc05..920e13e 100644 --- a/tools/kvm/pci.c +++ b/tools/kvm/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];