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 | 9be5dafe488088bcff8f8365bc7dd35d3dac5186 (patch) | |
tree | 9c01abd9c63a4b34b9408a4a379d74d7dab13fc1 /hw/versatilepb.c | |
parent | 86394e969de181d95f2f03e9c93e31e0b3e6c90f (diff) | |
download | qemu-9be5dafe488088bcff8f8365bc7dd35d3dac5186.zip |
LSI SCSI qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/versatilepb.c')
-rw-r--r-- | hw/versatilepb.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c index d9e1cfc81e..19b66bb402 100644 --- a/hw/versatilepb.c +++ b/hw/versatilepb.c @@ -163,7 +163,6 @@ static void versatile_init(ram_addr_t ram_size, ram_addr_t ram_offset; qemu_irq *pic; qemu_irq *sic; - void *scsi_hba; PCIBus *pci_bus; NICInfo *nd; int n; @@ -206,16 +205,10 @@ static void versatile_init(ram_addr_t ram_size, if (usb_enabled) { usb_ohci_init_pci(pci_bus, 3, -1); } - if (drive_get_max_bus(IF_SCSI) > 0) { - fprintf(stderr, "qemu: too many SCSI bus\n"); - exit(1); - } - scsi_hba = lsi_scsi_init(pci_bus, -1); - for (n = 0; n < LSI_MAX_DEVS; n++) { - index = drive_get_index(IF_SCSI, 0, n); - if (index == -1) - continue; - lsi_scsi_attach(scsi_hba, drives_table[index].bdrv, n); + n = drive_get_max_bus(IF_SCSI); + while (n >= 0) { + pci_create_simple(pci_bus, -1, "lsi53c895a"); + n--; } sysbus_create_simple("pl011", 0x101f1000, pic[12]); |