mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Devices/Device/AtaCommands/Ata28.cs:
Correct SEEK command to not transfer anything. * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: Correct SEEK command to not transfer anything. Added differentiation between READ and READ WITH RETRIES for CHS mode. Changed blocksize to unsigned on READ LONG. * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: Change MCPT enable and disable commands to use CHS registers. * DiscImageChef.Devices/Linux/Command.cs: Linux kernel granularity for SG_IO is only 1ms, use .NET counters for faster times. Solves "infinity" speeds on SSDs. * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef/Commands/DeviceReport.cs: Added support for ATA devices. * DiscImageChef/Commands/DeviceInfo.cs: Added support for Media Card Pass Through detection and information.
This commit is contained in:
@@ -43,10 +43,10 @@ namespace DiscImageChef.Devices
|
||||
{
|
||||
public partial class Device
|
||||
{
|
||||
public bool EnableMediaCardPassThrough(out AtaErrorRegistersLBA28 statusRegisters, uint lba, uint timeout, out double duration)
|
||||
public bool EnableMediaCardPassThrough(out AtaErrorRegistersCHS statusRegisters, uint timeout, out double duration)
|
||||
{
|
||||
byte[] buffer = new byte[0];
|
||||
AtaRegistersLBA28 registers = new AtaRegistersLBA28();
|
||||
AtaRegistersCHS registers = new AtaRegistersCHS();
|
||||
bool sense;
|
||||
|
||||
registers.command = (byte)AtaCommands.CheckMediaCardType;
|
||||
@@ -61,10 +61,10 @@ namespace DiscImageChef.Devices
|
||||
return sense;
|
||||
}
|
||||
|
||||
public bool DisableMediaCardPassThrough(out AtaErrorRegistersLBA28 statusRegisters, uint lba, uint timeout, out double duration)
|
||||
public bool DisableMediaCardPassThrough(out AtaErrorRegistersCHS statusRegisters, uint timeout, out double duration)
|
||||
{
|
||||
byte[] buffer = new byte[0];
|
||||
AtaRegistersLBA28 registers = new AtaRegistersLBA28();
|
||||
AtaRegistersCHS registers = new AtaRegistersCHS();
|
||||
bool sense;
|
||||
|
||||
registers.command = (byte)AtaCommands.CheckMediaCardType;
|
||||
|
||||
Reference in New Issue
Block a user