]> Git Repo - qemu.git/commitdiff
ivshmem: use symbolic constant for PCI ID, add to pci-ids.txt
authorPaolo Bonzini <[email protected]>
Thu, 13 Dec 2012 09:19:37 +0000 (10:19 +0100)
committerMichael S. Tsirkin <[email protected]>
Tue, 8 Jan 2013 18:24:34 +0000 (20:24 +0200)
Due to disagreement on a name that is generic enough for hw/pci/pci.h,
the symbolic constants are placed in the .c files.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
docs/specs/pci-ids.txt
hw/ivshmem.c

index 2d5329af497c7f28e48519e5b452f7d43ea5baae..e76b196eb5f99c16285a00579d640168807a8101 100644 (file)
@@ -30,4 +30,6 @@ maintained as part of the virtio specification.
 1af4:1100  Used as PCI Subsystem ID for existing hardware devices emulated
            by qemu.
 
+1af4:1110  ivshmem device (shared memory, docs/specs/ivshmem_device_spec.txt)
+
 All other device IDs are reserved.
index fcf5d05bae7b375dca7c82f596be1c450af6b03a..c86fddd0b39e70ac070e434a176d69d9c300e5e3 100644 (file)
@@ -29,6 +29,9 @@
 #include <sys/mman.h>
 #include <sys/types.h>
 
+#define PCI_VENDOR_ID_IVSHMEM   PCI_VENDOR_ID_REDHAT_QUMRANET
+#define PCI_DEVICE_ID_IVSHMEM   0x1110
+
 #define IVSHMEM_IOEVENTFD   0
 #define IVSHMEM_MSI     1
 
@@ -800,8 +803,8 @@ static void ivshmem_class_init(ObjectClass *klass, void *data)
 
     k->init = pci_ivshmem_init;
     k->exit = pci_ivshmem_uninit;
-    k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
-    k->device_id = 0x1110;
+    k->vendor_id = PCI_VENDOR_ID_IVSHMEM;
+    k->device_id = PCI_DEVICE_ID_IVSHMEM;
     k->class_id = PCI_CLASS_MEMORY_RAM;
     dc->reset = ivshmem_reset;
     dc->props = ivshmem_properties;
This page took 0.029724 seconds and 4 git commands to generate.