summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-13 10:19:36 +0100
committerMichael S. Tsirkin <mst@redhat.com>2013-01-08 20:24:34 +0200
commit13744bd0a054bc7a4b1432cc8facd23d41a9806e (patch)
treee3f0c693dbfa5e18844dd6737001431f5a477ea7 /hw
parent4ea9296c0738e7885e27f463bb6bcbab32b6ef7a (diff)
downloadqemu-13744bd0a054bc7a4b1432cc8facd23d41a9806e.tar.gz
qemu-13744bd0a054bc7a4b1432cc8facd23d41a9806e.tar.bz2
qemu-13744bd0a054bc7a4b1432cc8facd23d41a9806e.zip
virtio-9p: use symbolic constant, add to pci-ids.txt
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/9pfs/virtio-9p-device.c2
-rw-r--r--hw/pci/pci.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c
index 6761bce9dc..f16ccfbed1 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -170,7 +170,7 @@ static void virtio_9p_class_init(ObjectClass *klass, void *data)
k->init = virtio_9p_init_pci;
k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
- k->device_id = 0x1009;
+ k->device_id = PCI_DEVICE_ID_VIRTIO_9P;
k->revision = VIRTIO_PCI_ABI_VERSION;
k->class_id = 0x2;
dc->props = virtio_9p_properties;
diff --git a/hw/pci/pci.h b/hw/pci/pci.h
index 72927e3149..ed098ced6b 100644
--- a/hw/pci/pci.h
+++ b/hw/pci/pci.h
@@ -77,6 +77,7 @@
#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003
#define PCI_DEVICE_ID_VIRTIO_SCSI 0x1004
#define PCI_DEVICE_ID_VIRTIO_RNG 0x1005
+#define PCI_DEVICE_ID_VIRTIO_9P 0x1009
#define FMT_PCIBUS PRIx64