Use macros for virtio-net PCI vendor/device IDs (Mark McLoughlin)
Gerd added these macros a while back. 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@6438 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
36bee1e3a4
commit
a7c4996b1f
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user