qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6439] Add macro for virtio-console PCI device ID (Mark McL


From: Anthony Liguori
Subject: [Qemu-devel] [6439] Add macro for virtio-console PCI device ID (Mark McLoughlin)
Date: Mon, 26 Jan 2009 15:22:46 +0000

Revision: 6439
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6439
Author:   aliguori
Date:     2009-01-26 15:22:46 +0000 (Mon, 26 Jan 2009)

Log Message:
-----------
Add macro for virtio-console PCI device ID (Mark McLoughlin)

Also use the existing macro for the PCI vendor ID

Signed-off-by: Mark McLoughlin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/hw/pci.h
    trunk/hw/virtio-console.c

Modified: trunk/hw/pci.h
===================================================================
--- trunk/hw/pci.h      2009-01-26 15:22:41 UTC (rev 6438)
+++ trunk/hw/pci.h      2009-01-26 15:22:46 UTC (rev 6439)
@@ -16,6 +16,7 @@
 #define PCI_DEVICE_ID_VIRTIO_NET         0x1000
 #define PCI_DEVICE_ID_VIRTIO_BLOCK       0x1001
 #define PCI_DEVICE_ID_VIRTIO_BALLOON     0x1002
+#define PCI_DEVICE_ID_VIRTIO_CONSOLE     0x1003
 
 typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
                                 uint32_t address, uint32_t data, int len);

Modified: trunk/hw/virtio-console.c
===================================================================
--- trunk/hw/virtio-console.c   2009-01-26 15:22:41 UTC (rev 6438)
+++ trunk/hw/virtio-console.c   2009-01-26 15:22:46 UTC (rev 6439)
@@ -126,7 +126,8 @@
     VirtIOConsole *s;
 
     s = (VirtIOConsole *)virtio_init_pci(bus, "virtio-console",
-                                         6900, 0x1003,
+                                         PCI_VENDOR_ID_REDHAT_QUMRANET,
+                                         PCI_DEVICE_ID_VIRTIO_CONSOLE,
                                          0, VIRTIO_ID_CONSOLE,
                                          0x03, 0x80, 0x00,
                                          0, sizeof(VirtIOConsole));






reply via email to

[Prev in Thread] Current Thread [Next in Thread]