Implement SCSI remote packet.

This commit is contained in:
2019-10-17 22:15:01 +01:00
parent 357631b203
commit 8c0e01aa2c
4 changed files with 1017 additions and 64 deletions

View File

@@ -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