Added preliminary Adaptec 154x emulation, needs fixing in the Read 10 command.

Made ATAPI derived from SCSI.
Added proper S/G emulation for SCSI DMA.
Added SCSI CD-ROM emulation, preserving all the former ATAPI commands as well.
This commit is contained in:
TC1995
2016-11-12 15:06:38 +01:00
parent acb06e5a17
commit 0f035b42ea
28 changed files with 3163 additions and 789 deletions

View File

@@ -2,12 +2,12 @@
see COPYING for more details
*/
#include "ibm.h"
#include "ide.h"
#include "cdrom.h"
#include "cdrom-ioctl.h"
int cdrom_drive;
static ATAPI null_atapi;
static CDROM null_cdrom;
void cdrom_null_audio_callback(int16_t *output, int len)
{
@@ -101,7 +101,7 @@ void cdrom_null_reset()
int cdrom_null_open(char d)
{
atapi = &null_atapi;
cdrom = &null_cdrom;
return 0;
}
@@ -118,7 +118,7 @@ static int null_is_track_audio(uint32_t pos, int ismsf)
return 0;
}
static ATAPI null_atapi =
static CDROM null_cdrom =
{
null_ready,
null_medium_changed,