mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +00:00
scsihd: Make seek and rewind illegal.
This commit is contained in:
parent
5a54b6a761
commit
ec01993d84
@ -75,7 +75,7 @@ void ScsiHardDisk::process_command() {
|
||||
test_unit_ready();
|
||||
break;
|
||||
case ScsiCommand::REWIND:
|
||||
rewind();
|
||||
this->illegal_command(cmd);
|
||||
break;
|
||||
case ScsiCommand::REQ_SENSE:
|
||||
alloc_len = cmd[4];
|
||||
@ -112,8 +112,7 @@ void ScsiHardDisk::process_command() {
|
||||
this->switch_phase(ScsiPhase::DATA_OUT);
|
||||
break;
|
||||
case ScsiCommand::SEEK_6:
|
||||
lba = ((cmd[1] & 0x1F) << 16) + (cmd[2] << 8) + cmd[3];
|
||||
seek(lba);
|
||||
this->illegal_command(cmd);
|
||||
break;
|
||||
case ScsiCommand::VERIFY_6:
|
||||
this->illegal_command(cmd);
|
||||
@ -396,14 +395,6 @@ void ScsiHardDisk::write(uint32_t lba, uint16_t transfer_len, uint8_t cmd_len) {
|
||||
};
|
||||
}
|
||||
|
||||
void ScsiHardDisk::seek(uint32_t lba) {
|
||||
// No-op
|
||||
}
|
||||
|
||||
void ScsiHardDisk::rewind() {
|
||||
// No-op
|
||||
}
|
||||
|
||||
void ScsiHardDisk::read_buffer() {
|
||||
uint8_t mode = this->cmd_buf[1];
|
||||
uint32_t alloc_len = (this->cmd_buf[6] << 24) | (this->cmd_buf[7] << 16) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user