From: Jean Guyader Subject: [PATCH] qemu-xen: Don't redefine libpci (3.1.7) defines. Date: Tue, 22 Nov 2011 18:47:12 +0000 Message-ID: <1321987632-13156-1-git-send-email-jean.guyader@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------true" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian.Jackson@eu.citrix.com, Jean Guyader List-Id: xen-devel@lists.xenproject.org --------------true Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: 8bit 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 --- hw/pci.h | 6 ++++++ hw/pt-msi.h | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) --------------true Content-Type: text/x-patch; name="0001-qemu-xen-Don-t-redefine-libpci-3.1.7-defines.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-qemu-xen-Don-t-redefine-libpci-3.1.7-defines.patch" diff --git a/hw/pci.h b/hw/pci.h index e4cc79a..e2c1fd8 100644 --- 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 | \ diff --git a/hw/pt-msi.h b/hw/pt-msi.h index 9664f89..108ac8e 100644 --- a/hw/pt-msi.h +++ b/hw/pt-msi.h @@ -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 --------------true Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------true--