From 94157df03e74f74651867255a18c05fe3866b971 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 23 Oct 2015 21:51:25 +0100 Subject: [PATCH] SCSI commands that are IDENTICAL on SASI are now aliased for source code readability. --- DiscImageChef.Devices/ChangeLog | 6 ++++++ DiscImageChef.Devices/Enums.cs | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/DiscImageChef.Devices/ChangeLog b/DiscImageChef.Devices/ChangeLog index 5256e46a..b87d2b35 100644 --- a/DiscImageChef.Devices/ChangeLog +++ b/DiscImageChef.Devices/ChangeLog @@ -1,3 +1,9 @@ +2015-10-23 Natalia Portillo + + * Enums.cs: + SCSI commands that are IDENTICAL on SASI are now aliased for + source code readability. + 2015-10-23 Natalia Portillo * Enums.cs: diff --git a/DiscImageChef.Devices/Enums.cs b/DiscImageChef.Devices/Enums.cs index 470d3637..92fbf550 100644 --- a/DiscImageChef.Devices/Enums.cs +++ b/DiscImageChef.Devices/Enums.cs @@ -1207,7 +1207,7 @@ namespace DiscImageChef.Devices /// Searches data on blocks using minor than or equal comparison /// SASI rev. 0c /// - SearchDataLow8 = 0x59 + SearchDataLow8 = 0x59, #endregion SASI Class 2 commands #region SASI Class 3 commands @@ -1432,7 +1432,7 @@ namespace DiscImageChef.Devices /// Requests the device's sense /// ECMA-111 (SCSI-1) /// - RequestSense = 0x03, + RequestSense = SasiCommands.RequestSense, /// /// Reserves a LUN or extent /// ECMA-111 (SCSI-1) @@ -1472,7 +1472,7 @@ namespace DiscImageChef.Devices /// Checks if a LUN is ready to access its medium /// ECMA-111 (SCSI-1) /// - TestUnitReady = 0x00, + TestUnitReady = SasiCommands.TestUnitReady, /// /// Writes attribute values to medium auxiliary memory /// SPC-3 rev. 21b @@ -1496,7 +1496,7 @@ namespace DiscImageChef.Devices /// Formats the medium into addressable logical blocks /// ECMA-111 (SCSI-1) /// - FormatUnit = 0x04, + FormatUnit = SasiCommands.FormatUnit, /// /// Locks blocks from eviction of device's cache /// SCSI-2 X3T9.2/375R rev. 10l @@ -1530,7 +1530,7 @@ namespace DiscImageChef.Devices /// Reads blocks from device /// ECMA-111 (SCSI-1) /// - Read = 0x08, + Read = SasiCommands.Read, /// /// Reads blocks from device /// ECMA-111 (SCSI-1) @@ -1575,7 +1575,7 @@ namespace DiscImageChef.Devices /// Requests the device to set the LUN in a vendor specific state /// ECMA-111 (SCSI-1) /// - RezeroUnit = 0x01, + RezeroUnit = SasiCommands.RezeroUnit, /// /// Searches data on blocks /// ECMA-111 (SCSI-1) @@ -1595,7 +1595,7 @@ namespace DiscImageChef.Devices /// Requests the device to seek to a specified blocks /// ECMA-111 (SCSI-1) /// - Seek = 0x0B, + Seek = SasiCommands.Seek, /// /// Requests the device to seek to a specified blocks /// ECMA-111 (SCSI-1) @@ -1641,7 +1641,7 @@ namespace DiscImageChef.Devices /// Writes blocks to the device /// ECMA-111 (SCSI-1) /// - Write = 0x0A, + Write = SasiCommands.Write, /// /// Writes blocks to the device /// ECMA-111 (SCSI-1)