Separate virtio PCI code

Split the PCI host bindings from the VRing transport implementation.

Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
Paul Brook 2009-05-18 14:51:59 +01:00
parent d8ee7665bf
commit 53c25cea7d
14 changed files with 473 additions and 299 deletions

View file

@ -111,14 +111,14 @@ static void bamboo_init(ram_addr_t ram_size,
/* Add virtio block devices. */
while ((i = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) {
pci_create_simple(pcibus, -1, "virtio-blk");
pci_create_simple(pcibus, -1, "virtio-blk-pci");
unit_id++;
}
/* Add virtio console devices */
for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
if (virtcon_hds[i]) {
pci_create_simple(pcibus, -1, "virtio-console");
pci_create_simple(pcibus, -1, "virtio-console-pci");
}
}