From dfcd7301c5c130d66358cea1825c4ce1da0f3105 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Oct 2015 17:22:30 +0100 Subject: [PATCH] Added information from T10/536 rev. 4a (ZBC) --- DiscImageChef.Devices/ChangeLog | 5 +++++ DiscImageChef.Devices/Enums.cs | 40 +++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/DiscImageChef.Devices/ChangeLog b/DiscImageChef.Devices/ChangeLog index 65e006d5..ca3ef7c3 100644 --- a/DiscImageChef.Devices/ChangeLog +++ b/DiscImageChef.Devices/ChangeLog @@ -1,3 +1,8 @@ +2015-10-17 Natalia Portillo + + * Enums.cs: + Added information from T10/536 rev. 4a (ZBC) + 2015-10-17 Natalia Portillo * Device/AtaCommands.cs: diff --git a/DiscImageChef.Devices/Enums.cs b/DiscImageChef.Devices/Enums.cs index 8c238eac..7f5696c1 100644 --- a/DiscImageChef.Devices/Enums.cs +++ b/DiscImageChef.Devices/Enums.cs @@ -2273,9 +2273,18 @@ namespace DiscImageChef.Devices Write6 = Write, #endregion 6-byte CDB aliases - #region SCSI Commands with unknown meaning, mostly vendor specific + #region SCSI Zoned Block Commands + /// + /// ZBC commands with host->device information + /// ZbcOut = 0x94, - ZbcOut2 = 0x95, + /// + /// ZBC commands with device->host information + /// + ZbcIn = 0x95, + #endregion + + #region SCSI Commands with unknown meaning, mostly vendor specific SetCdSpeedUnk = 0xB8, WriteCdMsf = 0xA2, WriteCd = 0xAA, @@ -2480,6 +2489,33 @@ namespace DiscImageChef.Devices SPTSIU = 3 } #endregion SCSI's ATA Command Pass-Through + + /// + /// ZBC sub-commands, mask 0x1F + /// + public enum ZBCSubCommands : byte + { + /// + /// Returns list with zones of specified types + /// + ReportZones = 0x00, + /// + /// Closes a zone + /// + CloseZone = 0x01, + /// + /// Finishes a zone + /// + FinishZone = 0x02, + /// + /// Opens a zone + /// + OpenZone = 0x03, + /// + /// Resets zone's write pointer to zone start + /// + ResetWritePointer = 0x04 + } } }