mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 19:41:48 +00:00
fix scsimon and bus (#66)
This commit is contained in:
parent
abee51d4b8
commit
a3e770ddf3
|
@ -50,6 +50,7 @@ RASCSI = rascsi
|
|||
RASCTL = rasctl
|
||||
RASDUMP = rasdump
|
||||
SASIDUMP = sasidump
|
||||
SCSIMON = scsimon
|
||||
SCSISHARK = scsishark
|
||||
|
||||
SYSTEMD_CONF = /etc/systemd/system/rascsi.service
|
||||
|
|
|
@ -209,7 +209,7 @@ void FASTCALL SCSIDEV::Arbitration()
|
|||
|
||||
// If we arent' in the bus-free phase, we can't progress....
|
||||
// just return.
|
||||
ctrl.bus->Aquire();
|
||||
((GPIOBUS*)ctrl.bus)->Aquire();
|
||||
if(ctrl.bus->GetBSY() || ctrl.bus->GetSEL())
|
||||
{
|
||||
LOGWARN("Unable to start arbitration. BSY:%d SEL:%d",(int)ctrl.bus->GetBSY(), (int)ctrl.bus->GetSEL());
|
||||
|
@ -229,7 +229,7 @@ void FASTCALL SCSIDEV::Arbitration()
|
|||
SysTimer::SleepNsec(SCSI_DELAY_ARBITRATION_DELAY_NS);
|
||||
|
||||
// Check if a higher SCSI ID is asserted. If so, we lost arbitration
|
||||
ctrl.bus->Aquire();
|
||||
((GPIOBUS*)ctrl.bus)->Aquire();
|
||||
data_lines = ctrl.bus->GetDAT();
|
||||
LOGDEBUG("After Arbitration, data lines are %04X", (int)data_lines);
|
||||
data_lines >>= (ctrl.id + 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user