From 42550fde7e16ac040fbd391bb2c65c3f5fa08d60 Mon Sep 17 00:00:00 2001 From: ths Date: Fri, 22 Dec 2006 16:34:12 +0000 Subject: SCSI emulation improvements, by Chuck Brazie. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2265 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'vl.h') diff --git a/vl.h b/vl.h index 5f13dcd..d3c56d4 100644 --- a/vl.h +++ b/vl.h @@ -1222,9 +1222,30 @@ int scsi_write_data(SCSIDevice *s, uint32_t tag); void scsi_cancel_io(SCSIDevice *s, uint32_t tag); uint8_t *scsi_get_buf(SCSIDevice *s, uint32_t tag); +enum scsi_host_adapters { + SCSI_LSI_53C895A +}; +enum scsi_devices { + SCSI_CDROM, + SCSI_DISK, + SCSI_NONE +}; +typedef enum scsi_host_adapters scsi_host_adapters; +typedef enum scsi_devices scsi_devices; +typedef struct SCSIDiskInfo { + scsi_host_adapters adapter; + int id; + scsi_devices device_type; +} SCSIDiskInfo; + +#define MAX_SCSI_DISKS 7 +extern BlockDriverState *bs_scsi_table[MAX_SCSI_DISKS]; +extern SCSIDiskInfo scsi_disks_info[MAX_SCSI_DISKS]; + /* lsi53c895a.c */ void lsi_scsi_attach(void *opaque, BlockDriverState *bd, int id); void *lsi_scsi_init(PCIBus *bus, int devfn); +extern int scsi_hba_lsi; // Count of scsi disks/cdrom using this lsi adapter /* integratorcp.c */ extern QEMUMachine integratorcp926_machine; -- cgit v1.1