kvm tools: Move PCI_MAX_DEVICES to pci.h

Other pieces of kvmtool may be interested in PCI_MAX_DEVICES.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Matt Evans
2011-12-09 17:55:30 +11:00
committed by Will Deacon
parent 19e6c8b89b
commit 9d755a3619
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@
#include <linux/pci_regs.h>
#include <linux/msi.h>
#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
-1
View File
@@ -5,7 +5,6 @@
#include <assert.h>
#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];