diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:07 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:07 +0100 |
commit | cf21e106cd9b34a12a533191932a8a08a1f5ebe4 (patch) | |
tree | ab36cc019c2ff8908586a7fcb12b869ccb76cc46 /hw/virtio.c | |
parent | 9d07d7579bcaf01e05c511c63d091ed2ac310091 (diff) |
Virtio-net qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/virtio.c')
-rw-r--r-- | hw/virtio.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index 78c7637658..21108c5c2b 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -757,22 +757,16 @@ void virtio_cleanup(VirtIODevice *vdev) qemu_free(vdev->vq); } -VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name, +VirtIODevice *virtio_init_pci(PCIDevice *pci_dev, const char *name, uint16_t vendor, uint16_t device, uint16_t subvendor, uint16_t subdevice, uint16_t class_code, uint8_t pif, - size_t config_size, size_t struct_size) + size_t config_size) { VirtIODevice *vdev; - PCIDevice *pci_dev; uint8_t *config; uint32_t size; - pci_dev = pci_register_device(bus, name, struct_size, - -1, NULL, NULL); - if (!pci_dev) - return NULL; - vdev = to_virtio_device(pci_dev); vdev->status = 0; |