mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-18 21:07:52 +00:00
Updated SASI LUN handling
This commit is contained in:
parent
ae458c8988
commit
dcb1cc079e
@ -647,11 +647,8 @@ void SASIDEV::Error(sense_key sense_key, asc asc, status status)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Logical Unit
|
|
||||||
DWORD lun = GetEffectiveLun();
|
|
||||||
|
|
||||||
// Set status and message
|
// Set status and message
|
||||||
ctrl.status = (lun << 5) | status;
|
ctrl.status = (GetEffectiveLun() << 5) | status;
|
||||||
|
|
||||||
// status phase
|
// status phase
|
||||||
Status();
|
Status();
|
||||||
@ -1085,6 +1082,6 @@ void SASIDEV::FlushUnit()
|
|||||||
|
|
||||||
int SASIDEV::GetEffectiveLun() const
|
int SASIDEV::GetEffectiveLun() const
|
||||||
{
|
{
|
||||||
return (ctrl.cmd[1] >> 5) & 0x01;
|
return (ctrl.cmd[1] >> 5) & 0x07;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user