Fixed once and for all the DOS CD-ROM bugs in the BT-54x SCSI adapter.

Added notes regarding NT 3.1 297.1 and 340.1's setup bugs with the Adaptec driver in the BT-54x SCSI adapter.
Bugfixes to the SCSI layer (SCSIReset())
This commit is contained in:
TC1995
2016-12-27 18:48:38 +01:00
parent 547185fd7f
commit df78ce0529
5 changed files with 122 additions and 108 deletions

View File

@@ -244,20 +244,18 @@ extern int cdrom_sector_size, cdrom_sector_ismsf;
#define SCSI_PHASE_BUS_FREE ( 8 )
#define SCSI_PHASE_SELECT ( 9 )
#define BUFFER_LEN 262144
struct
{
{
uint32_t buffer_size;
uint32_t pos;
uint8_t *Cdb;
uint8_t CmdBuffer[BUFFER_LEN];
uint8_t CmdBuffer[262144];
uint32_t CmdBufferLength;
int LunType;
uint32_t InitLength;
} SCSIDevices[7];
extern void SCSIReset(uint8_t Id);
extern void SCSIReset(void);
uint32_t SCSICDROMModeSense(uint8_t *buf, uint32_t pos, uint8_t type);
uint8_t SCSICDROMSetProfile(uint8_t *buf, uint8_t *index, uint16_t profile);