From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6439] Add macro for virtio-console PCI device ID (Mark McLoughlin)
Date: Mon, 26 Jan 2009 15:22:46 +0000 [thread overview]
Message-ID: <E1LRTIU-0002P8-So@cvs.savannah.gnu.org> (raw)
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));
reply other threads:[~2009-01-26 18:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LRTIU-0002P8-So@cvs.savannah.gnu.org \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).