pci: Move NVIDIA vendor id to the rest of ids
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 14 Feb 2019 05:14:40 +0000 (16:14 +1100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 22 Feb 2019 15:51:31 +0000 (10:51 -0500)
sPAPR code will use it too so move it from VFIO to the common code.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190214051440.59167-1-aik@ozlabs.ru>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vfio/pci-quirks.c
include/hw/pci/pci_ids.h

index eae31c74d69f60798d590d7764c2c880f27093a9..40a12001f58027ab620b04a1a25df021b3212fbb 100644 (file)
@@ -526,8 +526,6 @@ static void vfio_probe_ati_bar2_quirk(VFIOPCIDevice *vdev, int nr)
  * note it for future reference.
  */
 
-#define PCI_VENDOR_ID_NVIDIA                    0x10de
-
 /*
  * Nvidia has several different methods to get to config space, the
  * nouveu project has several of these documented here:
index eeb33018adba33d22fae0e1819110542dc44c62a..0abe27a53a38a5361290e8b2e9440062a4a31762 100644 (file)
 
 #define PCI_VENDOR_ID_SYNOPSYS           0x16C3
 
+#define PCI_VENDOR_ID_NVIDIA             0x10de
+
 #endif