Skip to contentSkip to conversation

Use macros for virtio-net PCI vendor/device IDs

PATCH RESEND Anthony Liguori 1 participant 1 message Jan 26, 2009 1 message not in the archive

lore
Share & tools
lore

Anthony Liguori

author Applied
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Mark McLoughlin

Gerd added these macros a while back.

Applied all. Thanks.

Regards,

Anthony Liguori

Quoted 21 lines
---
 hw/virtio-net.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
hw/virtio-net.c +3 -1
index 54c0030..b13914a 100644
@@ -320,7 +320,9 @@ void virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn)
     VirtIONet *n;
     static int virtio_net_id;
 
-    n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000,
+    n = (VirtIONet *)virtio_init_pci(bus, "virtio-net",
+                                     PCI_VENDOR_ID_REDHAT_QUMRANET,
+                                     PCI_DEVICE_ID_VIRTIO_NET,
                                      0, VIRTIO_ID_NET,
                                      0x02, 0x00, 0x00,
                                      sizeof(struct virtio_net_config),