diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 15:22:46 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 15:22:46 +0000 |
commit | 14d50bef67881716bf750a1ddee9d2bb429e75f1 (patch) | |
tree | 04eee3d5bded517b4bd83757c509692a26488471 /hw/virtio-console.c | |
parent | a7c4996b1fd05b4d74758810d0bf0987f22e8712 (diff) | |
download | qemu-14d50bef67881716bf750a1ddee9d2bb429e75f1.zip qemu-14d50bef67881716bf750a1ddee9d2bb429e75f1.tar.gz qemu-14d50bef67881716bf750a1ddee9d2bb429e75f1.tar.bz2 |
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>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6439 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/virtio-console.c')
-rw-r--r-- | hw/virtio-console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtio-console.c b/hw/virtio-console.c index deae76d..ce20c91 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -126,7 +126,8 @@ void *virtio_console_init(PCIBus *bus, CharDriverState *chr) 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)); |