mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
ESP SCSI qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
418dcf5b7d
commit
cfb9de9ce4
4 changed files with 61 additions and 70 deletions
|
@ -129,8 +129,6 @@ void mips_jazz_init (ram_addr_t ram_size,
|
|||
qemu_irq *rc4030, *i8259;
|
||||
rc4030_dma *dmas;
|
||||
void* rc4030_opaque;
|
||||
void *scsi_hba;
|
||||
int hd;
|
||||
int s_rtc, s_dma_dummy;
|
||||
NICInfo *nd;
|
||||
PITState *pit;
|
||||
|
@ -226,15 +224,9 @@ void mips_jazz_init (ram_addr_t ram_size,
|
|||
}
|
||||
|
||||
/* SCSI adapter */
|
||||
scsi_hba = esp_init(0x80002000, 0,
|
||||
rc4030_dma_read, rc4030_dma_write, dmas[0],
|
||||
rc4030[5], &esp_reset);
|
||||
for (n = 0; n < ESP_MAX_DEVS; n++) {
|
||||
hd = drive_get_index(IF_SCSI, 0, n);
|
||||
if (hd != -1) {
|
||||
esp_scsi_attach(scsi_hba, drives_table[hd].bdrv, n);
|
||||
}
|
||||
}
|
||||
esp_init(0x80002000, 0,
|
||||
rc4030_dma_read, rc4030_dma_write, dmas[0],
|
||||
rc4030[5], &esp_reset);
|
||||
|
||||
/* Floppy */
|
||||
if (drive_get_max_bus(IF_FLOPPY) >= MAX_FD) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue