From ff9b8a59e23846feb090163cff831d9124497830 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 31 Oct 2023 00:25:26 -0700 Subject: [PATCH] scsibus: Change control lines for MESSAGE_IN. --- devices/common/scsi/scsibus.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devices/common/scsi/scsibus.cpp b/devices/common/scsi/scsibus.cpp index 2ae4993..a75f0d7 100644 --- a/devices/common/scsi/scsibus.cpp +++ b/devices/common/scsi/scsibus.cpp @@ -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)