From 4b8877af56420f23aa882f9f68d9b79ec4440ab1 Mon Sep 17 00:00:00 2001 From: akuker Date: Sat, 18 Jul 2020 15:33:45 -0500 Subject: [PATCH] Restore common version of this file --- src/raspberrypi/disk.cpp | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/raspberrypi/disk.cpp b/src/raspberrypi/disk.cpp index c616e18..cda94ef 100644 --- a/src/raspberrypi/disk.cpp +++ b/src/raspberrypi/disk.cpp @@ -6404,12 +6404,12 @@ void FASTCALL SASIDEV::BusFree() // Phase Setting ctrl.phase = BUS::busfree; -////////////// // Set Signal lines -////////////// ctrl.bus->SetREQ(FALSE); -////////////// ctrl.bus->SetMSG(FALSE); -////////////// ctrl.bus->SetCD(FALSE); -////////////// ctrl.bus->SetIO(FALSE); -////////////// ctrl.bus->SetBSY(FALSE); + // Set Signal lines + ctrl.bus->SetREQ(FALSE); + ctrl.bus->SetMSG(FALSE); + ctrl.bus->SetCD(FALSE); + ctrl.bus->SetIO(FALSE); + ctrl.bus->SetBSY(FALSE); // Initialize status and message ctrl.status = 0x00; @@ -6490,10 +6490,10 @@ void FASTCALL SASIDEV::Command() // Phase Setting ctrl.phase = BUS::command; -////////// // Signal line operated by the target -////////// ctrl.bus->SetMSG(FALSE); -////////// ctrl.bus->SetCD(TRUE); -////////// ctrl.bus->SetIO(FALSE); + // Signal line operated by the target + ctrl.bus->SetMSG(FALSE); + ctrl.bus->SetCD(TRUE); + ctrl.bus->SetIO(FALSE); // Wait until target sets the following condition: // MSG = FALSE @@ -8114,13 +8114,12 @@ void FASTCALL SCSIDEV::BusFree() // Phase setting ctrl.phase = BUS::busfree; -////////// // Signal line -// We shouldn't be setting ANYTHING -////////// ctrl.bus->SetREQ(FALSE); -////////// ctrl.bus->SetMSG(FALSE); -////////// ctrl.bus->SetCD(FALSE); -////////// ctrl.bus->SetIO(FALSE); -////////// ctrl.bus->SetBSY(FALSE); + // Signal line + ctrl.bus->SetREQ(FALSE); + ctrl.bus->SetMSG(FALSE); + ctrl.bus->SetCD(FALSE); + ctrl.bus->SetIO(FALSE); + ctrl.bus->SetBSY(FALSE); // Initialize status and message ctrl.status = 0x00;