* [Qemu-devel] [6439] Add macro for virtio-console PCI device ID (Mark McLoughlin)
@ 2009-01-26 15:22 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-01-26 15:22 UTC (permalink / raw)
To: qemu-devel
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 <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-26 18:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 15:22 [Qemu-devel] [6439] Add macro for virtio-console PCI device ID (Mark McLoughlin) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).