diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-22 16:34:12 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-22 16:34:12 +0000 |
commit | 42550fde7e16ac040fbd391bb2c65c3f5fa08d60 (patch) | |
tree | 7e592c6013287a3e70ec65296b35613b212583b0 /vl.h | |
parent | 62ee021121dea0b08b7e2f7c741cb417fc392bb2 (diff) |
SCSI emulation improvements, by Chuck Brazie.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2265 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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; |