mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implement SCSI remote packet.
This commit is contained in:
@@ -401,8 +401,24 @@ namespace DiscImageChef.Devices
|
||||
else
|
||||
{
|
||||
Type = remote.GetDeviceType();
|
||||
// TODO: Get INQUIRY if SCSI or ATAPI
|
||||
// TODO: Get SD/MMC registers if SD/MMC
|
||||
|
||||
switch (Type)
|
||||
{
|
||||
case DeviceType.ATAPI:
|
||||
case DeviceType.SCSI:
|
||||
scsiSense = ScsiInquiry(out inqBuf, out _);
|
||||
break;
|
||||
case DeviceType.SecureDigital:
|
||||
case DeviceType.MMC:
|
||||
if (!remote.GetSdhciRegisters(out cachedCsd, out cachedCid, out cachedOcr, out cachedScr))
|
||||
{
|
||||
Type = DeviceType.SCSI;
|
||||
ScsiType = PeripheralDeviceTypes.DirectAccess;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#region SecureDigital / MultiMediaCard
|
||||
|
||||
Reference in New Issue
Block a user