diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-10 11:46:13 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-10 11:46:13 +0000 |
commit | f158755072f368d539b31851b308bec985893abb (patch) | |
tree | 1b6ec88e3fa8bc71e1b5ed4db75adc0a6dd37c42 | |
parent | bf8c534200b7e69e87725a0d49eb94c0da744f91 (diff) | |
download | hqemu-f158755072f368d539b31851b308bec985893abb.zip hqemu-f158755072f368d539b31851b308bec985893abb.tar.gz |
Restore SCSI disk attaching, by Igor Kovalenko.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2313 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/sun4m.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -262,6 +262,13 @@ static void sun4m_init(int ram_size, int vga_ram_size, int boot_device, slavio_serial_init(PHYS_JJ_SER, PHYS_JJ_SER_IRQ, serial_hds[1], serial_hds[0]); fdctrl_init(PHYS_JJ_FLOPPY_IRQ, 0, 1, PHYS_JJ_FDC, fd_table); main_esp = esp_init(bs_table, PHYS_JJ_ESP, dma); + + for (i = 0; i < MAX_DISKS; i++) { + if (bs_table[i]) { + esp_scsi_attach(main_esp, bs_table[i], i); + } + } + slavio_misc = slavio_misc_init(PHYS_JJ_SLAVIO, PHYS_JJ_ME_IRQ); cs_init(PHYS_JJ_CS, PHYS_JJ_CS_IRQ, slavio_intctl); sparc32_dma_set_reset_data(dma, main_esp, main_lance); |