| Previous | 199869 Revisions | Next |
| r17731 Saturday 8th September, 2012 at 19:27:44 UTC by smf |
|---|
| removed test ready command as scsidev already handles it. (nw) |
| [src/emu/machine] | scsibus.c scsibus.h |
| r17730 | r17731 | |
|---|---|---|
| 271 | 271 | // Check for locally executed commands, and if found execute them |
| 272 | 272 | switch (command[0]) |
| 273 | 273 | { |
| 274 | // Test ready | |
| 275 | case SCSI_CMD_TEST_READY: | |
| 276 | LOG(1,"SCSIBUS: test_ready\n"); | |
| 277 | command_local=1; | |
| 278 | xfer_count=0; | |
| 279 | data_last=xfer_count; | |
| 280 | bytes_left=0; | |
| 281 | devices[last_id]->SetPhase(SCSI_PHASE_STATUS); | |
| 282 | break; | |
| 283 | ||
| 284 | 274 | // Recalibrate drive |
| 285 | 275 | case SCSI_CMD_RECALIBRATE: |
| 286 | 276 | LOG(1,"SCSIBUS: Recalibrate drive\n"); |
| r17730 | r17731 | |
|---|---|---|
| 45 | 45 | #define ADAPTEC_BUF_SIZE 1024 |
| 46 | 46 | |
| 47 | 47 | // scsidev |
| 48 | #define SCSI_CMD_TEST_READY 0x00 | |
| 49 | 48 | #define SCSI_CMD_RECALIBRATE 0x01 |
| 50 | 49 | #define SCSI_CMD_REQUEST_SENSE 0x03 |
| 51 | 50 | #define SCSI_CMD_MODE_SELECT 0x15 |
| Previous | 199869 Revisions | Next |