aboutsummaryrefslogtreecommitdiff
path: root/hw/versatilepb.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-30 01:48:12 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-30 01:48:12 +0000
commit7d8406be69ce936839300159fcf2a0c4863f7f08 (patch)
tree8cb181bcb166f9934d1f06f273467adcc00ce44a /hw/versatilepb.c
parent0fc5c15a4fad2dac00126c802554d9ca33c4ccc7 (diff)
PCI SCSI HBA emulation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1946 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/versatilepb.c')
-rw-r--r--hw/versatilepb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index c22e38a96d..28ec1374ba 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -343,6 +343,7 @@ static void versatile_init(int ram_size, int vga_ram_size, int boot_device,
CPUState *env;
void *pic;
void *sic;
+ void *scsi_hba;
PCIBus *pci_bus;
NICInfo *nd;
int n;
@@ -377,6 +378,12 @@ static void versatile_init(int ram_size, int vga_ram_size, int boot_device,
if (usb_enabled) {
usb_ohci_init(pci_bus, 3, -1);
}
+ scsi_hba = lsi_scsi_init(pci_bus, -1);
+ for (n = 0; n < MAX_DISKS; n++) {
+ if (bs_table[n]) {
+ lsi_scsi_attach(scsi_hba, bs_table[n], n);
+ }
+ }
pl011_init(0x101f1000, pic, 12, serial_hds[0]);
pl011_init(0x101f2000, pic, 13, serial_hds[1]);