mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
LSI SCSI qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
86394e969d
commit
9be5dafe48
6 changed files with 26 additions and 52 deletions
12
hw/pc.c
12
hw/pc.c
|
@ -1122,19 +1122,11 @@ static void pc_init1(ram_addr_t ram_size,
|
|||
|
||||
if (pci_enabled) {
|
||||
int max_bus;
|
||||
int bus, unit;
|
||||
void *scsi;
|
||||
int bus;
|
||||
|
||||
max_bus = drive_get_max_bus(IF_SCSI);
|
||||
|
||||
for (bus = 0; bus <= max_bus; bus++) {
|
||||
scsi = lsi_scsi_init(pci_bus, -1);
|
||||
for (unit = 0; unit < LSI_MAX_DEVS; unit++) {
|
||||
index = drive_get_index(IF_SCSI, bus, unit);
|
||||
if (index == -1)
|
||||
continue;
|
||||
lsi_scsi_attach(scsi, drives_table[index].bdrv, unit);
|
||||
}
|
||||
pci_create_simple(pci_bus, -1, "lsi53c895a");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue