From 7d8406be69ce936839300159fcf2a0c4863f7f08 Mon Sep 17 00:00:00 2001 From: pbrook Date: Tue, 30 May 2006 01:48:12 +0000 Subject: PCI SCSI HBA emulation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1946 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index f9a7e86371..b722190277 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -838,6 +838,24 @@ static void pc_init1(int ram_size, int vga_ram_size, int boot_device, if (pci_enabled && acpi_enabled) { piix4_pm_init(pci_bus, piix3_devfn + 3); } + +#if 0 + /* ??? Need to figure out some way for the user to + specify SCSI devices. */ + if (pci_enabled) { + void *scsi; + BlockDriverState *bdrv; + + scsi = lsi_scsi_init(pci_bus, -1); + bdrv = bdrv_new("scsidisk"); + bdrv_open(bdrv, "scsi_disk.img", 0); + lsi_scsi_attach(scsi, bdrv, -1); + bdrv = bdrv_new("scsicd"); + bdrv_open(bdrv, "scsi_cd.iso", 0); + bdrv_set_type_hint(bdrv, BDRV_TYPE_CDROM); + lsi_scsi_attach(scsi, bdrv, -1); + } +#endif /* must be done after all PCI devices are instanciated */ /* XXX: should be done in the Bochs BIOS */ if (pci_enabled) { -- cgit v1.2.3