Add SCSI Write and Verify command to Zip drive.
This commit is contained in:
parent
0e37f08cb5
commit
d65368c0c0
2 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ void scsi_set_irq(uint8_t status);
|
||||||
#define SCSI_READ_10 0x28
|
#define SCSI_READ_10 0x28
|
||||||
#define SCSI_WRITE_10 0x2a
|
#define SCSI_WRITE_10 0x2a
|
||||||
#define SCSI_SEEK_10 0x2b
|
#define SCSI_SEEK_10 0x2b
|
||||||
|
#define SCSI_WRITE_AND_VERIFY 0x2e
|
||||||
#define SCSI_VERIFY_10 0x2f
|
#define SCSI_VERIFY_10 0x2f
|
||||||
#define SCSI_READ_BUFFER 0x3c
|
#define SCSI_READ_BUFFER 0x3c
|
||||||
#define SCSI_MODE_SENSE_10 0x5a
|
#define SCSI_MODE_SENSE_10 0x5a
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ static uint8_t scsi_zip_cmd_flags[0x100] =
|
||||||
[SCSI_READ_CAPACITY_10] = CHECK_READY,
|
[SCSI_READ_CAPACITY_10] = CHECK_READY,
|
||||||
[SCSI_WRITE_6] = CHECK_READY,
|
[SCSI_WRITE_6] = CHECK_READY,
|
||||||
[SCSI_WRITE_10] = CHECK_READY,
|
[SCSI_WRITE_10] = CHECK_READY,
|
||||||
|
[SCSI_WRITE_AND_VERIFY] = CHECK_READY,
|
||||||
[SCSI_VERIFY_10] = CHECK_READY,
|
[SCSI_VERIFY_10] = CHECK_READY,
|
||||||
[SCSI_FORMAT] = CHECK_READY,
|
[SCSI_FORMAT] = CHECK_READY,
|
||||||
[SCSI_RESERVE] = 0,
|
[SCSI_RESERVE] = 0,
|
||||||
|
|
@ -852,6 +853,7 @@ static int scsi_zip_command(uint8_t *cdb, void *p)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCSI_WRITE_10:
|
case SCSI_WRITE_10:
|
||||||
|
case SCSI_WRITE_AND_VERIFY:
|
||||||
if (data->read_only)
|
if (data->read_only)
|
||||||
{
|
{
|
||||||
pclog("zip read only\n");
|
pclog("zip read only\n");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue