mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General refactor and cleanup.
This commit is contained in:
@@ -56,8 +56,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.ReadBuffer
|
||||
};
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -82,8 +89,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.ReadBufferDma
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.Dma,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -130,8 +144,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.Dma,
|
||||
AtaTransferRegister.SectorCount,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -168,8 +189,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -197,8 +225,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -254,8 +289,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -302,8 +344,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -333,8 +382,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
@@ -56,8 +56,15 @@ public partial class Device
|
||||
Feature = 0x0000
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -106,8 +113,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.Dma,
|
||||
AtaTransferRegister.SectorCount,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -139,8 +153,15 @@ public partial class Device
|
||||
LbaLowCurrent = logAddress
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -172,8 +193,15 @@ public partial class Device
|
||||
LbaLowCurrent = logAddress
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.Dma,
|
||||
AtaTransferRegister.SectorCount,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -212,8 +240,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -241,8 +276,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -291,8 +333,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
|
||||
@@ -83,8 +83,15 @@ public partial class Device
|
||||
SectorCount = 1
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -133,8 +140,15 @@ public partial class Device
|
||||
Command = retry ? (byte)AtaCommands.ReadDmaRetry : (byte)AtaCommands.ReadDma
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.Dma,
|
||||
AtaTransferRegister.SectorCount,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -171,8 +185,15 @@ public partial class Device
|
||||
Sector = sector
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -221,8 +242,15 @@ public partial class Device
|
||||
Sector = sector
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -271,8 +299,15 @@ public partial class Device
|
||||
Sector = sector
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
@@ -303,8 +338,15 @@ public partial class Device
|
||||
Sector = sector
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -349,8 +391,15 @@ public partial class Device
|
||||
Feature = (byte)feature
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -373,8 +422,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.DoorLock
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -397,8 +453,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.DoorUnLock
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -421,8 +484,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.MediaEject
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
true,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
@@ -77,8 +77,15 @@ public partial class Device
|
||||
Sector = 1
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, 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;
|
||||
|
||||
|
||||
@@ -61,8 +61,15 @@ public partial class Device
|
||||
|
||||
registers.DeviceHead += 0x40;
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -94,8 +101,15 @@ public partial class Device
|
||||
DeviceHead = (byte)(head & 0x0F)
|
||||
};
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -120,8 +134,15 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.RequestSense
|
||||
};
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
@@ -79,8 +79,15 @@ public partial class Device
|
||||
Feature = feature
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
@@ -55,8 +55,15 @@ public partial class Device
|
||||
LbaMid = 0x4F
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -84,8 +91,15 @@ public partial class Device
|
||||
SectorCount = 0xF1
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -112,8 +126,15 @@ public partial class Device
|
||||
LbaMid = 0x4F
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -139,8 +160,15 @@ public partial class Device
|
||||
LbaMid = 0x4F
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -169,8 +197,15 @@ public partial class Device
|
||||
LbaLow = subcommand
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -198,8 +233,15 @@ public partial class Device
|
||||
LbaMid = 0x4F
|
||||
};
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -229,8 +271,15 @@ public partial class Device
|
||||
LbaLow = logAddress
|
||||
};
|
||||
|
||||
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.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
@@ -256,8 +305,15 @@ public partial class Device
|
||||
LbaMid = 0x4F
|
||||
};
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.NonData, AtaTransferRegister.NoTransfer,
|
||||
ref buffer, timeout, false, out duration, out bool sense);
|
||||
LastError = SendAtaCommand(registers,
|
||||
out statusRegisters,
|
||||
AtaProtocol.NonData,
|
||||
AtaTransferRegister.NoTransfer,
|
||||
ref buffer,
|
||||
timeout,
|
||||
false,
|
||||
out duration,
|
||||
out bool sense);
|
||||
|
||||
Error = LastError != 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user