]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commitdiff
qemu-xen: Don't redefine libpci (3.1.7) defines.
authorJean Guyader <jean.guyader@eu.citrix.com>
Tue, 22 Nov 2011 18:49:15 +0000 (18:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 22 Nov 2011 18:49:15 +0000 (18:49 +0000)
These values are already defined by the libpci heders in the version
3.1.7.

PCI_STATUS_66MHZ
PCI_STATUS_RESERVED2
PCI_STATUS_FAST_BACK
PCI_MSIX_TABSIZE

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
hw/pci.h
hw/pt-msi.h

index e4cc79adf66b64321850a10f9ab8d35b41c8b10d..e2c1fd865c5bb9aa3e9bec5579413a238431b0a8 100644 (file)
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -177,9 +177,15 @@ typedef struct PCIIORegion {
 #define PCI_STATUS_RESERVED1   0x007
 #define PCI_STATUS_INT_STATUS  0x008
 #define PCI_STATUS_CAPABILITIES        0x010
+#ifndef PCI_STATUS_66MHZ
 #define PCI_STATUS_66MHZ       0x020
+#endif
+#ifndef PCI_STATUS_RESERVED2
 #define PCI_STATUS_RESERVED2   0x040
+#endif
+#ifndef PCI_STATUS_FAST_BACK
 #define PCI_STATUS_FAST_BACK   0x080
+#endif
 #define PCI_STATUS_DEVSEL      0x600
 
 #define PCI_STATUS_RESERVED_MASK_LO (PCI_STATUS_RESERVED1 | \
index 9664f8908cfdbb626734167b605ba2bad49190b3..108ac8ea13f382a5fc332e2135f7510de40ba196 100644 (file)
@@ -26,7 +26,9 @@
 /* MSI-X */
 #define  PCI_MSIX_ENABLE    0x8000
 #define  PCI_MSIX_MASK      0x4000
+#ifndef PCI_MSIX_TABSIZE
 #define  PCI_MSIX_TABSIZE   0x03ff
+#endif
 #define PCI_MSIX_TABLE      4
 #define PCI_MSIX_PBA        8
 #define  PCI_MSIX_BIR       0x7