mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add transfer size to ATA(PI) IDENTIFY (PACKET) DEVICE commands. Fixes #761
This commit is contained in:
@@ -74,11 +74,12 @@ public partial class Device
|
||||
|
||||
var registers = new AtaRegistersChs
|
||||
{
|
||||
Command = (byte)AtaCommands.IdentifyDevice
|
||||
Command = (byte)AtaCommands.IdentifyDevice,
|
||||
SectorCount = 1
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
@@ -73,11 +73,12 @@ public partial class Device
|
||||
|
||||
var registers = new AtaRegistersChs
|
||||
{
|
||||
Command = (byte)AtaCommands.IdentifyPacketDevice
|
||||
Command = (byte)AtaCommands.IdentifyPacketDevice,
|
||||
Sector = 1
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user