scsibus: Change control lines for MESSAGE_IN.

This commit is contained in:
joevt 2023-10-31 00:25:26 -07:00 committed by dingusdev
parent 6e4544450e
commit ff9b8a59e2
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,9 @@ int ScsiBus::switch_phase(int id, int new_phase)
case ScsiPhase::MESSAGE_OUT:
this->release_ctrl_line(id, SCSI_CTRL_CD | SCSI_CTRL_MSG);
break;
case ScsiPhase::MESSAGE_IN:
this->release_ctrl_line(id, SCSI_CTRL_CD | SCSI_CTRL_MSG | SCSI_CTRL_IO);
break;
}
// enter new phase (low-level)
@ -161,6 +164,9 @@ int ScsiBus::switch_phase(int id, int new_phase)
case ScsiPhase::MESSAGE_OUT:
this->assert_ctrl_line(id, SCSI_CTRL_CD | SCSI_CTRL_MSG);
break;
case ScsiPhase::MESSAGE_IN:
this->assert_ctrl_line(id, SCSI_CTRL_CD | SCSI_CTRL_MSG | SCSI_CTRL_IO);
break;
}
// switch the bus to the new phase (high-level)