[Spice-commits] Branch 'spice.v11' - 2 commits - hw/qxl.c spice-display.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Thu Jul 8 07:31:36 PDT 2010


 hw/qxl.c        |   20 ++++++++------------
 spice-display.c |    4 ----
 2 files changed, 8 insertions(+), 16 deletions(-)

New commits:
commit da0679e54ee1e64c68c95041387e0f9a4ba9c08e
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Jul 8 16:29:27 2010 +0200

    qxl: pci rev fixups

diff --git a/hw/qxl.c b/hw/qxl.c
index 1e3d023..28d66a3 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -511,10 +511,6 @@ static const QXLInterface qxl_interface = {
     .base.major_version      = SPICE_INTERFACE_QXL_MAJOR,
     .base.minor_version      = SPICE_INTERFACE_QXL_MINOR,
 
-    .pci_vendor              = REDHAT_PCI_VENDOR_ID,
-    .pci_id                  = QXL_DEVICE_ID,
-    .pci_revision            = QXL_REVISION,
-
     .attache_worker          = interface_attach_worker,
     .set_compression_level   = interface_set_compression_level,
     .set_mm_time             = interface_set_mm_time,
@@ -1136,16 +1132,16 @@ static int qxl_init(PCIDevice *dev)
     qxl->generation = 1;
 
     switch (qxl->revision) {
-    case 1: /* qxl-1 */
-        pci_device_id  = 0x0100;
-        pci_device_rev = 1;
+    case 1: /* spice 0.4 -- qxl-1 */
+        pci_device_id  = QXL_DEVICE_ID_STABLE;
+        pci_device_rev = QXL_REVISION_STABLE_V04;
         break;
-    case 2: /* qxl-2 */
-        pci_device_id  = 0x0100;
-        pci_device_rev = 2;
+    case 2: /* spice 0.6 -- qxl-2 */
+        pci_device_id  = QXL_DEVICE_ID_STABLE;
+        pci_device_rev = QXL_REVISION_STABLE_V06;
         break;
-    default: /* unstable */
-        pci_device_id  = 0x01ff;
+    default: /* experimental */
+        pci_device_id  = QXL_DEVICE_ID_DEVEL;
         pci_device_rev = 1;
         break;
     }
commit 7850fa3dd5b36e807843665fe7ad9701449e5802
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Jul 8 16:29:15 2010 +0200

    spice-display: pci rev fixups

diff --git a/spice-display.c b/spice-display.c
index a749e64..2ccb050 100644
--- a/spice-display.c
+++ b/spice-display.c
@@ -334,10 +334,6 @@ static const QXLInterface dpy_interface = {
     .base.major_version      = SPICE_INTERFACE_QXL_MAJOR,
     .base.minor_version      = SPICE_INTERFACE_QXL_MINOR,
 
-    .pci_vendor              = REDHAT_PCI_VENDOR_ID,
-    .pci_id                  = QXL_DEVICE_ID,
-    .pci_revision            = QXL_REVISION,
-
     .attache_worker          = interface_attach_worker,
     .set_compression_level   = interface_set_compression_level,
     .set_mm_time             = interface_set_mm_time,


More information about the Spice-commits mailing list