mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
2314 lines
83 KiB
C#
2314 lines
83 KiB
C#
using System;
|
|
|
|
namespace DiscImageChef.Devices
|
|
{
|
|
public static class Enums
|
|
{
|
|
#region ATA Commands
|
|
public enum AtaCommands : byte
|
|
{
|
|
#region Commands defined on Western Digital WD1000 Winchester Disk Controller
|
|
/// <summary>
|
|
/// Formats a track
|
|
/// </summary>
|
|
FormatTrack = 0x50,
|
|
/// <summary>
|
|
/// Reads sectors
|
|
/// </summary>
|
|
ReadOld = 0x20,
|
|
/// <summary>
|
|
/// Reads sectors using DMA
|
|
/// </summary>
|
|
ReadDmaOld = 0x28,
|
|
/// <summary>
|
|
/// Calibrates the position of the heads
|
|
/// Includes all commands from 0x10 to 0x1F
|
|
/// </summary>
|
|
Restore = 0x10,
|
|
/// <summary>
|
|
/// Seeks to a certain cylinder
|
|
/// </summary>
|
|
Seek = 0x70,
|
|
/// <summary>
|
|
/// Writes sectors
|
|
/// </summary>
|
|
WriteOld = 0x30,
|
|
#endregion Commands defined on Western Digital WD1000 Winchester Disk Controller
|
|
|
|
#region Commands defined on ATA rev. 4c
|
|
/// <summary>
|
|
/// Acknowledges media change
|
|
/// </summary>
|
|
AckMediaChange = 0xDB,
|
|
/// <summary>
|
|
/// Sends vendor-specific information that may be required in order to pass diagnostics
|
|
/// </summary>
|
|
PostBoot = 0xDC,
|
|
/// <summary>
|
|
/// Prepares a removable drive to respond to boot
|
|
/// </summary>
|
|
PreBoot = 0xDD,
|
|
/// <summary>
|
|
/// Checks drive power mode
|
|
/// </summary>
|
|
CheckPowerMode = 0xE5,
|
|
/// <summary>
|
|
/// Checks drive power mode
|
|
/// </summary>
|
|
CheckPowerModeAlternate = 0x98,
|
|
/// <summary>
|
|
/// Locks the door of the drive
|
|
/// </summary>
|
|
DoorLock = 0xDE,
|
|
/// <summary>
|
|
/// Unlocks the door of the drive
|
|
/// </summary>
|
|
DoorUnLock = 0xDF,
|
|
/// <summary>
|
|
/// Executes internal drive diagnostics
|
|
/// </summary>
|
|
ExecuteDriveDiagnostic = 0x90,
|
|
/// <summary>
|
|
/// Gets a sector containing drive identification and capabilities
|
|
/// </summary>
|
|
IdentifyDrive = 0xEC,
|
|
/// <summary>
|
|
/// Requests the drive to enter idle status
|
|
/// </summary>
|
|
Idle = 0xE3,
|
|
/// <summary>
|
|
/// Requests the drive to enter idle status
|
|
/// </summary>
|
|
IdleAlternate = 0x97,
|
|
/// <summary>
|
|
/// Requests the drive to enter idle status immediately
|
|
/// </summary>
|
|
IdleImmediate = 0xE1,
|
|
/// <summary>
|
|
/// Requests the drive to enter idle status immediately
|
|
/// </summary>
|
|
IdleImmediateAlternate = 0x95,
|
|
/// <summary>
|
|
/// Changes heads and sectors per cylinder for the drive
|
|
/// </summary>
|
|
InitializeDriveParameters = 0x91,
|
|
/// <summary>
|
|
/// Does nothing
|
|
/// </summary>
|
|
Nop = 0x00,
|
|
/// <summary>
|
|
/// Reads sectors using PIO transfer
|
|
/// </summary>
|
|
Read = 0x21,
|
|
/// <summary>
|
|
/// Reads the content of the drive's buffer
|
|
/// </summary>
|
|
ReadBuffer = 0xE4,
|
|
/// <summary>
|
|
/// Reads sectors using DMA transfer
|
|
/// </summary>
|
|
ReadDma = 0xC9,
|
|
/// <summary>
|
|
/// Reads sectors using DMA transfer, retrying on error
|
|
/// </summary>
|
|
ReadDmaRetry = 0xC8,
|
|
/// <summary>
|
|
/// Reads a sector including ECC bytes without checking them
|
|
/// </summary>
|
|
ReadLong = 0x23,
|
|
/// <summary>
|
|
/// Reads a sector including ECC bytes without checking them, retrying on error
|
|
/// </summary>
|
|
ReadLongRetry = 0x22,
|
|
/// <summary>
|
|
/// Reads multiple sectors generating interrupts at block transfers
|
|
/// </summary>
|
|
ReadMultiple = 0xC4,
|
|
/// <summary>
|
|
/// Reads sectors using PIO transfer, retrying on error
|
|
/// </summary>
|
|
ReadRetry = 0x20,
|
|
/// <summary>
|
|
/// Verifies sectors readability without transferring them
|
|
/// </summary>
|
|
ReadVerify = 0x41,
|
|
/// <summary>
|
|
/// Verifies sectors readability without transferring them, retrying on error
|
|
/// </summary>
|
|
ReadVerifyRetry = 0x40,
|
|
/// <summary>
|
|
/// Moves the heads to cylinder 0
|
|
/// </summary>
|
|
Recalibrate = Restore,
|
|
/// <summary>
|
|
/// Sets drive parameters
|
|
/// </summary>
|
|
SetFeatures = 0xEF,
|
|
/// <summary>
|
|
/// Enables <see cref="ReadMultiple"/> and <see cref="WriteMultiple"/> and sets the block length for these commands
|
|
/// </summary>
|
|
SetMultipleMode = 0xC6,
|
|
/// <summary>
|
|
/// Causes the drive to stop and sleep until a hardware or software reset
|
|
/// </summary>
|
|
Sleep = 0xE6,
|
|
/// <summary>
|
|
/// Causes the drive to stop and sleep until a hardware or software reset
|
|
/// </summary>
|
|
SleepAlternate = 0x99,
|
|
/// <summary>
|
|
/// Sets the drive to enter Standby mode
|
|
/// </summary>
|
|
Standby = 0xE2,
|
|
/// <summary>
|
|
/// Sets the drive to enter Standby mode
|
|
/// </summary>
|
|
StandbyAlternate = 0x96,
|
|
/// <summary>
|
|
/// Sets the drive to enter Standby mode, immediately
|
|
/// </summary>
|
|
StandbyImmediate = 0xE0,
|
|
/// <summary>
|
|
/// Sets the drive to enter Standby mode, immediately
|
|
/// </summary>
|
|
StandbyImmediateAlternate = 0x94,
|
|
/// <summary>
|
|
/// Writes sectors using PIO transfer
|
|
/// </summary>
|
|
Write = 0x31,
|
|
/// <summary>
|
|
/// Writes data to the drive's sector buffer
|
|
/// </summary>
|
|
WriteBuffer = 0xE8,
|
|
/// <summary>
|
|
/// Writes sectors using DMA transfer
|
|
/// </summary>
|
|
WriteDma = 0xCB,
|
|
/// <summary>
|
|
/// Writes sectors using DMA transfer, retrying on error
|
|
/// </summary>
|
|
WriteDmaRetry = 0xCA,
|
|
/// <summary>
|
|
/// Writes sectors with custom ECC
|
|
/// </summary>
|
|
WriteLong = 0x33,
|
|
/// <summary>
|
|
/// Writes sectors with custom ECC, retrying on error
|
|
/// </summary>
|
|
WriteLongRetry = 0x32,
|
|
/// <summary>
|
|
/// Writes several sectors at once setting interrupts on end of block
|
|
/// </summary>
|
|
WriteMultiple = 0xC5,
|
|
/// <summary>
|
|
/// Writes the same data to several sector
|
|
/// </summary>
|
|
WriteSame = 0xE9,
|
|
/// <summary>
|
|
/// Writes sectors using PIO transfer, retrying on error
|
|
/// </summary>
|
|
WriteRetry = 0x30,
|
|
/// <summary>
|
|
/// Writes sectors verifying them immediately after write
|
|
/// </summary>
|
|
WriteVerify = 0x3C,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_8x = 0x80,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_9A = 0x9A,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_C0 = 0xC0,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_C1 = 0xC1,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_C2 = 0xC2,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_C3 = 0xC3,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F0 = 0xF0,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F1 = 0xF1,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F2 = 0xF2,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F3 = 0xF3,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F4 = 0xF4,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F5 = 0xF5,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F6 = 0xF6,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F7 = 0xF7,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F8 = 0xF8,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_F9 = 0xF9,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FA = 0xFA,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FB = 0xFB,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FC = 0xFC,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FD = 0xFD,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FE = 0xFE,
|
|
/// <summary>
|
|
/// Unknown vendor command
|
|
/// </summary>
|
|
Vendor_FF = 0xFF,
|
|
#endregion Commands defined on ATA rev. 4c
|
|
|
|
#region Commands defined on ATA-2 rev. 4c
|
|
/// <summary>
|
|
/// Alters the device microcode
|
|
/// </summary>
|
|
DownloadMicrocode = 0x92,
|
|
/// <summary>
|
|
/// Ejects the removable medium on the device
|
|
/// </summary>
|
|
MediaEject = 0xED,
|
|
#endregion Commands defined on ATA-2 rev. 4c
|
|
|
|
#region Commands defined on ATA-3 rev. 7b
|
|
/// <summary>
|
|
/// Gets a sector containing drive identification and capabilities
|
|
/// </summary>
|
|
IdentifyDriveDma = 0xEE,
|
|
/// <summary>
|
|
/// Disables the security lock
|
|
/// </summary>
|
|
SecurityDisablePassword = 0xF6,
|
|
/// <summary>
|
|
/// Enables usage of <see cref="SecurityEraseUnit"/> command
|
|
/// </summary>
|
|
SecurityErasePrepare = 0xF3,
|
|
/// <summary>
|
|
/// Erases all user data and isables the security lock
|
|
/// </summary>
|
|
SecurityEraseUnit = 0xF4,
|
|
/// <summary>
|
|
/// Sets the security freeze lock preventing any security command from working until hardware reset
|
|
/// </summary>
|
|
SecurityFreezeLock = 0xF5,
|
|
/// <summary>
|
|
/// Sets the device user or master password
|
|
/// </summary>
|
|
SecuritySetPassword = 0xF1,
|
|
/// <summary>
|
|
/// Unlocks device
|
|
/// </summary>
|
|
SecurityUnlock = 0xF2,
|
|
/// <summary>
|
|
/// SMART operations
|
|
/// </summary>
|
|
Smart = 0xB0,
|
|
#endregion Commands defined on ATA-3 rev. 7b
|
|
|
|
#region Commands defined on CompactFlash Specification
|
|
/// <summary>
|
|
/// Pre-erases and conditions data sectors
|
|
/// </summary>
|
|
EraseSectors = 0xC0,
|
|
/// <summary>
|
|
/// Requests extended error information
|
|
/// </summary>
|
|
RequestSense = 0x03,
|
|
/// <summary>
|
|
/// Provides a way to determine the exact number of times a sector has been erases and programmed
|
|
/// </summary>
|
|
TranslateSector = 0x87,
|
|
/// <summary>
|
|
/// For CompactFlash cards that do not support security mode, this commands is equal to <see cref="Nop"/>
|
|
/// For those that do, this command is equal to <see cref="SecurityFreezeLock"/>
|
|
/// </summary>
|
|
WearLevel = 0xF5,
|
|
/// <summary>
|
|
/// Writes a block of sectors without erasing them previously
|
|
/// </summary>
|
|
WriteMultipleWithoutErase = 0xCD,
|
|
/// <summary>
|
|
/// Writes sectors without erasing them previously
|
|
/// </summary>
|
|
WriteWithoutErase = 0x38,
|
|
#endregion Commands defined on CompactFlash Specification
|
|
|
|
#region Commands defined on ATA/ATAPI-4 rev. 18
|
|
/// <summary>
|
|
/// Resets a device
|
|
/// </summary>
|
|
DeviceReset = 0x08,
|
|
/// <summary>
|
|
/// Requests the device to flush the write cache and write it to the media
|
|
/// </summary>
|
|
FlushCache = 0xE7,
|
|
/// <summary>
|
|
/// Gets media status
|
|
/// </summary>
|
|
GetMediaStatus = 0xDA,
|
|
/// <summary>
|
|
/// Gets a sector containing drive identification and capabilities, for ATA devices
|
|
/// </summary>
|
|
IdentifyDevice = IdentifyDrive,
|
|
/// <summary>
|
|
/// Gets a sector containing drive identification and capabilities, for ATAPI devices
|
|
/// </summary>
|
|
IdentifyPacketDevice = 0xA1,
|
|
/// <summary>
|
|
/// Locks the media on the device
|
|
/// </summary>
|
|
MediaLock = DoorLock,
|
|
/// <summary>
|
|
/// Unlocks the media on the device
|
|
/// </summary>
|
|
MediaUnLock = DoorUnLock,
|
|
/// <summary>
|
|
/// Sends a command packet
|
|
/// </summary>
|
|
Packet = 0xA0,
|
|
/// <summary>
|
|
/// Queues a read of sectors
|
|
/// </summary>
|
|
ReadDmaQueued = 0xC7,
|
|
/// <summary>
|
|
/// Returns the native maximum address in factory default condition
|
|
/// </summary>
|
|
ReadNativeMaxAddress = 0xF8,
|
|
/// <summary>
|
|
/// Used to provide data transfer and/or status of a previous command (queue or packet)
|
|
/// </summary>
|
|
Service = 0xA2,
|
|
/// <summary>
|
|
/// Redefines the maximum user-accessible address space
|
|
/// </summary>
|
|
SetMaxAddress = 0xF9,
|
|
/// <summary>
|
|
/// Queues a write of sectors
|
|
/// </summary>
|
|
WriteDmaQueued = 0xCC,
|
|
#endregion Commands defined on ATA/ATAPI-4 rev. 18
|
|
|
|
#region Commands defined on ATA/ATAPI-6 rev. 3b
|
|
/// <summary>
|
|
/// Determines if the device supports the Media Card Pass Through Command feature set
|
|
/// </summary>
|
|
CheckMediaCardType = 0xD1,
|
|
/// <summary>
|
|
/// Device Configuration Overlay feature set
|
|
/// </summary>
|
|
DevideConfiguration = 0xB1,
|
|
/// <summary>
|
|
/// Requests the device to flush the write cache and write it to the media (48-bit)
|
|
/// </summary>
|
|
FlushCacheExt = 0xEA,
|
|
/// <summary>
|
|
/// Reads sectors using DMA transfer, retrying on error (48-bit)
|
|
/// </summary>
|
|
ReadDmaExt = 0x25,
|
|
/// <summary> (48-bit)
|
|
/// Queues a read of sectors
|
|
/// </summary>
|
|
ReadDmaQueuedExt = 0x26,
|
|
/// <summary>
|
|
/// Reads sectors using PIO transfer, retrying on error (48-bit)
|
|
/// </summary>
|
|
ReadExt = 0x24,
|
|
/// <summary>
|
|
/// Returns the indicated log to the host (48-bit)
|
|
/// </summary>
|
|
ReadLogExt = 0x2F,
|
|
/// <summary>
|
|
/// Reads multiple sectors generating interrupts at block transfers (48-bit)
|
|
/// </summary>
|
|
ReadMultipleExt = 0x29,
|
|
/// <summary>
|
|
/// Returns the native maximum address in factory default condition (48-bit)
|
|
/// </summary>
|
|
ReadNativeMaxAddressExt = 0x27,
|
|
/// <summary>
|
|
/// Verifies sectors readability without transferring them, retrying on error (48-bit)
|
|
/// </summary>
|
|
ReadVerifyExt = 0x42,
|
|
/// <summary>
|
|
/// Sends a SET MAX subcommand, <see cref="AtaSetMaxSubCommands"/>
|
|
/// </summary>
|
|
SetMaxCommands = 0xF9,
|
|
/// <summary>
|
|
/// Redefines the maximum user-accessible address space (48-bit)
|
|
/// </summary>
|
|
SetMaxAddressExt = 0x37,
|
|
/// <summary>
|
|
/// Writes sectors using DMA transfer, retrying on error (48-bit)
|
|
/// </summary>
|
|
WriteDmaExt = 0x35,
|
|
/// <summary>
|
|
/// Queues a write of sectors (48-bit)
|
|
/// </summary>
|
|
WriteDmaQueuedExt = 0x36,
|
|
/// <summary>
|
|
/// Writes sectors using PIO transfer, retrying on error (48-bit)
|
|
/// </summary>
|
|
WriteExt = 0x34,
|
|
/// <summary>
|
|
/// Writes data to the indicated log (48-bit)
|
|
/// </summary>
|
|
WriteLogExt = 0x3F,
|
|
/// <summary>
|
|
/// Writes several sectors at once setting interrupts on end of block (48-bit)
|
|
/// </summary>
|
|
WriteMultipleExt = 0x39,
|
|
#endregion Commands defined on ATA/ATAPI-6 rev. 3b
|
|
|
|
#region Commands defined on ATA/ATAPI-7 rev. 4b
|
|
/// <summary>
|
|
/// Configurates the operating parameters for a stream
|
|
/// </summary>
|
|
ConfigureStream = 0x51,
|
|
/// <summary>
|
|
/// Reads data on an alloted time using DMA
|
|
/// </summary>
|
|
ReadStreamDmaExt = 0x2A,
|
|
/// <summary>
|
|
/// Reads data on an alloted time using PIO
|
|
/// </summary>
|
|
ReadStreamExt = 0x2B,
|
|
/// <summary>
|
|
/// Writes data on an alloted time using DMA
|
|
/// </summary>
|
|
WriteStreamDmaExt = 0x3A,
|
|
/// <summary>
|
|
/// Writes data on an alloted time using PIO
|
|
/// </summary>
|
|
WriteStreamExt = 0x3B,
|
|
#endregion Commands defined on ATA/ATAPI-7 rev. 4b
|
|
|
|
#region Commands defined on ATA/ATAPI-8 rev. 3f
|
|
/// <summary>
|
|
/// Sends a Non Volatile Cache subcommand. <see cref="AtaNonVolatileCacheSubCommands"/>
|
|
/// </summary>
|
|
NonVolatileCacheCommand = 0xB6,
|
|
/// <summary>
|
|
/// Retrieves security protocol information or the results from <see cref="TrustedSend"/> commands
|
|
/// </summary>
|
|
TrustedReceive = 0x5C,
|
|
/// <summary>
|
|
/// Retrieves security protocol information or the results from <see cref="TrustedSend"/> commands, using DMA transfers
|
|
/// </summary>
|
|
TrustedReceiveDma = 0x5D,
|
|
/// <summary>
|
|
/// Sends one or more Security Protocol commands
|
|
/// </summary>
|
|
TrustedSend = 0x5E,
|
|
/// <summary>
|
|
/// Sends one or more Security Protocol commands, using DMA transfers
|
|
/// </summary>
|
|
TrustedSendDma = 0x5F,
|
|
/// <summary>
|
|
/// Writes sectors using DMA transfer, retrying on error (48-bit), not returning until the operation is complete
|
|
/// </summary>
|
|
WriteDmaFuaExt = 0x3D,
|
|
/// <summary>
|
|
/// Queues a write of sectors (48-bit), not returning until the operation is complete
|
|
/// </summary>
|
|
WriteDmaQueuedFuaExt = 0x3E,
|
|
/// <summary>
|
|
/// Writes several sectors at once setting interrupts on end of block (48-bit), not returning until the operation is complete
|
|
/// </summary>
|
|
WriteMultipleFuaExt = 0xCE,
|
|
/// <summary>
|
|
/// Writes a sector that will give an uncorrectable error on any read operation
|
|
/// </summary>
|
|
WriteUncorrectableExt = 0x45,
|
|
#endregion Commands defined on ATA/ATAPI-8 rev. 3f
|
|
|
|
#region Commands defined on ATA/ATAPI Command Set 2 (ACS-2) rev. 2
|
|
/// <summary>
|
|
/// Provides information for device optimization
|
|
/// In SSDs, this contains trimming
|
|
/// </summary>
|
|
DataSetManagement = 0x06,
|
|
/// <summary>
|
|
/// Alters the device microcode, using DMA transfers
|
|
/// </summary>
|
|
DownloadMicrocodeDma = 0x93,
|
|
/// <summary>
|
|
/// Reads the content of the drive's buffer, using DMA transfers
|
|
/// </summary>
|
|
ReadBufferDma = 0xE9,
|
|
/// <summary>
|
|
/// Reads sectors using NCQ
|
|
/// </summary>
|
|
ReadFpDmaQueued = 0x60,
|
|
/// <summary>
|
|
/// Returns the indicated log to the host (48-bit)
|
|
/// </summary>
|
|
ReadLogDmaExt = 0x47,
|
|
/// <summary>
|
|
/// Requests SPC-4 style error data
|
|
/// </summary>
|
|
RequestSenseDataExt = 0x0B,
|
|
SanitizeCommands = 0xB4,
|
|
/// <summary>
|
|
/// Executes a Security Protocol command that does not require a transfer of data
|
|
/// </summary>
|
|
TrustedNonData = 0x5B,
|
|
/// <summary>
|
|
/// Writes data to the drive's sector buffer, using DMA transfers
|
|
/// </summary>
|
|
WriteBufferDma = 0xE8,
|
|
/// <summary>
|
|
/// Writes sectors using NCQ
|
|
/// </summary>
|
|
WriteFpDmaQueued = 0x61,
|
|
#endregion Commands defined on ATA/ATAPI Command Set 2 (ACS-2) rev. 2
|
|
|
|
#region Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
/// <summary>
|
|
/// Sends <see cref="AtaNCQQueueManagementSubcommands"/>
|
|
/// </summary>
|
|
NCQQueueManagement = 0x63,
|
|
/// <summary>
|
|
/// Sets the device date and time
|
|
/// </summary>
|
|
SetDateAndTimeExt = 0x77
|
|
#endregion Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
}
|
|
#endregion ATA Commands
|
|
|
|
#region ATA SMART SubCommands
|
|
public enum AtaSmartSubCommands : byte
|
|
{
|
|
#region Commands defined on ATA-3 rev. 7b
|
|
/// <summary>
|
|
/// Disables all SMART capabilities
|
|
/// </summary>
|
|
Disable = 0xD9,
|
|
/// <summary>
|
|
/// Enables/disables SMART attribute autosaving
|
|
/// </summary>
|
|
EnableDisableAttributeAutosave = 0xD2,
|
|
/// <summary>
|
|
/// Enables all SMART capabilities
|
|
/// </summary>
|
|
Enable = 0xD8,
|
|
/// <summary>
|
|
/// Returns the device's SMART attributes thresholds
|
|
/// </summary>
|
|
ReadAttributeThresholds = 0xD1,
|
|
/// <summary>
|
|
/// Returns the device's SMART attributes values
|
|
/// </summary>
|
|
ReadAttributeValues = 0xD0,
|
|
/// <summary>
|
|
/// Communicates device reliability status
|
|
/// </summary>
|
|
ReturnStatus = 0xDA,
|
|
/// <summary>
|
|
/// Saves any attribute values immediately
|
|
/// </summary>
|
|
SaveAttributeValues = 0xD3,
|
|
#endregion Commands defined on ATA-3 rev. 7b
|
|
|
|
#region Commands defined on ATA/ATAPI-4 rev. 18
|
|
/// <summary>
|
|
/// Causes the device to immediately initiate a SMART data collection and saves it to the device
|
|
/// </summary>
|
|
ExecuteOfflineImmediate = 0xD4,
|
|
/// <summary>
|
|
/// Returns the device's SMART attributes values
|
|
/// </summary>
|
|
ReadData = ReadAttributeValues,
|
|
#endregion Commands defined on ATA/ATAPI-4 rev. 18
|
|
|
|
#region Commands defined on ATA/ATAPI-5 rev. 3
|
|
/// <summary>
|
|
/// Returns the indicated log to the host
|
|
/// </summary>
|
|
ReadLog = 0xD5,
|
|
/// <summary>
|
|
/// Writes data to the indicated log
|
|
/// </summary>
|
|
WriteLog = 0xD6
|
|
#endregion Commands defined on ATA/ATAPI-5 rev. 3
|
|
}
|
|
#endregion ATA SMART SubCommands
|
|
|
|
#region ATA Device Configuration Overlay SubCommands
|
|
public enum AtaDeviceConfigurationSubCommands : byte
|
|
{
|
|
#region Commands defined on ATA/ATAPI-6 rev. 3b
|
|
/// <summary>
|
|
/// Disables any change made by <see cref="Set"/>
|
|
/// </summary>
|
|
Restore = 0xC0,
|
|
/// <summary>
|
|
/// Prevents any <see cref="AtaDeviceConfigurationSubCommands"/> from working until a power down cycle.
|
|
/// </summary>
|
|
FreezeLock = 0xC1,
|
|
/// <summary>
|
|
/// Indicates the selectable commands, modes, and feature sets the device supports
|
|
/// </summary>
|
|
Identify = 0xC2,
|
|
/// <summary>
|
|
/// Modifies the commands, modes and features sets the device will obey to
|
|
/// </summary>
|
|
Set = 0xC3
|
|
#endregion Commands defined on ATA/ATAPI-6 rev. 3b
|
|
}
|
|
#endregion ATA Device Configuration Overlay SubCommands
|
|
|
|
#region ATA SET MAX SubCommands
|
|
public enum AtaSetMaxSubCommands : byte
|
|
{
|
|
#region Commands defined on ATA/ATAPI-6 rev. 3b
|
|
/// <summary>
|
|
/// Redefines the maximum user-accessible address space
|
|
/// </summary>
|
|
Address = 0x00,
|
|
/// <summary>
|
|
/// Disables any other <see cref="AtaSetMaxSubCommands"/> until power cycle
|
|
/// </summary>
|
|
FreezeLock = 0x04,
|
|
/// <summary>
|
|
/// Disables any other <see cref="AtaSetMaxSubCommands"/> except <see cref="UnLock"/> and <see cref="FreezeLock"/> until power cycle
|
|
/// </summary>
|
|
Lock = 0x02,
|
|
/// <summary>
|
|
/// Sets the device password
|
|
/// </summary>
|
|
SetPassword = 0x01,
|
|
/// <summary>
|
|
/// Disables <see cref="Lock"/>
|
|
/// </summary>
|
|
UnLock = 0x03,
|
|
#endregion Commands defined on ATA/ATAPI-6 rev. 3b
|
|
}
|
|
#endregion ATA SET MAX SubCommands
|
|
|
|
#region ATA Non Volatile Cache SubCommands
|
|
public enum AtaNonVolatileCacheSubCommands : byte
|
|
{
|
|
#region Commands defined on ATA/ATAPI-8 rev. 3f
|
|
/// <summary>
|
|
/// Adds the specified LBA to the Non Volatile Cache
|
|
/// </summary>
|
|
AddLbaToNvCache = 0x10,
|
|
/// <summary>
|
|
/// Ensures there is enough free space in the Non Volatile Cache
|
|
/// </summary>
|
|
FlushNvCache = 0x14,
|
|
/// <summary>
|
|
/// Requests a list of LBAs actually stored in the Non Volatile Cache
|
|
/// </summary>
|
|
QueryNvCachePinnedSet = 0x12,
|
|
/// <summary>
|
|
/// Requests a list of LBAs accessed but not in the Non Volatile Cache
|
|
/// </summary>
|
|
QueryNvCacheMisses = 0x13,
|
|
/// <summary>
|
|
/// Removes the specified LBA from the Non Volatile Cache Pinned Set
|
|
/// </summary>
|
|
RemoveLbaFromNvCache = 0x11,
|
|
/// <summary>
|
|
/// Disables the Non Volatile Cache Power Mode
|
|
/// <see cref="SetNvCachePowerMode"/>
|
|
/// </summary>
|
|
ReturnFromNvCachePowerMode = 0x01,
|
|
/// <summary>
|
|
/// Enables the Non Volatile Cache Power Mode, so the device tries to serve all accesses from the Non Volatile Cache
|
|
/// </summary>
|
|
SetNvCachePowerMode = 0x00
|
|
#endregion Commands defined on ATA/ATAPI-8 rev. 3f
|
|
}
|
|
#endregion ATA Non Volatile Cache SubCommands
|
|
|
|
#region ATA Sanitize SubCommands
|
|
public enum AtaSanitizeSubCommands : ushort
|
|
{
|
|
#region Commands defined on ATA/ATAPI Command Set 2 (ACS-2) rev. 2
|
|
/// <summary>
|
|
/// Causes a block erase on all user data
|
|
/// </summary>
|
|
BlockEraseExt = 0x0012,
|
|
/// <summary>
|
|
/// Changes the internal encryption keys. Renders user data unusable
|
|
/// </summary>
|
|
CryptoScrambleExt = 0x0011,
|
|
/// <summary>
|
|
/// Fills user data with specified pattern
|
|
/// </summary>
|
|
OverwriteExt = 0x0014,
|
|
/// <summary>
|
|
/// Disables all <see cref="AtaSanitizeSubCommands"/> except <see cref="Status"/>
|
|
/// </summary>
|
|
FreezeLockExt = 0x0020,
|
|
/// <summary>
|
|
/// Gets the status of the sanitizing
|
|
/// </summary>
|
|
Status = 0x0000,
|
|
#endregion Commands defined on ATA/ATAPI Command Set 2 (ACS-2) rev. 2
|
|
|
|
#region Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
/// <summary>
|
|
/// Disables the <see cref="FreezeLockExt"/> command
|
|
/// </summary>
|
|
AntiFreezeLockExt = 0x0040
|
|
#endregion Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
}
|
|
#endregion ATA Sanitize SubCommands
|
|
|
|
#region ATA NCQ Queue Management SubCommands
|
|
public enum AtaNCQQueueManagementSubcommands : byte
|
|
{
|
|
#region Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
/// <summary>
|
|
/// Aborts pending NCQ commands
|
|
/// </summary>
|
|
AbortNCQQueue = 0x00,
|
|
/// <summary>
|
|
/// Controls how NCQ Streaming commands are processed by the device
|
|
/// </summary>
|
|
DeadlineHandling = 0x01,
|
|
#endregion Commands defined on ATA/ATAPI Command Set 3 (ACS-3) rev. 5
|
|
}
|
|
#endregion ATA NCQ Queue Management SubCommands
|
|
|
|
/// <summary>
|
|
/// SASI commands
|
|
/// Commands 0x00 to 0x1F are 6-byte
|
|
/// Commands 0x20 to 0x3F are 10-byte
|
|
/// Commands 0x40 to 0x5F are 8-byte
|
|
/// </summary>
|
|
#region SASI Commands
|
|
public enum SasiCommands : byte
|
|
{
|
|
#region SASI Class 0 commands
|
|
/// <summary>
|
|
/// Returns zero status if requested unit is on and ready.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
TestUnitReady = 0x00,
|
|
/// <summary>
|
|
/// Sets the unit to a specific known state.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
RezeroUnit = 0x01,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
RequestSyndrome = 0x02,
|
|
/// <summary>
|
|
/// Returns unit sense.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
RequestSense = 0x03,
|
|
/// <summary>
|
|
/// Formats the entire media.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
FormatUnit = 0x04,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
CheckTrackFormat = 0x05,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
FormatTrack = 0x06,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
FormatBadTrack = 0x06,
|
|
/// <summary>
|
|
/// Reads a block from the device.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Read = 0x08,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// Unknown
|
|
/// </summary>
|
|
WriteProtectSector = 0x09,
|
|
/// <summary>
|
|
/// Writes a block to the device.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Write = 0x0A,
|
|
/// <summary>
|
|
/// Moves the device reading mechanism to the specified block.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Seek = 0x0B,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
VerifyRestore = 0x0D,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
AssignAlternateDiskTrack = 0x0E,
|
|
/// <summary>
|
|
/// Writes a File Mark on the device.
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
WriteFileMark = 0x0F,
|
|
/// <summary>
|
|
/// Reserves the device for use by the iniator.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReserveUnit = 0x12,
|
|
/// <summary>
|
|
/// Release the device from the reservation.
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReleaseUnit= 0x13,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteProtectDrive = 0x14,
|
|
/// <summary>
|
|
/// Writes and verifies blocks to the device.
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
WriteVerify = 0x14,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReleaseWriteProtect = 0x15,
|
|
/// <summary>
|
|
/// Verifies blocks.
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
Verify = 0x15,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadNoSeek = 0x16,
|
|
/// <summary>
|
|
/// Gets the number of blocks in device.
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
ReadCapacity = 0x16,
|
|
/// <summary>
|
|
/// Searches data on blocks
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SearchDataEqual = 0x17,
|
|
/// <summary>
|
|
/// Searches data on blocks using major than or equal comparison
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SearchDataHigh = 0x18,
|
|
/// <summary>
|
|
/// Searches data on blocks using minor than or equal comparison
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SearchDataLow = 0x19,
|
|
/// <summary>
|
|
/// Reads analysis data from a device
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadDiagnostic = 0x1A,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
VerifyData = 0x1B,
|
|
/// <summary>
|
|
/// Requests a device to run a diagnostic
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
WriteDiagnostic = 0x1B,
|
|
/// <summary>
|
|
/// Gets information about a device
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
Inquiry = 0x1F,
|
|
#endregion SASI Class 0 commands
|
|
|
|
#region SASI Class 1 commands
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// Unknown
|
|
/// </summary>
|
|
Copy = 0x20,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// Unknown
|
|
/// </summary>
|
|
Restore = 0x21,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// Unknown
|
|
/// </summary>
|
|
Backup = 0x22,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// Unknown
|
|
/// </summary>
|
|
SetBlockLimitsOld = 0x26,
|
|
/// <summary>
|
|
/// Sets write or read limits from a specified block
|
|
/// SASI rev. 0c
|
|
/// </summary>
|
|
SetBlockLimits = 0x28,
|
|
#endregion SASI Class 1 commands
|
|
|
|
#region SASI Class 2 commands
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Load = 0x40,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Unload = 0x41,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Rewind = 0x42,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SpaceForward = 0x43,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SpaceForwardFileMark = 0x44,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SpaceReserve = 0x45,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
SpaceReserveFileMark = 0x46,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
TrackSelect = 0x47,
|
|
/// <summary>
|
|
/// Reads blocks from device
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Read10 = 0x48,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadVerify = 0x49,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadDiagnosticClass2 = 0x4A,
|
|
/// <summary>
|
|
/// Writes blocks to device
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Write10 = 0x4B,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteFileMarkClass2 = 0x4C,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteExtended = 0x4D,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteExtendedFileMark = 0x4E,
|
|
/// <summary>
|
|
/// Unknown
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteErase = 0x4F,
|
|
#endregion SASI Class 2 commands
|
|
|
|
#region SASI Class 3 commands
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Skip = 0x60,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Space = 0x61,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Return = 0x62,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Tab = 0x63,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadControl = 0x64,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
Write3 = 0x65,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteControl = 0x66,
|
|
#endregion SASI Class 3 commands
|
|
|
|
#region SASI Class 6 commands
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
DefineFloppyDiskTracFormat = 0xC0,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
FormatDriveErrorMap = 0xC4,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadErrorMap = 0xC5,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadDriveType = 0xC6,
|
|
#endregion SASI Class 6 commands
|
|
|
|
#region SASI Class 7 commands
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
RamDiagnostic = 0xE0,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
WriteECC = 0xE1,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
ReadID = 0xE2,
|
|
/// <summary>
|
|
/// SASI rev. 0a
|
|
/// </summary>
|
|
DriveDiagnostic = 0xE3
|
|
#endregion SASI Class 7 commands
|
|
}
|
|
#endregion SASI Commands
|
|
|
|
#region SCSI Commands
|
|
public enum ScsiCommands : byte
|
|
{
|
|
#region SCSI Primary Commands (SPC)
|
|
/// <summary>
|
|
/// Commands used to obtain information about the access controls that are active
|
|
/// SPC-4 rev. 16
|
|
/// </summary>
|
|
AccessControlIn = 0x86,
|
|
/// <summary>
|
|
/// Commands used to limit or grant access to LUNs
|
|
/// SPC-4 rev. 16
|
|
/// </summary>
|
|
AccessControlOut = 0x87,
|
|
/// <summary>
|
|
/// Modifies the operating definition of the device with respect to commmands.
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ChangeDefinition = 0x40,
|
|
/// <summary>
|
|
/// Compares data between two devices
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Compare = 0x39,
|
|
/// <summary>
|
|
/// Copies data between two devices
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Copy = 0x18,
|
|
/// <summary>
|
|
/// Copies data between two devices and verifies the copy is correct.
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
CopyAndVerify = 0x3A,
|
|
/// <summary>
|
|
/// Copies data between two devices
|
|
/// SPC-2 rev. 20
|
|
/// </summary>
|
|
ExtendedCopy = 0x83,
|
|
/// <summary>
|
|
/// Requests information about the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Inquiry = 0x12,
|
|
/// <summary>
|
|
/// Manages device statistics
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
LogSelect = 0x4C,
|
|
/// <summary>
|
|
/// Gets device statistics
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
LogSense = 0x4D,
|
|
/// <summary>
|
|
/// Retrieves management protocol information
|
|
/// SPC-2 rev. 20
|
|
/// </summary>
|
|
ManagementProtocolIn = 0xA3,
|
|
/// <summary>
|
|
/// Transfers management protocol information
|
|
/// SPC-2 rev. 20
|
|
/// </summary>
|
|
ManagementProtocolOut = 0xA4,
|
|
/// <summary>
|
|
/// Sets device parameters
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ModeSelect = 0x15,
|
|
/// <summary>
|
|
/// Sets device parameters
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ModeSelect10 = 0x55,
|
|
/// <summary>
|
|
/// Gets device parameters
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ModeSense = 0x1A,
|
|
/// <summary>
|
|
/// Gets device parameters
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ModeSense10 = 0x5A,
|
|
/// <summary>
|
|
/// Obtains information about persistent reservations and reservation keys
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
PersistentReserveIn = 0x5E,
|
|
/// <summary>
|
|
/// Reserves a LUN or an extent within a LUN for exclusive or shared use
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
PersistentReserveOut = 0x5F,
|
|
/// <summary>
|
|
/// Requests the device to disable or enable the removal of the medium inside it
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PreventAllowMediumRemoval = 0x1E,
|
|
/// <summary>
|
|
/// Reads attribute values from medium auxiliary memory
|
|
/// SPC-3 rev. 21b
|
|
/// </summary>
|
|
ReadAttribute = 0x8C,
|
|
/// <summary>
|
|
/// Reads the device buffer
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadBuffer = 0x3C,
|
|
/// <summary>
|
|
/// Reads the media serial number
|
|
/// SPC-3 rev. 21b
|
|
/// </summary>
|
|
ReadSerialNumber = 0xAB,
|
|
/// <summary>
|
|
/// Receives information about a previous or current <see cref="ExtendedCopy"/>
|
|
/// SPC-2 rev. 20
|
|
/// </summary>
|
|
ReceiveCopyResults = 0x84,
|
|
/// <summary>
|
|
/// Requests the data after completion of a <see cref="SendDiagnostic"/>
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReceiveDiagnostic = 0x1C,
|
|
/// <summary>
|
|
/// Releases a previously reserved LUN or extents
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Release = 0x17,
|
|
/// <summary>
|
|
/// Releases a previously reserved LUN or extents
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
Release10 = 0x57,
|
|
/// <summary>
|
|
/// Requests the LUNs that are present on the device
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
ReportLuns = 0xA0,
|
|
/// <summary>
|
|
/// Requests the device's sense
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
RequestSense = 0x03,
|
|
/// <summary>
|
|
/// Reserves a LUN or extent
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Reserve = 0x16,
|
|
/// <summary>
|
|
/// Reserves a LUN or extent
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
Reserve10 = 0x56,
|
|
/// <summary>
|
|
/// Retrieves security protocol information
|
|
/// SPC-4 rev. 16
|
|
/// </summary>
|
|
SecurityProtocolIn = 0xA2,
|
|
/// <summary>
|
|
/// Transfers security protocol information
|
|
/// SPC-4 rev. 16
|
|
/// </summary>
|
|
SecurityProtocolOut = 0xB5,
|
|
/// <summary>
|
|
/// Requests the device to perform diagnostics
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SendDiagnostic = 0x1D,
|
|
/// <summary>
|
|
/// Extended commands
|
|
/// SPC-4
|
|
/// </summary>
|
|
ServiceActionIn = 0x9E,
|
|
/// <summary>
|
|
/// Extended commands
|
|
/// SPC-4
|
|
/// </summary>
|
|
ServiceActionOut = 0x9F,
|
|
/// <summary>
|
|
/// Checks if a LUN is ready to access its medium
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
TestUnitReady = 0x00,
|
|
/// <summary>
|
|
/// Writes attribute values to medium auxiliary memory
|
|
/// SPC-3 rev. 21b
|
|
/// </summary>
|
|
WriteAttribute = 0x8C,
|
|
/// <summary>
|
|
/// Writes to the device's buffer
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteBuffer = 0x3B,
|
|
#endregion SCSI Primary Commands (SPC)
|
|
|
|
#region SCSI Block Commands (SBC)
|
|
/// <summary>
|
|
/// Compares blocks with sent data, and if equal, writes those block to device, atomically
|
|
/// SBC-3 rev. 25
|
|
/// </summary>
|
|
CompareAndWrite = 0x89,
|
|
/// <summary>
|
|
/// Formats the medium into addressable logical blocks
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
FormatUnit = 0x04,
|
|
/// <summary>
|
|
/// Locks blocks from eviction of device's cache
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
LockUnlockCache = 0x36,
|
|
/// <summary>
|
|
/// Locks blocks from eviction of device's cache
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
LockUnlockCache16 = 0x92,
|
|
/// <summary>
|
|
/// Requests the device to perform the following uninterrupted series of actions:
|
|
/// 1.- Read the specified blocks
|
|
/// 2.- Transfer blocks from the data out buffer
|
|
/// 3.- Perform an OR operation between the read blocks and the buffer
|
|
/// 4.- Write the buffer to the blocks
|
|
/// SBC-3 rev. 16
|
|
/// </summary>
|
|
ORWrite = 0x8B,
|
|
/// <summary>
|
|
/// Transfers requested blocks to devices' cache
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PreFetch = 0x34,
|
|
/// <summary>
|
|
/// Transfers requested blocks to devices' cache
|
|
/// SBC-3 rev. 16
|
|
/// </summary>
|
|
PreFetch16 = 0x90,
|
|
/// <summary>
|
|
/// Reads blocks from device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Read = 0x08,
|
|
/// <summary>
|
|
/// Reads blocks from device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Read10 = 0x28,
|
|
/// <summary>
|
|
/// Reads blocks from device
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
Read16 = 0x88,
|
|
/// <summary>
|
|
/// Gets device capacity
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadCapacity = 0x25,
|
|
/// <summary>
|
|
/// Gets device's defect data
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadDefectData = 0x37,
|
|
/// <summary>
|
|
/// Reads blocks from device in a vendor-specific way that should include the ECC alongside the data
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadLong = 0x3E,
|
|
/// <summary>
|
|
/// Requests the device to reassign the defective blocks to another area of the medium
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReassignBlocks = 0x07,
|
|
/// <summary>
|
|
/// Requests the target write to the medium the XOR data generated from the specified source devices
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
Rebuild = 0x81,
|
|
/// <summary>
|
|
/// Requests the target write to the buffer the XOR data from its own medium and the specified source devices
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
Regenerate = 0x82,
|
|
/// <summary>
|
|
/// Requests the device to set the LUN in a vendor specific state
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
RezeroUnit = 0x01,
|
|
/// <summary>
|
|
/// Searches data on blocks
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataEqual = 0x31,
|
|
/// <summary>
|
|
/// Searches data on blocks using major than or equal comparison
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataHigh = 0x30,
|
|
/// <summary>
|
|
/// Searches data on blocks using minor than or equal comparison
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataLow = 0x32,
|
|
/// <summary>
|
|
/// Requests the device to seek to a specified blocks
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Seek = 0x0B,
|
|
/// <summary>
|
|
/// Requests the device to seek to a specified blocks
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Seek10 = 0x2B,
|
|
/// <summary>
|
|
/// Defines the range within which subsequent linked commands may operate
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SetLimits = 0x33,
|
|
/// <summary>
|
|
/// Requests the device to enable or disable the LUN for media access operations
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
StartStopUnit = 0x1B,
|
|
/// <summary>
|
|
/// Ensures that the blocks in the cache are written to the medium
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SynchronizeCache = 0x35,
|
|
/// <summary>
|
|
/// Ensures that the blocks in the cache are written to the medium
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
SynchronizeCache16 = 0x91,
|
|
/// <summary>
|
|
/// Unmaps one or more LBAs
|
|
/// In SSDs, this is trimming
|
|
/// SBC-3 rev. 25
|
|
/// </summary>
|
|
Unmap = 0x42,
|
|
/// <summary>
|
|
/// Verifies blocks on the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Verify10 = 0x2F,
|
|
/// <summary>
|
|
/// Verifies blocks on the device
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
Verify16 = 0x8F,
|
|
/// <summary>
|
|
/// Writes blocks to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Write = 0x0A,
|
|
/// <summary>
|
|
/// Writes blocks to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Write10 = 0x2A,
|
|
/// <summary>
|
|
/// Writes blocks to the device
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
Write16 = 0x8A,
|
|
/// <summary>
|
|
/// Writes blocks to the device and then verifies them
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteAndVerify = 0x2E,
|
|
/// <summary>
|
|
/// Writes blocks to the device and then verifies them
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
WriteAndVerify16 = 0x8E,
|
|
/// <summary>
|
|
/// Writes blocks to the device with a vendor specified format that shall include the ECC alongside the data
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteLong = 0x3F,
|
|
/// <summary>
|
|
/// Writes a single block several times
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteSame = 0x41,
|
|
/// <summary>
|
|
/// Writes a single block several times
|
|
/// SBC-2 rev. 4
|
|
/// </summary>
|
|
WriteSame16 = 0x93,
|
|
/// <summary>
|
|
/// Requets XOR data generated by an <see cref="XDWrite"/> or <see cref="Regenerate"/> command
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
XDRead = 0x52,
|
|
/// <summary>
|
|
/// XORs the data sent with data on the medium and stores it until an <see cref="XDRead"/> is issued
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
XDWrite = 0x50,
|
|
/// <summary>
|
|
/// XORs the data sent with data on the medium and stores it until an <see cref="XDRead"/> is issued
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
XDWrite16 = 0x80,
|
|
/// <summary>
|
|
/// Requets the target to XOR the sent data with the data on the medium and return the results
|
|
/// </summary>
|
|
XDWriteRead = 0x53,
|
|
/// <summary>
|
|
/// Requests the target to XOR the data transferred with the data on the medium and writes it to the medium
|
|
/// SBC-1 rev. 8c
|
|
/// </summary>
|
|
XPWrite = 0x51,
|
|
#endregion SCSI Block Commands (SBC)
|
|
|
|
#region SCSI Streaming Commands (SSC)
|
|
/// <summary>
|
|
/// Prepares the medium for use by the LUN
|
|
/// SSC-1 rev. 22
|
|
/// </summary>
|
|
FormatMedium = 0x04,
|
|
/// <summary>
|
|
/// Erases part of all of the medium from the current position
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Erase = 0x19,
|
|
/// <summary>
|
|
/// Enables or disables the LUN for further operations
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
LoadUnload = 0x1B,
|
|
/// <summary>
|
|
/// Positions the LUN to a specified block in a specified partition
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Locate = 0x2B,
|
|
/// <summary>
|
|
/// Positions the LUN to a specified block in a specified partition
|
|
/// SSC-2 rev. 09
|
|
/// </summary>
|
|
Locate16 = 0x92,
|
|
/// <summary>
|
|
/// Requests the block length limits capability
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadBlockLimits = 0x05,
|
|
/// <summary>
|
|
/// Reads the current position
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadPosition = 0x34,
|
|
/// <summary>
|
|
/// Reads blocks from the device, in reverse order
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadReverse = 0x0F,
|
|
/// <summary>
|
|
/// Retrieves data from the device buffer that has not been successfully written to the medium (or printed)
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
RecoverBufferedData = 0x14,
|
|
/// <summary>
|
|
/// Requests information regarding the supported densities for the logical unit
|
|
/// SSC-1 rev. 22
|
|
/// </summary>
|
|
ReportDensitySupport = 0x44,
|
|
/// <summary>
|
|
/// Seeks the medium to the beginning of partition in current partition
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Rewind = 0x01,
|
|
/// <summary>
|
|
/// A variety of positioning functions
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Space = 0x11,
|
|
/// <summary>
|
|
/// A variety of positioning functions
|
|
/// SSC-2 rev. 09
|
|
/// </summary>
|
|
Space16 = 0x91,
|
|
/// <summary>
|
|
/// Verifies one or more blocks from the next one
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Verify = 0x13,
|
|
/// <summary>
|
|
/// Writes the specified number of filemarks or setmarks in the current position
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteFileMarks=0x10,
|
|
#endregion SCSI Streaming Commands (SSC)
|
|
|
|
#region SCSI Streaming Commands for Printers (SSC)
|
|
/// <summary>
|
|
/// Specifies forms or fronts
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Format = 0x04,
|
|
/// <summary>
|
|
/// Transfers data to be printed
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Print = 0x0A,
|
|
/// <summary>
|
|
/// Transfers data to be printed with a slew value
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SlewAndPrint = 0x0B,
|
|
/// <summary>
|
|
/// Halts printing
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
StopPrint = 0x1B,
|
|
/// <summary>
|
|
/// Assures that the data in the buffer has been printed, or, for other devices, written to media
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SynchronizeBuffer = 0x10,
|
|
#endregion SCSI Streaming Commands for Printers (SSC)
|
|
|
|
#region SCSI Processor Commands
|
|
/// <summary>
|
|
/// Transfers data from the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Receive = 0x08,
|
|
/// <summary>
|
|
/// Sends data to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Send = 0x0A,
|
|
#endregion SCSI Processor Commands
|
|
|
|
#region SCSI Multimedia Commands (MMC)
|
|
/// <summary>
|
|
/// Erases any part of a CD-RW
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
Blank = 0xA1,
|
|
/// <summary>
|
|
/// Closes a track or session
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
CloseTrackSession = 0x5B,
|
|
/// <summary>
|
|
/// Gets information about the overall capabilities of the device and the current capabilities of the device
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
GetConfiguration = 0x46,
|
|
/// <summary>
|
|
/// Requests the LUN to report events and statuses
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
GetEventStatusNotification = 0x4A,
|
|
/// <summary>
|
|
/// Provides a mehotd to profile the performance of the drive
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
GetPerformance = 0xAC,
|
|
/// <summary>
|
|
/// Requests the device changer to load or unload a disc
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
LoadUnloadCd = 0xA6,
|
|
/// <summary>
|
|
/// Requests the device changer to load or unload a disc
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
LoadUnloadMedium = 0xA6,
|
|
/// <summary>
|
|
/// Requests information about the current status of the CD device, including any changer mechanism
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
MechanicalStatus = 0xBD,
|
|
/// <summary>
|
|
/// Requests the device to start or stop an audio play operation
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PauseResume = 0x4B,
|
|
/// <summary>
|
|
/// Begins an audio playback
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayAudio = 0x45,
|
|
/// <summary>
|
|
/// Begins an audio playback
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayAudio12 = 0xA5,
|
|
/// <summary>
|
|
/// Begins an audio playback using MSF addressing
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayAudioMsf = 0x47,
|
|
/// <summary>
|
|
/// Begins an audio playback from the specified index of the specified track
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayAudioTrackIndex = 0x48,
|
|
/// <summary>
|
|
/// Begins an audio playback from the position relative of a track
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayTrackRelative = 0x49,
|
|
/// <summary>
|
|
/// Begins an audio playback from the position relative of a track
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PlayTrackRelative12 = 0xA9,
|
|
/// <summary>
|
|
/// Reports the total and blank area of the device buffer
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadBufferCapacity = 0x5C,
|
|
/// <summary>
|
|
/// Reads a block from a CD with any of the requested CD data streams
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadCd = 0xBE,
|
|
/// <summary>
|
|
/// Reads a block from a CD with any of the requested CD data streams using MSF addressing
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadCdMsf = 0xB9,
|
|
/// <summary>
|
|
/// Returns the recorded size of the CD
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadCdRecordedCapacity = 0x25,
|
|
/// <summary>
|
|
/// Gets informationn about all discs: CD-ROM, CD-R and CD-RW
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadDiscInformation = 0x51,
|
|
/// <summary>
|
|
/// Reads areas from the DVD or BD media
|
|
/// MMC-5 rev. 2c
|
|
/// </summary>
|
|
ReadDiscStructure = 0xAD,
|
|
/// <summary>
|
|
/// Reads areas from the DVD media
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
ReadDvdStructure = 0xAD,
|
|
/// <summary>
|
|
/// Requests a list of the possible format capacities for an installed random-writable media
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
ReadFormatCapacities = 0x23,
|
|
/// <summary>
|
|
/// Reads the data block header of the specified CD-ROM block
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadHeader = 0x44,
|
|
/// <summary>
|
|
/// Reads the mastering information from a Master CD.
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadMasterCue = 0x59,
|
|
/// <summary>
|
|
/// Requests the Q subchannel and the current audio playback status
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadSubChannel = 0x42,
|
|
/// <summary>
|
|
/// Requests the medium TOC, PMA or ATIP from the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadTocPmaAtip = 0x43,
|
|
/// <summary>
|
|
/// Gets information about a track regardless of its status
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReadTrackInformation = 0x52,
|
|
/// <summary>
|
|
/// Repairs an incomplete ECC block at the end of an RZone
|
|
/// Mt. Fuji ver. 7 rev. 1.21
|
|
/// </summary>
|
|
RepairRZone = 0x58,
|
|
/// <summary>
|
|
/// Repairs an incomplete packet at the end of a packet writing track
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
RepairTrack = 0x58,
|
|
/// <summary>
|
|
/// Requests the start of the authentication process and provides data necessary for authentication and for generating a Bus Key
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
ReportKey = 0xA4,
|
|
/// <summary>
|
|
/// Reserves disc space for a track
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ReserveTrack = 0x53,
|
|
/// <summary>
|
|
/// Fast-forwards or fast-reverses the audio playback to the specified block. Stops if it encounters a data track
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
ScanMmc = 0xBA,
|
|
/// <summary>
|
|
/// Sends a cue sheet for session-at-once recording
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
SendCueSheet = 0x5D,
|
|
/// <summary>
|
|
/// Transfer a DVD or BD structure for media writing
|
|
/// MMC-5 rev. 2c
|
|
/// </summary>
|
|
SendDiscStructure = 0xAD,
|
|
/// <summary>
|
|
/// Transfer a DVD structure for media writing
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
SendDvdStructure = 0xAD,
|
|
/// <summary>
|
|
/// Requests the LUN to process an event
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
SendEvent = 0xA2,
|
|
/// <summary>
|
|
/// Provides data necessary for authentication and for generating a Bus Key
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
SendKey = 0xA3,
|
|
/// <summary>
|
|
/// Restores the Optimum Power Calibration values to the drive for a specific disc
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
SendOpcInformation = 0x54,
|
|
/// <summary>
|
|
/// Sets the spindle speed to be used while reading/writing data to a CD
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
SetCdRomSpeed = 0xBB,
|
|
/// <summary>
|
|
/// Requests the LUN to perform read ahead caching operations from the specified block
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
SetReadAhead = 0xA7,
|
|
/// <summary>
|
|
/// Indicates the LUN to try to achieve a specified performance
|
|
/// MMC-2 rev. 11a
|
|
/// </summary>
|
|
SetStreaming = 0xB6,
|
|
/// <summary>
|
|
/// Stops a scan and continues audio playback from current scanning position
|
|
/// MMC-1 rev. 9
|
|
/// </summary>
|
|
StopPlayScan = 0x4E,
|
|
#endregion SCSI Multimedia Commands (MMC)
|
|
|
|
#region SCSI Scanner Commands
|
|
/// <summary>
|
|
/// Gets information about the data buffer
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
GetDataBufferStatus = 0x34,
|
|
/// <summary>
|
|
/// Gets information about previously defined windows
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
GetWindow = 0x25,
|
|
/// <summary>
|
|
/// Provides positioning functions
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ObjectPosition = 0x31,
|
|
/// <summary>
|
|
/// Begins a scan operation
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Scan = 0x1B,
|
|
/// <summary>
|
|
/// Specifies one or more windows within the device's scanning range
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SetWindow = 0x24,
|
|
/// <summary>
|
|
/// Sends data to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Send10 = 0x2A,
|
|
#endregion SCSI Scanner Commands
|
|
|
|
#region SCSI Block Commands for Optical Media (SBC)
|
|
/// <summary>
|
|
/// Erases the specified number of blocks
|
|
/// </summary>
|
|
Erase10 = 0x2C,
|
|
/// <summary>
|
|
/// Erases the specified number of blocks
|
|
/// </summary>
|
|
Erase12 = 0xAC,
|
|
/// <summary>
|
|
/// Searches the medium for a contiguos set of written or blank blocks
|
|
/// </summary>
|
|
MediumScan = 0x38,
|
|
/// <summary>
|
|
/// Reads blocks from device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Read12 = 0xA8,
|
|
/// <summary>
|
|
/// Gets medium's defect data
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadDefectData12 = 0xB7,
|
|
/// <summary>
|
|
/// Gets the maxium generation address for the specified block
|
|
/// </summary>
|
|
ReadGeneration = 0x29,
|
|
/// <summary>
|
|
/// Reads a specified generation of a specified block
|
|
/// </summary>
|
|
ReadUpdatedBlock = 0x2D,
|
|
/// <summary>
|
|
/// Searches data on blocks
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataEqual12 = 0xB1,
|
|
/// <summary>
|
|
/// Searches data on blocks using major than or equal comparison
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataHigh12 = 0xB0,
|
|
/// <summary>
|
|
/// Searches data on blocks using minor than or equal comparison
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SearchDataLow12 = 0xB2,
|
|
/// <summary>
|
|
/// Defines the range within which subsequent linked commands may operate
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SetLimits12 = 0xB3,
|
|
/// <summary>
|
|
/// Replaces a block with data
|
|
/// </summary>
|
|
UpdateBlock = 0x3D,
|
|
/// <summary>
|
|
/// Verifies blocks on the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Verify12 = 0xAF,
|
|
/// <summary>
|
|
/// Writes blocks to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
Write12 = 0xAA,
|
|
/// <summary>
|
|
/// Writes blocks to the device and then verifies them
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
WriteAndVerify12 = 0xAE,
|
|
#endregion SCSI Block Commands for Optical Media (SBC)
|
|
|
|
#region SCSI Medium Changer Commands (SMC)
|
|
/// <summary>
|
|
/// Provides a means to exchange the medium in the source element with the medium at destination element
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ExchangeMedium = 0xA6,
|
|
/// <summary>
|
|
/// Checks all elements for medium and any other relevant status
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
InitializeElementStatus = 0x07,
|
|
/// <summary>
|
|
/// Checks all elements for medium and any other relevant status in the specified range of elements
|
|
/// SMC-2 rev. 7
|
|
/// </summary>
|
|
InitializeElementStatusWithRange = 0x37,
|
|
/// <summary>
|
|
/// Moves a medium from an element to another
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
MoveMedium = 0xA5,
|
|
/// <summary>
|
|
/// Moves a medium that's currently attached to another element
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
MoveMediumAttached = 0xA7,
|
|
/// <summary>
|
|
/// Provides a method to change the open/closed state of the specified import/export element
|
|
/// SMC-3 rev. 12
|
|
/// </summary>
|
|
OpenCloseImportExportElement = 0x1B,
|
|
/// <summary>
|
|
/// Positions the transport element in front of the destination element
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
PositionToElement = 0x2B,
|
|
/// <summary>
|
|
/// Requests the status of the elements
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReadElementStatus = 0xB8,
|
|
/// <summary>
|
|
/// Requests the status of the attached element
|
|
/// SPC-1 rev. 10
|
|
/// </summary>
|
|
ReadElementStatusAttached = 0xB4,
|
|
/// <summary>
|
|
/// Releases a reserved LUN
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReleaseElement = 0x17,
|
|
/// <summary>
|
|
/// Releases a reserved LUN
|
|
/// SMC-1 rev. 10a
|
|
/// </summary>
|
|
ReleaseElement10 = 0x57,
|
|
/// <summary>
|
|
/// Requests information regarding the supported volume types for the device
|
|
/// SMC-3 rev. 12
|
|
/// </summary>
|
|
ReportVolumeTypesSupported = 0x44,
|
|
/// <summary>
|
|
/// Gets the results of <see cref="SendVolumeTag"/>
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
RequestVolumeElementAddress = 0xB5,
|
|
/// <summary>
|
|
/// Reserves a LUN
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
ReserveElement = 0x16,
|
|
/// <summary>
|
|
/// Reserves a LUN
|
|
/// SMC-1 rev. 10a
|
|
/// </summary>
|
|
ReserveElement10 = 0x56,
|
|
/// <summary>
|
|
/// Transfers a volume tag template to be searched or new volume tag information for one or more elements
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SendVolumeTag = 0xB6,
|
|
#endregion SCSI Medium Changer Commands (SMC)
|
|
|
|
#region SCSI Communication Commands
|
|
/// <summary>
|
|
/// Gets data from the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
GetMessage = 0x08,
|
|
/// <summary>
|
|
/// Gets data from the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
GetMessage10 = 0x28,
|
|
/// <summary>
|
|
/// Gets data from the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
GetMessage12 = 0xA8,
|
|
/// <summary>
|
|
/// Sends data to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SendMessage = 0x0A,
|
|
/// <summary>
|
|
/// Sends data to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SendMessage10 = 0x2A,
|
|
/// <summary>
|
|
/// Sends data to the device
|
|
/// SCSI-2 X3T9.2/375R rev. 10l
|
|
/// </summary>
|
|
SendMessage12 = 0xAA,
|
|
#endregion SCSI Communication Commands
|
|
|
|
#region SCSI Controller Commands
|
|
/// <summary>
|
|
/// Commands that get information about redundancy groups
|
|
/// SCC-2 rev. 4
|
|
/// </summary>
|
|
RedundancyGroupIn = 0xBA,
|
|
/// <summary>
|
|
/// Commands that set information about redundancy groups
|
|
/// SCC-2 rev. 4
|
|
/// </summary>
|
|
RedundancyGroupOut = 0xBB,
|
|
/// <summary>
|
|
/// Commands that get information about volume sets
|
|
/// SCC-2 rev. 4
|
|
/// </summary>
|
|
VolumeSetIn = 0xBE,
|
|
/// <summary>
|
|
/// Commands that set information about volume sets
|
|
/// SCC-2 rev. 4
|
|
/// </summary>
|
|
VolumeSetOut = 0xBF,
|
|
#endregion SCSI Controller Commands
|
|
|
|
#region Pioneer CD-ROM SCSI-2 Command Set
|
|
/// <summary>
|
|
/// Scans for a block playing a block on each track cross
|
|
/// </summary>
|
|
AudioScan = 0xCD,
|
|
/// <summary>
|
|
/// Requests the drive the status from the previous WriteCDP command.
|
|
/// </summary>
|
|
ReadCDP = 0xE4,
|
|
/// <summary>
|
|
/// Requests status from the drive
|
|
/// </summary>
|
|
ReadDriveStatus = 0xE0,
|
|
/// <summary>
|
|
/// Reads CD-DA data and/or subcode data
|
|
/// </summary>
|
|
ReadCdDa = 0xD8,
|
|
/// <summary>
|
|
/// Reads CD-DA data and/or subcode data using MSF addressing
|
|
/// </summary>
|
|
ReadCdDaMsf = 0xD9,
|
|
/// <summary>
|
|
/// Reads CD-XA data
|
|
/// </summary>
|
|
ReadCdXa = 0xDB,
|
|
/// <summary>
|
|
/// Reads all subcode data
|
|
/// </summary>
|
|
ReadAllSubCode = 0xDF,
|
|
/// <summary>
|
|
/// Sets the spindle speed to be used while reading/writing data to a CD
|
|
/// </summary>
|
|
SetCdSpeed = 0xDA,
|
|
#endregion
|
|
|
|
#region ATA Command Pass-Through
|
|
/// <summary>
|
|
/// Sends a 24-bit ATA command to the device
|
|
/// ATA CPT rev. 8a
|
|
/// </summary>
|
|
AtaPassThrough = 0xA1,
|
|
/// <summary>
|
|
/// Sends a 48-bit ATA command to the device
|
|
/// ATA CPT rev. 8a
|
|
/// </summary>
|
|
AtaPassThrough16 = 0x85,
|
|
#endregion ATA Command Pass-Through
|
|
|
|
#region 6-byte CDB aliases
|
|
ModeSelect6 = ModeSelect,
|
|
ModeSense6 = ModeSense,
|
|
Read6 = Read,
|
|
Seek6 = Seek,
|
|
Write6 = Write,
|
|
#endregion 6-byte CDB aliases
|
|
|
|
#region SCSI Commands with unknown meaning, mostly vendor specific
|
|
ZbcOut = 0x94,
|
|
ZbcOut2 = 0x95,
|
|
SetCdSpeedUnk = 0xB8,
|
|
WriteCdMsf = 0xA2,
|
|
WriteCd = 0xAA,
|
|
ReadDefectTag = 0xB7,
|
|
PlayCd = 0xBC,
|
|
SpareIn = 0xBC,
|
|
SpareOut = 0xBD,
|
|
WriteStream16 = 0x9A,
|
|
WriteAtomic = 0x9C,
|
|
ServiceActionBidirectional = 0x9D,
|
|
WriteLong2 = 0xEA,
|
|
UnknownCdCommand = 0xD4,
|
|
UnknownCdCommand2 = 0xD5,
|
|
#endregion SCSI Commands with unknown meaning, mostly vendor specific
|
|
|
|
#region SEGA Packet Interface (all are 12-byte CDB)
|
|
/// <summary>
|
|
/// Verifies that the device can be accessed
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_TestUnit = TestUnitReady,
|
|
/// <summary>
|
|
/// Gets current CD status
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_RequestStatus = 0x10,
|
|
/// <summary>
|
|
/// Gets CD block mode info
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_RequestMode = 0x11,
|
|
/// <summary>
|
|
/// Sets CD block mode
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_SetMode = 0x12,
|
|
/// <summary>
|
|
/// Requests device error info
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_RequestError = 0x13,
|
|
/// <summary>
|
|
/// Gets disc TOC
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_GetToc = 0x14,
|
|
/// <summary>
|
|
/// Gets specified session data
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_RequestSession = 0x15,
|
|
/// <summary>
|
|
/// Stops the drive and opens the drive tray, or, on manual trays, stays busy until it is opened
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_OpenTray = 0x16,
|
|
/// <summary>
|
|
/// Starts audio playback
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_PlayCd = 0x20,
|
|
/// <summary>
|
|
/// Moves drive pickup to specified block
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_Seek = 0x21,
|
|
/// <summary>
|
|
/// Fast-forwards or fast-reverses until Lead-In or Lead-Out arrive, or until another command is issued
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_Scan = 0x22,
|
|
/// <summary>
|
|
/// Reads blocks from the disc
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_Read = 0x30,
|
|
/// <summary>
|
|
/// Reads blocks from the disc seeking to another position at end
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_Read2 = 0x31,
|
|
/// <summary>
|
|
/// Reads disc subcode
|
|
/// Sega SPI ver. 1.30
|
|
/// </summary>
|
|
Sega_GetSubcode = 0x40,
|
|
#endregion SEGA Packet Interface (all are 12-byte CDB)
|
|
|
|
/// <summary>
|
|
/// Variable sized Command Description Block
|
|
/// SPC-4 rev. 16
|
|
/// </summary>
|
|
VariableSizedCDB = 0x7F
|
|
}
|
|
#endregion SCSI Commands
|
|
}
|
|
}
|
|
|