Files
Aaru/ATA/Identify.cs

2243 lines
109 KiB
C#
Raw Normal View History

2017-05-19 20:28:49 +01:00
// /***************************************************************************
2020-02-27 12:31:23 +00:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// Filename : Identify.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// Component : Device structures decoders.
//
// --[ Description ] ----------------------------------------------------------
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// Decodes ATA IDENTIFY DEVICE response.
//
// --[ License ] --------------------------------------------------------------
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2020-12-31 23:08:22 +00:00
// Copyright © 2011-2021 Natalia Portillo
// ****************************************************************************/
* LICENSE.MIT: * LICENSE.LGPL: Added LICENSE files for LGPL and MIT licenses. * DiscImageChef.Devices/Enums.cs: * DiscImageChef.Partitions/MBR.cs: * DiscImageChef.Partitions/RDB.cs: * DiscImageChef.DiscImages/GDI.cs: * DiscImageChef.Partitions/Sun.cs: * DiscImageChef.DiscImages/VHD.cs: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Partitions/NeXT.cs: * DiscImageChef.Devices/Command.cs: * DiscImageChef.DiscImages/Nero.cs: * DiscImageChef.Decoders/CD/PMA.cs: * DiscImageChef.Decoders/CD/TOC.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Helpers/PrintHex.cs: * DiscImageChef.Helpers/Swapping.cs: * DiscImageChef.Decoders/DVD/PRI.cs: * DiscImageChef.Decoders/DVD/DMI.cs: * DiscImageChef.Decoders/DVD/DDS.cs: * DiscImageChef.Decoders/DVD/RMD.cs: * DiscImageChef.Decoders/DVD/UDI.cs: * DiscImageChef.Partitions/Atari.cs: * DiscImageChef.Decoders/DVD/BCA.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Decoders/DVD/PFI.cs: * DiscImageChef.Decoders/CD/ATIP.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.DiscImages/CDRWin.cs: * DiscImageChef.DiscImages/CDRDAO.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef.Decoders/Xbox/DMI.cs: * DiscImageChef.Helpers/ArrayFill.cs: * DiscImageChef.Settings/Settings.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Decoders/DVD/CPRM.cs: * DiscImageChef.Decoders/DVD/ADIP.cs: * DiscImageChef.Decoders/CD/Enums.cs: * DiscImageChef.Decoders/DVD/AACS.cs: * DiscImageChef.Decoders/SCSI/EVPD.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Metadata/MediaType.cs: * DiscImageChef.Console/DicConsole.cs: * DiscImageChef.Decoders/DVD/Spare.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Decoders/DVD/Enums.cs: * DiscImageChef.Filesystems/Symbian.cs: * DiscImageChef.Decoders/SCSI/Types.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.DiscImages/TeleDisk.cs: * DiscImageChef.Decoders/SCSI/Sense.cs: * DiscImageChef.Decoders/CD/FullTOC.cs: * DiscImageChef.Decoders/Blu-ray/DI.cs: * DiscImageChef.Decoders/ATA/Errors.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Devices/Linux/Enums.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/Structs.cs: * DiscImageChef.DiscImages/Apple2MG.cs: * DiscImageChef.Decoders/SCSI/Modes.cs: * DiscImageChef.Metadata/Dimensions.cs: * DiscImageChef.Partitions/AppleMap.cs: * DiscImageChef.Decoders/Floppy/ISO.cs: * DiscImageChef.Decoders/DVD/Layers.cs: * DiscImageChef.Decoders/CD/Session.cs: * DiscImageChef.Decoders/SCSI/Enums.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef.Helpers/DateHandlers.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.DiscImages/ImageInfo.cs: * DiscImageChef.Checksums/MD5Context.cs: * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Helpers/ArrayIsEmpty.cs: * DiscImageChef.Decoders/Blu-ray/BCA.cs: * DiscImageChef.Decoders/Blu-ray/DDS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Decoders/ATA/Identify.cs: * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/FreeBSD/Enums.cs: * DiscImageChef.Decoders/SCSI/Inquiry.cs: * DiscImageChef.Metadata/DeviceReport.cs: * DiscImageChef.Decoders/Floppy/Amiga.cs: * DiscImageChef.Devices/Linux/Structs.cs: * DiscImageChef.Devices/Windows/Enums.cs: * DiscImageChef.Decoders/DVD/CSS&CPRM.cs: * DiscImageChef.Checksums/SHA1Context.cs: * DiscImageChef.DiscImages/DiskCopy42.cs: * DiscImageChef.Partitions/PartPlugin.cs: * DiscImageChef.CommonTypes/Partition.cs: * DiscImageChef.Decoders/Floppy/Enums.cs: * DiscImageChef.CommonTypes/MediaType.cs: * DiscImageChef.Decoders/Floppy/Apple2.cs: * DiscImageChef.Devices/Windows/Extern.cs: * DiscImageChef.Decoders/SCSI/MMC/CPRM.cs: * DiscImageChef.Helpers/StringHandlers.cs: * DiscImageChef.DiscImages/ImagePlugin.cs: * DiscImageChef.Checksums/CRC64Context.cs: * DiscImageChef.Checksums/CRC32Context.cs: * DiscImageChef.DiscImages/ZZZRawImage.cs: * DiscImageChef.Checksums/CRC16Context.cs: * DiscImageChef.Filesystems/LisaFS/Dir.cs: * DiscImageChef.Decoders/DVD/Cartridge.cs: * DiscImageChef.Decoders/Blu-ray/Spare.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Decoders/SCSI/MMC/AACS.cs: * DiscImageChef.Devices/FreeBSD/Extern.cs: * DiscImageChef.Devices/Device/Commands.cs: * DiscImageChef.Checksums/SHA384Context.cs: * DiscImageChef.Devices/FreeBSD/Command.cs: * DiscImageChef.Checksums/SHA512Context.cs: * DiscImageChef.Decoders/SCSI/MMC/Enums.cs: * DiscImageChef.Devices/Windows/Command.cs: * DiscImageChef.Devices/FreeBSD/Structs.cs: * DiscImageChef.Devices/Windows/Structs.cs: * DiscImageChef.Filesystems/LisaFS/Info.cs: * DiscImageChef.Checksums/SHA256Context.cs: * DiscImageChef.Filesystems/LisaFS/File.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: * DiscImageChef.Filesystems/LisaFS/Super.cs: * DiscImageChef.Filesystems/LisaFS/Xattr.cs: * DiscImageChef.Checksums/Adler32Context.cs: * DiscImageChef.Decoders/Floppy/System34.cs: * DiscImageChef.Checksums/SpamSumContext.cs: * DiscImageChef.Decoders/SCSI/MMC/Hybrid.cs: * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Filesystems/LisaFS/Consts.cs: * DiscImageChef.Filesystems/LisaFS/LisaFS.cs: * DiscImageChef.Decoders/Floppy/Commodore.cs: * DiscImageChef.Checksums/FletcherContext.cs: * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Devices/Device/Destructor.cs: * DiscImageChef.Decoders/Floppy/AppleSony.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: * DiscImageChef.Decoders/SCSI/VendorString.cs: * DiscImageChef.Decoders/SCSI/MMC/Features.cs: * DiscImageChef.Devices/Device/Constructor.cs: * DiscImageChef.Checksums/RIPEMD160Context.cs: * DiscImageChef.Decoders/CD/CDTextOnLeadIn.cs: * DiscImageChef.Decoders/Blu-ray/Cartridge.cs: * DiscImageChef.Decoders/Floppy/System3740.cs: * DiscImageChef.Filesystems/LisaFS/Encoding.cs: * DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs: * DiscImageChef.Helpers/BigEndianBitConverter.cs: * DiscImageChef.Decoders/Floppy/Perpendicular.cs: * DiscImageChef.Decoders/SCSI/SSC/BlockLimits.cs: * DiscImageChef.Decoders/SCSI/MMC/WriteProtect.cs: * DiscImageChef.Devices/Device/ScsiCommands/HP.cs: * DiscImageChef.Devices/Device/AtaCommands/Cfa.cs: * DiscImageChef.Devices/Device/ScsiCommands/NEC.cs: * DiscImageChef.Helpers/EndianAwareBinaryReader.cs: * DiscImageChef.Devices/Device/ScsiCommands/MMC.cs: * DiscImageChef.Devices/Device/AtaCommands/MCPT.cs: * DiscImageChef.Devices/Device/ScsiCommands/SSC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SMC.cs: * DiscImageChef.Devices/Device/ScsiCommands/SBC.cs: * DiscImageChef.Metadata/Properties/AssemblyInfo.cs: * DiscImageChef.Devices/Device/AtaCommands/Atapi.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata28.cs: * DiscImageChef.Devices/Device/AtaCommands/Smart.cs: * DiscImageChef.Decoders/SCSI/SSC/DensitySupport.cs: * DiscImageChef.Devices/Device/AtaCommands/Ata48.cs: * DiscImageChef.Decoders/SCSI/MMC/DiscInformation.cs: * DiscImageChef.Devices/Device/AtaCommands/AtaCHS.cs: * DiscImageChef.Devices/Device/ScsiCommands/SyQuest.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs: * DiscImageChef.Devices/Device/ScsiCommands/Plasmon.cs: * DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs: * DiscImageChef.Devices/Device/ScsiCommands/Adaptec.cs: * DiscImageChef.Devices/Device/ScsiCommands/Fujitsu.cs: * DiscImageChef.Devices/Device/ScsiCommands/HL-DT-ST.cs: * DiscImageChef.Devices/Device/ScsiCommands/Certance.cs: * DiscImageChef.Decoders/SCSI/DiscStructureCapabilities.cs: * DiscImageChef.Devices/Device/ScsiCommands/ArchiveCorp.cs: Relicensed as LGPL. Updated standard header. * DiscImageChef/Main.cs: * DiscImageChef/Plugins.cs: * DiscImageChef/Options.cs: * DiscImageChef/Commands/Ls.cs: * DiscImageChef/Core/IBGLog.cs: * DiscImageChef/Core/MHDDLog.cs: * DiscImageChef/AssemblyInfo.cs: * DiscImageChef/Core/Checksum.cs: * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Core/Statistics.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Compare.cs: * DiscImageChef.Interop/DetectOS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Commands.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/DetectImageFormat.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef/Commands/Benchmark.cs: * DiscImageChef/Commands/Configure.cs: * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef.Interop/PlatformID.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/Statistics.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Checksums/ReedSolomon.cs: * DiscImageChef/Commands/DeviceReport.cs: * DiscImageChef/Commands/ExtractFiles.cs: * DiscImageChef.Checksums/CDChecksums.cs: * DiscImageChef/Commands/CreateSidecar.cs: Updated standard header. * DiscImageChef.Checksums/DiscImageChef.Checksums.csproj: Relicensed project as LGPL. Updated standard header. Embed license as resource. * DiscImageChef.Console/DiscImageChef.Console.csproj: * DiscImageChef.Devices/DiscImageChef.Devices.csproj: * DiscImageChef.Helpers/DiscImageChef.Helpers.csproj: * DiscImageChef.Settings/DiscImageChef.Settings.csproj: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: * DiscImageChef.Metadata/DiscImageChef.Metadata.csproj: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: * DiscImageChef.DiscImages/DiscImageChef.DiscImages.csproj: * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: * DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj: Relicensed as LGPL. Updated standard header. Embed license as resource. * DiscImageChef/DiscImageChef.csproj: * DiscImageChef.Interop/DiscImageChef.Interop.csproj: Updated standard header. Embed license as resource.
2016-07-28 18:13:49 +01:00
using System;
using System.Diagnostics.CodeAnalysis;
2015-10-17 01:26:17 +01:00
using System.Text;
2020-02-27 00:33:24 +00:00
using Aaru.CommonTypes.Structs.Devices.SCSI;
2020-02-27 00:33:24 +00:00
namespace Aaru.Decoders.ATA
{
2020-03-11 22:31:09 +00:00
// Information from following standards:
// T10-791D rev. 4c (ATA)
// T10-948D rev. 4c (ATA-2)
// T13-1153D rev. 18 (ATA/ATAPI-4)
// T13-1321D rev. 3 (ATA/ATAPI-5)
// T13-1410D rev. 3b (ATA/ATAPI-6)
// T13-1532D rev. 4b (ATA/ATAPI-7)
// T13-1699D rev. 3f (ATA8-ACS)
// T13-1699D rev. 4a (ATA8-ACS)
// T13-2015D rev. 2 (ACS-2)
// T13-2161D rev. 5 (ACS-3)
// CF+ & CF Specification rev. 1.4 (CFA)
2019-11-25 00:54:38 +00:00
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Identify
{
public static string Prettify(byte[] IdentifyDeviceResponse)
2015-10-17 01:26:17 +01:00
{
2019-11-25 00:54:38 +00:00
if(IdentifyDeviceResponse.Length != 512)
return null;
2016-04-19 02:11:47 +01:00
CommonTypes.Structs.Devices.ATA.Identify.IdentifyDevice? decoded =
CommonTypes.Structs.Devices.ATA.Identify.Decode(IdentifyDeviceResponse);
2019-11-25 00:54:38 +00:00
return Prettify(decoded);
2015-10-17 01:26:17 +01:00
}
public static string Prettify(CommonTypes.Structs.Devices.ATA.Identify.IdentifyDevice? IdentifyDeviceResponse)
2015-10-17 01:26:17 +01:00
{
2019-11-25 00:54:38 +00:00
if(IdentifyDeviceResponse == null)
return null;
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
var sb = new StringBuilder();
2015-10-17 01:26:17 +01:00
bool atapi = false;
2018-06-22 08:08:38 +01:00
bool cfa = false;
2015-10-17 01:26:17 +01:00
CommonTypes.Structs.Devices.ATA.Identify.IdentifyDevice ATAID = IdentifyDeviceResponse.Value;
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
NonMagnetic))
2018-06-22 08:08:38 +01:00
if((ushort)ATAID.GeneralConfiguration != 0x848A)
atapi = true;
else
cfa = true;
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if(atapi)
sb.AppendLine("ATAPI device");
else if(cfa)
sb.AppendLine("CompactFlash device");
else
sb.AppendLine("ATA device");
if(ATAID.Model != "")
sb.AppendFormat("Model: {0}", ATAID.Model).AppendLine();
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if(ATAID.FirmwareRevision != "")
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Firmware revision: {0}", ATAID.FirmwareRevision).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.SerialNumber != "")
sb.AppendFormat("Serial #: {0}", ATAID.SerialNumber).AppendLine();
2016-04-19 02:11:47 +01:00
if(ATAID.AdditionalPID != "")
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Additional product ID: {0}", ATAID.AdditionalPID).AppendLine();
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeSet) &&
!ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeClear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MediaSerial)
)
2015-10-17 01:26:17 +01:00
{
2016-04-19 02:11:47 +01:00
if(ATAID.MediaManufacturer != "")
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Media manufacturer: {0}", ATAID.MediaManufacturer).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.MediaSerial != "")
sb.AppendFormat("Media serial #: {0}", ATAID.MediaSerial).AppendLine();
2015-10-17 01:26:17 +01:00
}
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.WWN))
sb.AppendFormat("World Wide Name: {0:X16}", ATAID.WWN).AppendLine();
2015-10-17 01:26:17 +01:00
}
2019-11-25 00:54:38 +00:00
bool ata1 = false, ata2 = false, ata3 = false, ata4 = false, ata5 = false, ata6 = false, ata7 = false,
acs = false, acs2 = false, acs3 = false, acs4 = false;
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if((ushort)ATAID.MajorVersion == 0x0000 ||
(ushort)ATAID.MajorVersion == 0xFFFF)
2015-10-17 01:26:17 +01:00
{
// Obsolete in ATA-2, if present, device supports ATA-1
ata1 |=
ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
FastIDE) ||
ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
SlowIDE) ||
2020-02-27 00:33:24 +00:00
ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
UltraFastIDE);
ata2 |= ATAID.ExtendedIdentify.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.ExtendedIdentifyBit.
Words64to70Valid);
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if(!ata1 &&
!ata2 &&
!atapi &&
!cfa)
ata2 = true;
2016-04-19 02:11:47 +01:00
2015-10-17 01:26:17 +01:00
ata4 |= atapi;
ata3 |= cfa;
2019-11-25 00:54:38 +00:00
if(cfa && ata1)
ata1 = false;
if(cfa && ata2)
ata2 = false;
2015-10-17 01:26:17 +01:00
ata5 |= ATAID.Signature == 0xA5;
}
else
{
ata1 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.Ata1);
ata2 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.Ata2);
ata3 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.Ata3);
ata4 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.AtaAtapi4);
ata5 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.AtaAtapi5);
ata6 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.AtaAtapi6);
ata7 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.AtaAtapi7);
acs |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.Ata8ACS);
acs2 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.ACS2);
acs3 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.ACS3);
acs4 |= ATAID.MajorVersion.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.MajorVersionBit.ACS4);
2015-10-17 01:26:17 +01:00
}
int maxatalevel = 0;
int minatalevel = 255;
sb.Append("Supported ATA versions: ");
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(ata1)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA-1 ");
maxatalevel = 1;
2020-07-22 13:20:25 +01:00
minatalevel = 1;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata2)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA-2 ");
maxatalevel = 2;
2019-11-25 00:54:38 +00:00
if(minatalevel > 2)
minatalevel = 2;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata3)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA-3 ");
maxatalevel = 3;
2019-11-25 00:54:38 +00:00
if(minatalevel > 3)
minatalevel = 3;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata4)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA/ATAPI-4 ");
maxatalevel = 4;
2019-11-25 00:54:38 +00:00
if(minatalevel > 4)
minatalevel = 4;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata5)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA/ATAPI-5 ");
maxatalevel = 5;
2019-11-25 00:54:38 +00:00
if(minatalevel > 5)
minatalevel = 5;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata6)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA/ATAPI-6 ");
maxatalevel = 6;
2019-11-25 00:54:38 +00:00
if(minatalevel > 6)
minatalevel = 6;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(ata7)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA/ATAPI-7 ");
maxatalevel = 7;
2019-11-25 00:54:38 +00:00
if(minatalevel > 7)
minatalevel = 7;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(acs)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA8-ACS ");
maxatalevel = 8;
2019-11-25 00:54:38 +00:00
if(minatalevel > 8)
minatalevel = 8;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(acs2)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA8-ACS2 ");
maxatalevel = 9;
2019-11-25 00:54:38 +00:00
if(minatalevel > 9)
minatalevel = 9;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(acs3)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA8-ACS3 ");
maxatalevel = 10;
2019-11-25 00:54:38 +00:00
if(minatalevel > 10)
minatalevel = 10;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(acs4)
2015-10-17 01:26:17 +01:00
{
sb.Append("ATA8-ACS4 ");
maxatalevel = 11;
2019-11-25 00:54:38 +00:00
if(minatalevel > 11)
minatalevel = 11;
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2015-10-17 01:26:17 +01:00
sb.AppendLine();
sb.Append("Maximum ATA revision supported: ");
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(maxatalevel >= 3)
switch(ATAID.MinorVersion)
2015-10-17 01:26:17 +01:00
{
case 0x0000:
case 0xFFFF:
sb.AppendLine("Minor ATA version not specified");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0001:
sb.AppendLine("ATA (ATA-1) X3T9.2 781D prior to revision 4");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0002:
sb.AppendLine("ATA-1 published, ANSI X3.221-1994");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0003:
sb.AppendLine("ATA (ATA-1) X3T9.2 781D revision 4");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0004:
sb.AppendLine("ATA-2 published, ANSI X3.279-1996");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0005:
sb.AppendLine("ATA-2 X3T10 948D prior to revision 2k");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0006:
sb.AppendLine("ATA-3 X3T10 2008D revision 1");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0007:
sb.AppendLine("ATA-2 X3T10 948D revision 2k");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0008:
sb.AppendLine("ATA-3 X3T10 2008D revision 0");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0009:
sb.AppendLine("ATA-2 X3T10 948D revision 3");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000A:
sb.AppendLine("ATA-3 published, ANSI X3.298-1997");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000B:
sb.AppendLine("ATA-3 X3T10 2008D revision 6");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000C:
sb.AppendLine("ATA-3 X3T13 2008D revision 7");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000D:
sb.AppendLine("ATA/ATAPI-4 X3T13 1153D revision 6");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000E:
sb.AppendLine("ATA/ATAPI-4 T13 1153D revision 13");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x000F:
sb.AppendLine("ATA/ATAPI-4 X3T13 1153D revision 7");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0010:
sb.AppendLine("ATA/ATAPI-4 T13 1153D revision 18");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0011:
sb.AppendLine("ATA/ATAPI-4 T13 1153D revision 15");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0012:
sb.AppendLine("ATA/ATAPI-4 published, ANSI INCITS 317-1998");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0013:
sb.AppendLine("ATA/ATAPI-5 T13 1321D revision 3");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0014:
sb.AppendLine("ATA/ATAPI-4 T13 1153D revision 14");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0015:
sb.AppendLine("ATA/ATAPI-5 T13 1321D revision 1");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0016:
sb.AppendLine("ATA/ATAPI-5 published, ANSI INCITS 340-2000");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0017:
sb.AppendLine("ATA/ATAPI-4 T13 1153D revision 17");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0018:
sb.AppendLine("ATA/ATAPI-6 T13 1410D revision 0");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0019:
sb.AppendLine("ATA/ATAPI-6 T13 1410D revision 3a");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001A:
sb.AppendLine("ATA/ATAPI-7 T13 1532D revision 1");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001B:
sb.AppendLine("ATA/ATAPI-6 T13 1410D revision 2");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001C:
sb.AppendLine("ATA/ATAPI-6 T13 1410D revision 1");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001D:
sb.AppendLine("ATA/ATAPI-7 published ANSI INCITS 397-2005");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001E:
sb.AppendLine("ATA/ATAPI-7 T13 1532D revision 0");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x001F:
sb.AppendLine("ACS-3 Revision 3b");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0021:
sb.AppendLine("ATA/ATAPI-7 T13 1532D revision 4a");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0022:
sb.AppendLine("ATA/ATAPI-6 published, ANSI INCITS 361-2002");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0027:
sb.AppendLine("ATA8-ACS revision 3c");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0028:
sb.AppendLine("ATA8-ACS revision 6");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0029:
sb.AppendLine("ATA8-ACS revision 4");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0031:
sb.AppendLine("ACS-2 Revision 2");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0033:
sb.AppendLine("ATA8-ACS Revision 3e");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0039:
sb.AppendLine("ATA8-ACS Revision 4c");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0042:
sb.AppendLine("ATA8-ACS Revision 3f");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0052:
sb.AppendLine("ATA8-ACS revision 3b");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x006D:
sb.AppendLine("ACS-3 Revision 5");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0082:
sb.AppendLine("ACS-2 published, ANSI INCITS 482-2012");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0107:
sb.AppendLine("ATA8-ACS revision 2d");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x0110:
sb.AppendLine("ACS-2 Revision 3");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x011B:
sb.AppendLine("ACS-3 Revision 4");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
sb.AppendFormat("Unknown ATA revision 0x{0:X4}", ATAID.MinorVersion).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
2016-04-19 02:11:47 +01:00
switch((ATAID.TransportMajorVersion & 0xF000) >> 12)
2015-10-17 01:26:17 +01:00
{
case 0x0:
sb.Append("Parallel ATA device: ");
2019-11-25 00:54:38 +00:00
if((ATAID.TransportMajorVersion & 0x0002) == 0x0002)
sb.Append("ATA/ATAPI-7 ");
if((ATAID.TransportMajorVersion & 0x0001) == 0x0001)
sb.Append("ATA8-APT ");
2015-10-17 01:26:17 +01:00
sb.AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0x1:
sb.Append("Serial ATA device: ");
2019-11-25 00:54:38 +00:00
if((ATAID.TransportMajorVersion & 0x0001) == 0x0001)
sb.Append("ATA8-AST ");
if((ATAID.TransportMajorVersion & 0x0002) == 0x0002)
sb.Append("SATA 1.0a ");
if((ATAID.TransportMajorVersion & 0x0004) == 0x0004)
sb.Append("SATA II Extensions ");
if((ATAID.TransportMajorVersion & 0x0008) == 0x0008)
sb.Append("SATA 2.5 ");
if((ATAID.TransportMajorVersion & 0x0010) == 0x0010)
sb.Append("SATA 2.6 ");
if((ATAID.TransportMajorVersion & 0x0020) == 0x0020)
sb.Append("SATA 3.0 ");
if((ATAID.TransportMajorVersion & 0x0040) == 0x0040)
sb.Append("SATA 3.1 ");
2015-10-17 01:26:17 +01:00
sb.AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 0xE:
sb.AppendLine("SATA Express device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2019-11-25 00:54:38 +00:00
sb.AppendFormat("Unknown transport type 0x{0:X1}", (ATAID.TransportMajorVersion & 0xF000) >> 12).
AppendLine();
2015-10-17 01:26:17 +01:00
break;
}
2016-04-19 02:11:47 +01:00
if(atapi)
2015-10-17 01:26:17 +01:00
{
// Bits 12 to 8, SCSI Peripheral Device Type
2017-12-21 14:30:38 +00:00
switch((PeripheralDeviceTypes)(((ushort)ATAID.GeneralConfiguration & 0x1F00) >> 8))
2015-10-17 01:26:17 +01:00
{
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.DirectAccess: //0x00,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Direct-access device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.SequentialAccess: //0x01,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Sequential-access device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.PrinterDevice: //0x02,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Printer device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.ProcessorDevice: //0x03,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Processor device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.WriteOnceDevice: //0x04,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Write-once device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.MultiMediaDevice: //0x05,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI CD-ROM/DVD/etc device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.ScannerDevice: //0x06,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Scanner device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.OpticalDevice: //0x07,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Optical memory device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.MediumChangerDevice: //0x08,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Medium change device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.CommsDevice: //0x09,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Communications device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.PrePressDevice1: //0x0A,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Graphics arts pre-press device (defined in ASC IT8)");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.PrePressDevice2: //0x0B,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Graphics arts pre-press device (defined in ASC IT8)");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.ArrayControllerDevice: //0x0C,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Array controller device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.EnclosureServiceDevice: //0x0D,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Enclosure services device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.SimplifiedDevice: //0x0E,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Simplified direct-access device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.OCRWDevice: //0x0F,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Optical card reader/writer device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.BridgingExpander: //0x10,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Bridging Expanders");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.ObjectDevice: //0x11,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Object-based Storage Device");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.ADCDevice: //0x12,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Automation/Drive Interface");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.WellKnownDevice: //0x1E,
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Well known logical unit");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
2017-12-21 14:30:38 +00:00
case PeripheralDeviceTypes.UnknownDevice: //0x1F
2015-10-17 01:26:17 +01:00
sb.AppendLine("ATAPI Unknown or no device type");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2017-12-19 20:33:03 +00:00
sb.AppendFormat("ATAPI Unknown device type field value 0x{0:X2}",
((ushort)ATAID.GeneralConfiguration & 0x1F00) >> 8).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
// ATAPI DRQ behaviour
2016-04-19 02:11:47 +01:00
switch(((ushort)ATAID.GeneralConfiguration & 0x60) >> 5)
2015-10-17 01:26:17 +01:00
{
case 0:
sb.AppendLine("Device shall set DRQ within 3 ms of receiving PACKET");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 1:
sb.AppendLine("Device shall assert INTRQ when DRQ is set to one");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 2:
sb.AppendLine("Device shall set DRQ within 50 µs of receiving PACKET");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Unknown ATAPI DRQ behaviour code {0}",
((ushort)ATAID.GeneralConfiguration & 0x60) >> 5).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
// ATAPI PACKET size
2016-04-19 02:11:47 +01:00
switch((ushort)ATAID.GeneralConfiguration & 0x03)
2015-10-17 01:26:17 +01:00
{
case 0:
sb.AppendLine("ATAPI device uses 12 byte command packet");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 1:
sb.AppendLine("ATAPI device uses 16 byte command packet");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2019-11-25 00:54:38 +00:00
sb.AppendFormat("Unknown ATAPI packet size code {0}",
(ushort)ATAID.GeneralConfiguration & 0x03).AppendLine();
2015-10-17 01:26:17 +01:00
break;
}
}
2016-04-19 02:11:47 +01:00
else if(!cfa)
2015-10-17 01:26:17 +01:00
{
2016-04-19 02:11:47 +01:00
if(minatalevel >= 5)
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.IncompleteResponse))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Incomplete identify response");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
NonMagnetic))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device uses non-magnetic media");
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.GeneralConfigurationBit.
Removable))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device is removable");
2016-04-19 02:11:47 +01:00
if(minatalevel <= 5)
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.Fixed))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device is fixed");
2016-04-19 02:11:47 +01:00
if(ata1)
2015-10-17 01:26:17 +01:00
{
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.SlowIDE))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device transfer rate is <= 5 Mb/s");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.FastIDE))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device transfer rate is > 5 Mb/s but <= 10 Mb/s");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.UltraFastIDE))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device transfer rate is > 10 Mb/s");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.SoftSector))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device is soft sectored");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.HardSector))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device is hard sectored");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.NotMFM))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device is not MFM encoded");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.FormatGapReq))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Format speed tolerance gap is required");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.TrackOffset))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Track offset option is available");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.DataStrobeOffset))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Data strobe offset option is available");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.RotationalSpeedTolerance))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Rotational speed tolerance is higher than 0,5%");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.SpindleControl))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Spindle motor control is implemented");
2019-11-25 00:54:38 +00:00
if(ATAID.GeneralConfiguration.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
GeneralConfigurationBit.HighHeadSwitch))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Head switch time is bigger than 15 µs.");
}
}
2019-11-25 00:54:38 +00:00
if(ATAID.NominalRotationRate != 0x0000 &&
ATAID.NominalRotationRate != 0xFFFF)
2018-06-22 08:08:38 +01:00
if(ATAID.NominalRotationRate == 0x0001)
sb.AppendLine("Device does not rotate.");
else
sb.AppendFormat("Device rotate at {0} rpm", ATAID.NominalRotationRate).AppendLine();
2015-10-17 01:26:17 +01:00
2020-07-22 13:20:25 +01:00
uint logicalSectorSize = 0;
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(!atapi)
2015-10-17 01:26:17 +01:00
{
2020-07-22 13:20:25 +01:00
uint physicalSectorSize;
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if((ATAID.PhysLogSectorSize & 0x8000) == 0x0000 &&
(ATAID.PhysLogSectorSize & 0x4000) == 0x4000)
2015-10-17 01:26:17 +01:00
{
2016-04-19 02:11:47 +01:00
if((ATAID.PhysLogSectorSize & 0x1000) == 0x1000)
2019-11-25 00:54:38 +00:00
if(ATAID.LogicalSectorWords <= 255 ||
ATAID.LogicalAlignment == 0xFFFF)
2020-07-22 13:20:25 +01:00
logicalSectorSize = 512;
2018-06-22 08:08:38 +01:00
else
2020-07-22 13:20:25 +01:00
logicalSectorSize = ATAID.LogicalSectorWords * 2;
2019-11-25 00:54:38 +00:00
else
2020-07-22 13:20:25 +01:00
logicalSectorSize = 512;
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if((ATAID.PhysLogSectorSize & 0x2000) == 0x2000)
2020-07-22 13:20:25 +01:00
physicalSectorSize = logicalSectorSize * (uint)Math.Pow(2, ATAID.PhysLogSectorSize & 0xF);
2019-11-25 00:54:38 +00:00
else
2020-07-22 13:20:25 +01:00
physicalSectorSize = logicalSectorSize;
2015-10-17 01:26:17 +01:00
}
else
{
2020-07-22 13:20:25 +01:00
logicalSectorSize = 512;
physicalSectorSize = 512;
2015-10-17 01:26:17 +01:00
}
2020-07-22 13:20:25 +01:00
sb.AppendFormat("Physical sector size: {0} bytes", physicalSectorSize).AppendLine();
sb.AppendFormat("Logical sector size: {0} bytes", logicalSectorSize).AppendLine();
2015-10-17 01:26:17 +01:00
2020-07-22 13:20:25 +01:00
if(logicalSectorSize != physicalSectorSize &&
2019-11-25 00:54:38 +00:00
(ATAID.LogicalAlignment & 0x8000) == 0x0000 &&
(ATAID.LogicalAlignment & 0x4000) == 0x4000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Logical sector starts at offset {0} from physical sector",
ATAID.LogicalAlignment & 0x3FFF).AppendLine();
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if(minatalevel <= 5)
2019-11-25 00:54:38 +00:00
if(ATAID.CurrentCylinders > 0 &&
ATAID.CurrentHeads > 0 &&
ATAID.CurrentSectorsPerTrack > 0)
{
2019-11-25 00:54:38 +00:00
sb.AppendFormat("Cylinders: {0} max., {1} current", ATAID.Cylinders, ATAID.CurrentCylinders).
AppendLine();
sb.AppendFormat("Heads: {0} max., {1} current", ATAID.Heads, ATAID.CurrentHeads).AppendLine();
2019-11-25 00:54:38 +00:00
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Sectors per track: {0} max., {1} current", ATAID.SectorsPerTrack,
ATAID.CurrentSectorsPerTrack).AppendLine();
2019-11-25 00:54:38 +00:00
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Sectors addressable in CHS mode: {0} max., {1} current",
2019-11-25 00:54:38 +00:00
ATAID.Cylinders * ATAID.Heads * ATAID.SectorsPerTrack, ATAID.CurrentSectors).
AppendLine();
}
else
{
sb.AppendFormat("Cylinders: {0}", ATAID.Cylinders).AppendLine();
sb.AppendFormat("Heads: {0}", ATAID.Heads).AppendLine();
sb.AppendFormat("Sectors per track: {0}", ATAID.SectorsPerTrack).AppendLine();
2019-11-25 00:54:38 +00:00
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Sectors addressable in CHS mode: {0}",
ATAID.Cylinders * ATAID.Heads * ATAID.SectorsPerTrack).AppendLine();
}
2015-10-17 01:26:17 +01:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.LBASupport))
sb.AppendFormat("{0} sectors in 28-bit LBA mode", ATAID.LBASectors).AppendLine();
2015-10-17 01:26:17 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.LBA48))
sb.AppendFormat("{0} sectors in 48-bit LBA mode", ATAID.LBA48Sectors).AppendLine();
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if(minatalevel <= 5)
if(ATAID.CurrentSectors > 0)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in CHS mode: {0} bytes, {1} Mb, {2} MiB",
(ulong)ATAID.CurrentSectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
((ulong)ATAID.CurrentSectors * logicalSectorSize) / 1000 / 1000,
((ulong)ATAID.CurrentSectors * 512) / 1024 / 1024).AppendLine();
else
{
ulong currentSectors = (ulong)(ATAID.Cylinders * ATAID.Heads * ATAID.SectorsPerTrack);
2019-11-25 00:54:38 +00:00
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in CHS mode: {0} bytes, {1} Mb, {2} MiB",
currentSectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(currentSectors * logicalSectorSize) / 1000 / 1000,
(currentSectors * 512) / 1024 / 1024).AppendLine();
}
2015-10-17 01:26:17 +01:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.LBASupport))
2020-07-22 13:20:25 +01:00
if(((ulong)ATAID.LBASectors * logicalSectorSize) / 1024 / 1024 > 1000000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 28-bit LBA mode: {0} bytes, {1} Tb, {2} TiB",
2020-07-22 13:20:25 +01:00
(ulong)ATAID.LBASectors * logicalSectorSize,
((ulong)ATAID.LBASectors * logicalSectorSize) / 1000 / 1000 / 1000 / 1000,
2020-07-20 04:34:15 +01:00
((ulong)ATAID.LBASectors * 512) / 1024 / 1024 / 1024 / 1024).AppendLine();
2020-07-22 13:20:25 +01:00
else if(((ulong)ATAID.LBASectors * logicalSectorSize) / 1024 / 1024 > 1000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 28-bit LBA mode: {0} bytes, {1} Gb, {2} GiB",
2020-07-22 13:20:25 +01:00
(ulong)ATAID.LBASectors * logicalSectorSize,
((ulong)ATAID.LBASectors * logicalSectorSize) / 1000 / 1000 / 1000,
2020-07-20 04:34:15 +01:00
((ulong)ATAID.LBASectors * 512) / 1024 / 1024 / 1024).AppendLine();
2015-10-17 01:26:17 +01:00
else
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 28-bit LBA mode: {0} bytes, {1} Mb, {2} MiB",
(ulong)ATAID.LBASectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
((ulong)ATAID.LBASectors * logicalSectorSize) / 1000 / 1000,
((ulong)ATAID.LBASectors * 512) / 1024 / 1024).AppendLine();
2016-04-19 02:11:47 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.LBA48))
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.ExtSectors))
2020-07-22 13:20:25 +01:00
if((ATAID.ExtendedUserSectors * logicalSectorSize) / 1024 / 1024 > 1000000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Tb, {2} TiB",
ATAID.ExtendedUserSectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1000 / 1000 / 1000 / 1000,
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1024 / 1024 / 1024 /
1024).AppendLine();
2020-07-22 13:20:25 +01:00
else if((ATAID.ExtendedUserSectors * logicalSectorSize) / 1024 / 1024 > 1000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Gb, {2} GiB",
ATAID.ExtendedUserSectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1000 / 1000 / 1000,
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1024 / 1024 / 1024).
2019-11-25 00:54:38 +00:00
AppendLine();
2015-10-17 01:26:17 +01:00
else
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Mb, {2} MiB",
ATAID.ExtendedUserSectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1000 / 1000,
(ATAID.ExtendedUserSectors * logicalSectorSize) / 1024 / 1024).AppendLine();
2015-10-17 01:26:17 +01:00
else
{
2020-07-22 13:20:25 +01:00
if((ATAID.LBA48Sectors * logicalSectorSize) / 1024 / 1024 > 1000000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Tb, {2} TiB",
ATAID.LBA48Sectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.LBA48Sectors * logicalSectorSize) / 1000 / 1000 / 1000 / 1000,
(ATAID.LBA48Sectors * logicalSectorSize) / 1024 / 1024 / 1024 / 1024).
2019-11-25 00:54:38 +00:00
AppendLine();
2020-07-22 13:20:25 +01:00
else if((ATAID.LBA48Sectors * logicalSectorSize) / 1024 / 1024 > 1000)
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Gb, {2} GiB",
ATAID.LBA48Sectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.LBA48Sectors * logicalSectorSize) / 1000 / 1000 / 1000,
(ATAID.LBA48Sectors * logicalSectorSize) / 1024 / 1024 / 1024).AppendLine();
2015-10-17 01:26:17 +01:00
else
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Device size in 48-bit LBA mode: {0} bytes, {1} Mb, {2} MiB",
ATAID.LBA48Sectors * logicalSectorSize,
2020-07-22 13:20:25 +01:00
(ATAID.LBA48Sectors * logicalSectorSize) / 1000 / 1000,
(ATAID.LBA48Sectors * logicalSectorSize) / 1024 / 1024).AppendLine();
2015-10-17 01:26:17 +01:00
}
2016-04-19 02:11:47 +01:00
if(ata1 || cfa)
2015-10-17 01:26:17 +01:00
{
2019-11-25 00:54:38 +00:00
if(cfa)
sb.AppendFormat("{0} sectors in card", ATAID.SectorsPerCard).AppendLine();
2015-10-17 01:26:17 +01:00
if(ATAID.UnformattedBPT > 0)
sb.AppendFormat("{0} bytes per unformatted track", ATAID.UnformattedBPT).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
if(ATAID.UnformattedBPS > 0)
sb.AppendFormat("{0} bytes per unformatted sector", ATAID.UnformattedBPS).AppendLine();
}
}
2018-06-22 08:08:38 +01:00
2019-11-25 00:54:38 +00:00
if((ushort)ATAID.SpecificConfiguration != 0x0000 &&
(ushort)ATAID.SpecificConfiguration != 0xFFFF)
2016-04-19 02:11:47 +01:00
switch(ATAID.SpecificConfiguration)
2015-10-17 01:26:17 +01:00
{
case CommonTypes.Structs.Devices.ATA.Identify.SpecificConfigurationEnum.
RequiresSetIncompleteResponse:
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device requires SET FEATURES to spin up and IDENTIFY DEVICE response is incomplete.");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.SpecificConfigurationEnum.RequiresSetCompleteResponse:
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device requires SET FEATURES to spin up and IDENTIFY DEVICE response is complete.");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.SpecificConfigurationEnum.
NotRequiresSetIncompleteResponse:
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device does not require SET FEATURES to spin up and IDENTIFY DEVICE response is incomplete.");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.SpecificConfigurationEnum.
NotRequiresSetCompleteResponse:
2015-10-17 01:26:17 +01:00
sb.AppendLine("Device does not require SET FEATURES to spin up and IDENTIFY DEVICE response is complete.");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2017-12-19 20:33:03 +00:00
sb.AppendFormat("Unknown device specific configuration 0x{0:X4}",
(ushort)ATAID.SpecificConfiguration).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
// Obsolete since ATA-2, however, it is yet used in ATA-8 devices
2019-11-25 00:54:38 +00:00
if(ATAID.BufferSize != 0x0000 &&
ATAID.BufferSize != 0xFFFF &&
ATAID.BufferType != 0x0000 &&
2017-12-19 20:33:03 +00:00
ATAID.BufferType != 0xFFFF)
2016-04-19 02:11:47 +01:00
switch(ATAID.BufferType)
2015-10-17 01:26:17 +01:00
{
case 1:
sb.AppendFormat("{0} KiB of single ported single sector buffer",
(ATAID.BufferSize * 512) / 1024).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case 2:
sb.AppendFormat("{0} KiB of dual ported multi sector buffer", (ATAID.BufferSize * 512) / 1024).
2019-11-25 00:54:38 +00:00
AppendLine();
2015-10-17 01:26:17 +01:00
break;
case 3:
2017-12-19 20:33:03 +00:00
sb.AppendFormat("{0} KiB of dual ported multi sector buffer with read caching",
(ATAID.BufferSize * 512) / 1024).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
sb.AppendFormat("{0} KiB of unknown type {1} buffer", (ATAID.BufferSize * 512) / 1024,
2017-12-19 20:33:03 +00:00
ATAID.BufferType).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
2019-11-25 00:54:38 +00:00
if(ATAID.EccBytes != 0x0000 &&
ATAID.EccBytes != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("READ/WRITE LONG has {0} extra bytes", ATAID.EccBytes).AppendLine();
sb.AppendLine();
sb.Append("Device capabilities:");
2019-11-25 00:54:38 +00:00
2020-07-22 13:20:25 +01:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.StandardStandbyTimer)
)
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Standby time values are standard");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.IORDY))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("IORDY is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.CanDisableIORDY))
2019-11-25 00:54:38 +00:00
sb.Append(" and can be disabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.DMASupport))
2019-11-25 00:54:38 +00:00
sb.AppendLine().Append("DMA is supported");
2015-10-17 01:26:17 +01:00
if(ATAID.Capabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit2.MustBeSet) &&
!ATAID.Capabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit2.MustBeClear))
if(ATAID.Capabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit2.
SpecificStandbyTimer))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device indicates a specific minimum standby timer value");
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.MultipleValid))
2015-10-17 01:26:17 +01:00
{
2019-11-25 00:54:38 +00:00
sb.AppendLine().
AppendFormat("A maximum of {0} sectors can be transferred per interrupt on READ/WRITE MULTIPLE",
2017-12-19 20:33:03 +00:00
ATAID.MultipleSectorNumber);
2019-11-25 00:54:38 +00:00
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("Device supports setting a maximum of {0} sectors",
ATAID.MultipleMaxSectors);
2015-10-17 01:26:17 +01:00
}
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.
PhysicalAlignment1) ||
ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.PhysicalAlignment0))
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("Long Physical Alignment setting is {0}",
(ushort)ATAID.Capabilities & 0x03);
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if(ata1)
if(ATAID.TrustedComputing.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TrustedComputingBit.
TrustedComputing))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device supports doubleword I/O");
if(atapi)
{
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.InterleavedDMA))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("ATAPI device supports interleaved DMA");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.CommandQueue))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("ATAPI device supports command queueing");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.OverlapOperation)
)
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("ATAPI device supports overlapped operations");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.
RequiresATASoftReset))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("ATAPI device requires ATA software reset");
}
2016-04-19 02:11:47 +01:00
if(minatalevel <= 3)
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().AppendFormat("PIO timing mode: {0}", ATAID.PIOTransferTimingMode);
sb.AppendLine().AppendFormat("DMA timing mode: {0}", ATAID.DMATransferTimingMode);
}
sb.AppendLine().Append("Advanced PIO: ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2019-11-25 00:54:38 +00:00
sb.Append("PIO0 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2019-11-25 00:54:38 +00:00
sb.Append("PIO1 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2019-11-25 00:54:38 +00:00
sb.Append("PIO2 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2019-11-25 00:54:38 +00:00
sb.Append("PIO3 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2019-11-25 00:54:38 +00:00
sb.Append("PIO4 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2019-11-25 00:54:38 +00:00
sb.Append("PIO5 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2019-11-25 00:54:38 +00:00
sb.Append("PIO6 ");
if(ATAID.APIOSupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2019-11-25 00:54:38 +00:00
sb.Append("PIO7 ");
if(minatalevel <= 3 &&
!atapi)
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Single-word DMA: ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA0 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA1 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA2 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA3 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA4 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA5 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA6 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.DMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2015-10-17 01:26:17 +01:00
{
sb.Append("DMA7 ");
2019-11-25 00:54:38 +00:00
if(ATAID.DMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
}
sb.AppendLine().Append("Multi-word DMA: ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA0 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA1 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA2 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA3 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA4 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA5 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA6 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.MDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2015-10-17 01:26:17 +01:00
{
sb.Append("MDMA7 ");
2019-11-25 00:54:38 +00:00
if(ATAID.MDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
sb.AppendLine().Append("Ultra DMA: ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA0 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode0))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA1 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode1))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA2 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode2))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA3 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode3))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA4 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode4))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA5 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode5))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA6 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode6))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.UDMASupported.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2015-10-17 01:26:17 +01:00
{
sb.Append("UDMA7 ");
2019-11-25 00:54:38 +00:00
if(ATAID.UDMAActive.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TransferMode.Mode7))
2019-11-25 00:54:38 +00:00
sb.Append("(active) ");
2015-10-17 01:26:17 +01:00
}
2019-11-25 00:54:38 +00:00
if(ATAID.MinMDMACycleTime != 0 &&
ATAID.RecMDMACycleTime != 0)
sb.AppendLine().
AppendFormat("At minimum {0} ns. transfer cycle time per word in MDMA, " + "{1} ns. recommended",
2017-12-19 20:33:03 +00:00
ATAID.MinMDMACycleTime, ATAID.RecMDMACycleTime);
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(ATAID.MinPIOCycleTimeNoFlow != 0)
2019-11-25 00:54:38 +00:00
sb.AppendLine().
AppendFormat("At minimum {0} ns. transfer cycle time per word in PIO, " + "without flow control",
2017-12-19 20:33:03 +00:00
ATAID.MinPIOCycleTimeNoFlow);
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(ATAID.MinPIOCycleTimeFlow != 0)
2019-11-25 00:54:38 +00:00
sb.AppendLine().
AppendFormat("At minimum {0} ns. transfer cycle time per word in PIO, " + "with IORDY flow control",
2017-12-19 20:33:03 +00:00
ATAID.MinPIOCycleTimeFlow);
2015-10-17 01:26:17 +01:00
if(ATAID.MaxQueueDepth != 0)
sb.AppendLine().AppendFormat("{0} depth of queue maximum", ATAID.MaxQueueDepth + 1);
2015-10-17 01:26:17 +01:00
2016-04-19 02:11:47 +01:00
if(atapi)
2015-10-17 01:26:17 +01:00
{
2016-04-19 02:11:47 +01:00
if(ATAID.PacketBusRelease != 0)
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("{0} ns. typical to release bus from receipt of PACKET",
ATAID.PacketBusRelease);
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if(ATAID.ServiceBusyClear != 0)
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("{0} ns. typical to clear BSY bit from receipt of SERVICE",
ATAID.ServiceBusyClear);
2015-10-17 01:26:17 +01:00
}
if((ATAID.TransportMajorVersion & 0xF000) >> 12 == 0x1 ||
(ATAID.TransportMajorVersion & 0xF000) >> 12 == 0xE)
2015-10-17 01:26:17 +01:00
{
if(!ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.Clear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
Gen1Speed))
sb.AppendLine().Append("SATA 1.5Gb/s is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
Gen2Speed))
sb.AppendLine().Append("SATA 3.0Gb/s is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
Gen3Speed))
sb.AppendLine().Append("SATA 6.0Gb/s is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
PowerReceipt))
sb.AppendLine().Append("Receipt of host initiated power management requests is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
PHYEventCounter))
sb.AppendLine().Append("PHY Event counters are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
HostSlumbTrans))
sb.AppendLine().Append("Supports host automatic partial to slumber transitions is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
DevSlumbTrans))
sb.AppendLine().Append("Supports device automatic partial to slumber transitions is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.NCQ))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("NCQ is supported");
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
NCQPriority))
sb.AppendLine().Append("NCQ priority is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
UnloadNCQ))
sb.AppendLine().Append("Unload is supported with outstanding NCQ commands");
2015-10-17 01:26:17 +01:00
}
}
if(!ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit2.Clear)
)
2015-10-17 01:26:17 +01:00
{
if(!ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
Clear) &&
ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.NCQ))
2015-10-17 01:26:17 +01:00
{
if(ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATACapabilitiesBit2.NCQMgmt))
sb.AppendLine().Append("NCQ queue management is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATACapabilitiesBit2.NCQStream))
sb.AppendLine().Append("NCQ streaming is supported");
2015-10-17 01:26:17 +01:00
}
2016-04-19 02:11:47 +01:00
if(atapi)
2015-10-17 01:26:17 +01:00
{
if(ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATACapabilitiesBit2.HostEnvDetect))
sb.AppendLine().Append("ATAPI device supports host environment detection");
2019-11-25 00:54:38 +00:00
if(ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATACapabilitiesBit2.DevAttSlimline))
sb.AppendLine().Append("ATAPI device supports attention on slimline connected devices");
2015-10-17 01:26:17 +01:00
}
//sb.AppendFormat("Negotiated speed = {0}", ((ushort)ATAID.SATACapabilities2 & 0x000E) >> 1);
2016-04-19 02:11:47 +01:00
}
2015-10-17 01:26:17 +01:00
}
2019-11-25 00:54:38 +00:00
if(ATAID.InterseekDelay != 0x0000 &&
ATAID.InterseekDelay != 0xFFFF)
2020-07-22 13:20:25 +01:00
sb.AppendLine().AppendFormat("{0} microseconds of interseek delay for ISO-7779 acoustic testing",
2017-12-19 20:33:03 +00:00
ATAID.InterseekDelay);
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if((ushort)ATAID.DeviceFormFactor != 0x0000 &&
(ushort)ATAID.DeviceFormFactor != 0xFFFF)
2016-04-19 02:11:47 +01:00
switch(ATAID.DeviceFormFactor)
2015-10-17 01:26:17 +01:00
{
case CommonTypes.Structs.Devices.ATA.Identify.DeviceFormFactorEnum.FiveAndQuarter:
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device nominal size is 5.25\"");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.DeviceFormFactorEnum.ThreeAndHalf:
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device nominal size is 3.5\"");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.DeviceFormFactorEnum.TwoAndHalf:
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device nominal size is 2.5\"");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.DeviceFormFactorEnum.OnePointEight:
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device nominal size is 1.8\"");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
case CommonTypes.Structs.Devices.ATA.Identify.DeviceFormFactorEnum.LessThanOnePointEight:
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Device nominal size is smaller than 1.8\"");
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
default:
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("Device nominal size field value {0} is unknown",
ATAID.DeviceFormFactor);
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
break;
}
2016-04-19 02:11:47 +01:00
if(atapi)
if(ATAID.ATAPIByteCount > 0)
2015-10-17 01:26:17 +01:00
sb.AppendLine().AppendFormat("{0} bytes count limit for ATAPI", ATAID.ATAPIByteCount);
2016-04-19 02:11:47 +01:00
if(cfa)
if((ATAID.CFAPowerMode & 0x8000) == 0x8000)
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("CompactFlash device supports power mode 1");
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if((ATAID.CFAPowerMode & 0x2000) == 0x2000)
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("CompactFlash power mode 1 required for one or more commands");
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if((ATAID.CFAPowerMode & 0x1000) == 0x1000)
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("CompactFlash power mode 1 is disabled");
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("CompactFlash device uses a maximum of {0} mA",
ATAID.CFAPowerMode & 0x0FFF);
2015-10-17 01:26:17 +01:00
}
sb.AppendLine();
sb.AppendLine().Append("Command set and features:");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Nop))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("NOP is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Nop))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.ReadBuffer))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("READ BUFFER is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.ReadBuffer))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.WriteBuffer))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("WRITE BUFFER is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.WriteBuffer))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.HPA))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Host Protected Area is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.HPA))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.DeviceReset))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("DEVICE RESET is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.DeviceReset))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Service))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("SERVICE interrupt is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Service))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Release))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Release is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Release))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.LookAhead))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Look-ahead read is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.LookAhead))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.WriteCache))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Write cache is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.WriteCache))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Packet))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("PACKET is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.Packet))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.PowerManagement))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Power management is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.
PowerManagement))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.RemovableMedia))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Removable media feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.
RemovableMedia))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.SecurityMode))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Security mode is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.SecurityMode))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.Capabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit.LBASupport))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("28-bit LBA is supported");
2016-04-19 02:11:47 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.MustBeSet) &&
!ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.MustBeClear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.LBA48))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("48-bit LBA is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.LBA48))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.FlushCache))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("FLUSH CACHE is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
FlushCache))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.FlushCacheExt))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("FLUSH CACHE EXT is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
FlushCacheExt))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.DCO))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Device Configuration Overlay feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.DCO))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.AAM))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Automatic Acoustic Management is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.AAM))
2017-12-19 20:33:03 +00:00
sb.AppendFormat(" and enabled with value {0} (vendor recommends {1}", ATAID.CurrentAAM,
ATAID.RecommendedAAM);
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.SetMax))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("SET MAX security extension is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.SetMax))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
AddressOffsetReservedAreaBoot))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Address Offset Reserved Area Boot is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
AddressOffsetReservedAreaBoot))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
SetFeaturesRequired))
sb.AppendLine().Append("SET FEATURES is required before spin-up");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.PowerUpInStandby))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Power-up in standby is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
PowerUpInStandby))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
RemovableNotification))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Removable Media Status Notification is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
RemovableNotification))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.APM))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Advanced Power Management is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.APM))
sb.AppendFormat(" and enabled with value {0}", ATAID.CurrentAPM);
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.CompactFlash))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("CompactFlash feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
CompactFlash))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.RWQueuedDMA))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("READ DMA QUEUED and WRITE DMA QUEUED are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
RWQueuedDMA))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.DownloadMicrocode))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("DOWNLOAD MICROCODE is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit2.
DownloadMicrocode))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
}
if(ATAID.CommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.SMART))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("S.M.A.R.T. is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit.SMART))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
Supported))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("S.M.A.R.T. Command Transport is supported");
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeSet) &&
!ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeClear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.SMARTSelfTest))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("S.M.A.R.T. self-testing is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
SMARTSelfTest))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.SMARTLog))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("S.M.A.R.T. error logging is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
SMARTLog))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.IdleImmediate))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("IDLE IMMEDIATE with UNLOAD FEATURE is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
IdleImmediate))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.WriteURG))
sb.AppendLine().Append("URG bit is supported in WRITE STREAM DMA EXT and WRITE STREAM EXT");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.ReadURG))
sb.AppendLine().Append("URG bit is supported in READ STREAM DMA EXT and READ STREAM EXT");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.WWN))
sb.AppendLine().Append("Device has a World Wide Name");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.FUAWriteQ))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("WRITE DMA QUEUED FUA EXT is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
FUAWriteQ))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.FUAWrite))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
FUAWrite))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.GPL))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("General Purpose Logging is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.GPL))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.Streaming))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Streaming feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
Streaming))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MCPT))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Media Card Pass Through command set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MCPT))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MediaSerial))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Media Serial is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.
MediaSerial))
2019-11-25 00:54:38 +00:00
sb.Append(" and valid");
2015-10-17 01:26:17 +01:00
}
}
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.MustBeSet) &&
!ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.MustBeClear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.DSN))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("DSN feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.DSN))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.AMAC))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Accessible Max Address Configuration is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.AMAC))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.ExtPowerCond))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Extended Power Conditions are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
ExtPowerCond))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.ExtStatusReport))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Extended Status Reporting is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
ExtStatusReport))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.FreeFallControl))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Free-fall control feature set is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
FreeFallControl))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
SegmentedDownloadMicrocode))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Segmented feature in DOWNLOAD MICROCODE is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
SegmentedDownloadMicrocode))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.RWDMAExtGpl))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("READ/WRITE DMA EXT GPL are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
RWDMAExtGpl))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.WriteUnc))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("WRITE UNCORRECTABLE is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.
WriteUnc))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.WRV))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Write/Read/Verify is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.WRV))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
sb.AppendLine().AppendFormat("{0} sectors for Write/Read/Verify mode 2", ATAID.WRVSectorCountMode2);
sb.AppendLine().AppendFormat("{0} sectors for Write/Read/Verify mode 3", ATAID.WRVSectorCountMode3);
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.WRV))
2015-10-17 01:26:17 +01:00
sb.AppendLine().AppendFormat("Current Write/Read/Verify mode: {0}", ATAID.WRVMode);
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.DT1825))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("DT1825 is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledCommandSet4.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit4.DT1825))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
}
2018-06-22 08:08:38 +01:00
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.BlockErase))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("BLOCK ERASE EXT is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.Overwrite))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("OVERWRITE EXT is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.CryptoScramble))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("CRYPTO SCRAMBLE EXT is supported");
2016-04-19 02:11:47 +01:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.DeviceConfDMA))
2019-11-25 00:54:38 +00:00
sb.AppendLine().
Append("DEVICE CONFIGURATION IDENTIFY DMA and DEVICE CONFIGURATION SET DMA are supported");
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.ReadBufferDMA))
sb.AppendLine().Append("READ BUFFER DMA is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.WriteBufferDMA))
sb.AppendLine().Append("WRITE BUFFER DMA is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.DownloadMicroCodeDMA))
sb.AppendLine().Append("DOWNLOAD MICROCODE DMA is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.SetMaxDMA))
sb.AppendLine().Append("SET PASSWORD DMA and SET UNLOCK DMA are supported");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.Ata28))
sb.AppendLine().Append("Not all 28-bit commands are supported");
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.CFast))
sb.AppendLine().Append("Device follows CFast specification");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.IEEE1667))
2019-11-25 00:54:38 +00:00
sb.AppendLine().Append("Device follows IEEE-1667");
2015-10-17 01:26:17 +01:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.DeterministicTrim))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Read after TRIM is deterministic");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.ReadZeroTrim))
sb.AppendLine().Append("Read after TRIM returns empty data");
}
2018-06-22 08:08:38 +01:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.
LongPhysSectorAligError))
sb.AppendLine().Append("Device supports Long Physical Sector Alignment Error Reporting Control");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.Encrypted))
sb.AppendLine().Append("Device encrypts all user data");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.AllCacheNV))
sb.AppendLine().Append("Device's write cache is non-volatile");
2019-11-25 00:54:38 +00:00
if(ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.ZonedBit0) ||
ATAID.CommandSet5.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit5.ZonedBit1))
2019-11-25 00:54:38 +00:00
sb.AppendLine().Append("Device is zoned");
2015-10-17 01:26:17 +01:00
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.Sanitize))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Sanitize feature set is supported");
2019-11-25 00:54:38 +00:00
sb.AppendLine().
Append(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.
SanitizeCommands)
? "Sanitize commands are specified by ACS-3 or higher"
: "Sanitize commands are specified by ACS-2");
2015-10-17 01:26:17 +01:00
if(ATAID.Capabilities3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CapabilitiesBit3.
SanitizeAntifreeze))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("SANITIZE ANTIFREEZE LOCK EXT is supported");
}
2019-11-25 00:54:38 +00:00
if(!ata1 &&
maxatalevel >= 8)
if(ATAID.TrustedComputing.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TrustedComputingBit.Set) &&
!ATAID.TrustedComputing.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TrustedComputingBit.
Clear) &&
ATAID.TrustedComputing.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.TrustedComputingBit.
TrustedComputing))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("Trusted Computing feature set is supported");
if((ATAID.TransportMajorVersion & 0xF000) >> 12 == 0x1 ||
(ATAID.TransportMajorVersion & 0xF000) >> 12 == 0xE)
2015-10-17 01:26:17 +01:00
{
if(!ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.Clear))
if(ATAID.SATACapabilities.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit.
ReadLogDMAExt))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("READ LOG DMA EXT is supported");
if(!ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit2.Clear)
)
if(ATAID.SATACapabilities2.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATACapabilitiesBit2.
FPDMAQ))
2015-10-17 01:26:17 +01:00
sb.AppendLine().Append("RECEIVE FPDMA QUEUED and SEND FPDMA QUEUED are supported");
if(!ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.Clear))
2015-10-17 01:26:17 +01:00
{
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
NonZeroBufferOffset))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Non-zero buffer offsets are supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
NonZeroBufferOffset))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.DMASetup))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("DMA Setup auto-activation is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
DMASetup))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
InitPowerMgmt))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Device-initiated power management is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
InitPowerMgmt))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.InOrderData))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("In-order data delivery is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
InOrderData))
2019-11-25 00:54:38 +00:00
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(!atapi)
2020-02-27 00:33:24 +00:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
HardwareFeatureControl))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Hardware Feature Control is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATAFeaturesBit.HardwareFeatureControl))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
2016-04-19 02:11:47 +01:00
if(atapi)
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
AsyncNotification))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Asynchronous notification is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SATAFeaturesBit.AsyncNotification))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
SettingsPreserve))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().Append("Software Settings Preservation is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
SettingsPreserve))
2015-10-17 01:26:17 +01:00
sb.Append(" and enabled");
}
2018-06-22 08:08:38 +01:00
if(ATAID.SATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.NCQAutoSense)
)
sb.AppendLine().Append("NCQ Autosense is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.EnabledSATAFeatures.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SATAFeaturesBit.
EnabledSlumber))
sb.AppendLine().Append("Automatic Partial to Slumber transitions are enabled");
2015-10-17 01:26:17 +01:00
}
}
2018-06-22 08:08:38 +01:00
if((ATAID.RemovableStatusSet & 0x03) > 0)
sb.AppendLine().Append("Removable Media Status Notification feature set is supported");
2015-10-17 01:26:17 +01:00
2019-11-25 00:54:38 +00:00
if(ATAID.FreeFallSensitivity != 0x00 &&
ATAID.FreeFallSensitivity != 0xFF)
sb.AppendLine().AppendFormat("Free-fall sensitivity set to {0}", ATAID.FreeFallSensitivity);
2015-10-17 01:26:17 +01:00
if(ATAID.DataSetMgmt.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.DataSetMgmtBit.Trim))
2019-11-25 00:54:38 +00:00
sb.AppendLine().Append("TRIM is supported");
2016-04-19 02:11:47 +01:00
if(ATAID.DataSetMgmtSize > 0)
2017-12-19 20:33:03 +00:00
sb.AppendLine().AppendFormat("DATA SET MANAGEMENT can receive a maximum of {0} blocks of 512 bytes",
ATAID.DataSetMgmtSize);
2015-10-17 01:26:17 +01:00
sb.AppendLine().AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SecurityStatusBit.Supported))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine("Security:");
2019-11-25 00:54:38 +00:00
if(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SecurityStatusBit.Enabled))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine("Security is enabled");
2019-11-25 00:54:38 +00:00
sb.AppendLine(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SecurityStatusBit.Locked)
? "Security is locked" : "Security is not locked");
2016-04-19 02:11:47 +01:00
sb.AppendLine(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SecurityStatusBit.Frozen)
? "Security is frozen" : "Security is not frozen");
2016-04-19 02:11:47 +01:00
sb.AppendLine(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SecurityStatusBit.Expired)
2020-07-22 13:20:25 +01:00
? "Security count has expired" : "Security count has not expired");
2016-04-19 02:11:47 +01:00
sb.AppendLine(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.
SecurityStatusBit.Maximum)
? "Security level is maximum" : "Security level is high");
2015-10-17 01:26:17 +01:00
}
2019-11-25 00:54:38 +00:00
else
sb.AppendLine("Security is not enabled");
2015-10-17 01:26:17 +01:00
if(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SecurityStatusBit.Enhanced))
2015-10-17 01:26:17 +01:00
sb.AppendLine("Supports enhanced security erase");
sb.AppendFormat("{0} minutes to complete secure erase", ATAID.SecurityEraseTime * 2).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.SecurityStatus.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SecurityStatusBit.Enhanced))
2017-12-19 20:33:03 +00:00
sb.AppendFormat("{0} minutes to complete enhanced secure erase",
ATAID.EnhancedSecurityEraseTime * 2).AppendLine();
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Master password revision code: {0}", ATAID.MasterPasswordRevisionCode).AppendLine();
}
if(ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeSet) &&
!ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.MustBeClear) &&
ATAID.CommandSet3.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.CommandSetBit3.Streaming))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().AppendLine("Streaming:");
2019-11-25 00:54:38 +00:00
sb.AppendFormat("Minimum request size is {0}", ATAID.StreamMinReqSize);
sb.AppendFormat("Streaming transfer time in PIO is {0}", ATAID.StreamTransferTimePIO);
sb.AppendFormat("Streaming transfer time in DMA is {0}", ATAID.StreamTransferTimeDMA);
sb.AppendFormat("Streaming access latency is {0}", ATAID.StreamAccessLatency);
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Streaming performance granularity is {0}", ATAID.StreamPerformanceGranularity);
}
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
Supported))
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().AppendLine("S.M.A.R.T. Command Transport (SCT):");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
LongSectorAccess))
2015-10-17 01:26:17 +01:00
sb.AppendLine("SCT Long Sector Address is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
WriteSame))
2015-10-17 01:26:17 +01:00
sb.AppendLine("SCT Write Same is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
ErrorRecoveryControl))
2015-10-17 01:26:17 +01:00
sb.AppendLine("SCT Error Recovery Control is supported");
2019-11-25 00:54:38 +00:00
2020-02-27 00:33:24 +00:00
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
FeaturesControl))
2015-10-17 01:26:17 +01:00
sb.AppendLine("SCT Features Control is supported");
2019-11-25 00:54:38 +00:00
if(ATAID.SCTCommandTransport.HasFlag(CommonTypes.Structs.Devices.ATA.Identify.SCTCommandTransportBit.
DataTables))
2015-10-17 01:26:17 +01:00
sb.AppendLine("SCT Data Tables are supported");
}
2016-04-19 02:11:47 +01:00
if((ATAID.NVCacheCaps & 0x0010) == 0x0010)
2015-10-17 01:26:17 +01:00
{
sb.AppendLine().AppendLine("Non-Volatile Cache:");
sb.AppendLine().AppendFormat("Version {0}", (ATAID.NVCacheCaps & 0xF000) >> 12).AppendLine();
2019-11-25 00:54:38 +00:00
2016-04-19 02:11:47 +01:00
if((ATAID.NVCacheCaps & 0x0001) == 0x0001)
2015-10-17 01:26:17 +01:00
{
sb.Append("Power mode feature set is supported");
2019-11-25 00:54:38 +00:00
if((ATAID.NVCacheCaps & 0x0002) == 0x0002)
sb.Append(" and enabled");
2015-10-17 01:26:17 +01:00
sb.AppendLine();
sb.AppendLine().AppendFormat("Version {0}", (ATAID.NVCacheCaps & 0x0F00) >> 8).AppendLine();
}
2018-06-22 08:08:38 +01:00
2020-07-22 13:20:25 +01:00
sb.AppendLine().AppendFormat("Non-Volatile Cache is {0} bytes", ATAID.NVCacheSize * logicalSectorSize).
2019-11-25 00:54:38 +00:00
AppendLine();
2015-10-17 01:26:17 +01:00
}
2019-11-25 00:54:38 +00:00
#if DEBUG
2016-04-19 02:11:47 +01:00
sb.AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.VendorWord9 != 0x0000 &&
ATAID.VendorWord9 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 9: 0x{0:X4}", ATAID.VendorWord9).AppendLine();
2019-11-25 00:54:38 +00:00
if((ATAID.VendorWord47 & 0x7F) != 0x7F &&
(ATAID.VendorWord47 & 0x7F) != 0x00)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 47 bits 15 to 8: 0x{0:X2}", ATAID.VendorWord47).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.VendorWord51 != 0x00 &&
ATAID.VendorWord51 != 0xFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 51 bits 7 to 0: 0x{0:X2}", ATAID.VendorWord51).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.VendorWord52 != 0x00 &&
ATAID.VendorWord52 != 0xFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 52 bits 7 to 0: 0x{0:X2}", ATAID.VendorWord52).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord64 != 0x00 &&
ATAID.ReservedWord64 != 0xFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 64 bits 15 to 8: 0x{0:X2}", ATAID.ReservedWord64).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord70 != 0x0000 &&
ATAID.ReservedWord70 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 70: 0x{0:X4}", ATAID.ReservedWord70).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord73 != 0x0000 &&
ATAID.ReservedWord73 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 73: 0x{0:X4}", ATAID.ReservedWord73).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord74 != 0x0000 &&
ATAID.ReservedWord74 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 74: 0x{0:X4}", ATAID.ReservedWord74).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord116 != 0x0000 &&
ATAID.ReservedWord116 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 116: 0x{0:X4}", ATAID.ReservedWord116).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
for(int i = 0; i < ATAID.ReservedWords121.Length; i++)
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWords121[i] != 0x0000 &&
ATAID.ReservedWords121[i] != 0xFFFF)
2016-04-19 02:11:47 +01:00
sb.AppendFormat("Word {1}: 0x{0:X4}", ATAID.ReservedWords121[i], 121 + i).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
for(int i = 0; i < ATAID.ReservedWords129.Length; i++)
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWords129[i] != 0x0000 &&
ATAID.ReservedWords129[i] != 0xFFFF)
2016-04-19 02:11:47 +01:00
sb.AppendFormat("Word {1}: 0x{0:X4}", ATAID.ReservedWords129[i], 129 + i).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
for(int i = 0; i < ATAID.ReservedCFA.Length; i++)
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedCFA[i] != 0x0000 &&
ATAID.ReservedCFA[i] != 0xFFFF)
2016-04-19 02:11:47 +01:00
sb.AppendFormat("Word {1} (CFA): 0x{0:X4}", ATAID.ReservedCFA[i], 161 + i).AppendLine();
2017-12-19 20:33:03 +00:00
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord174 != 0x0000 &&
ATAID.ReservedWord174 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 174: 0x{0:X4}", ATAID.ReservedWord174).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord175 != 0x0000 &&
ATAID.ReservedWord175 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 175: 0x{0:X4}", ATAID.ReservedWord175).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedCEATAWord207 != 0x0000 &&
ATAID.ReservedCEATAWord207 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 207 (CE-ATA): 0x{0:X4}", ATAID.ReservedCEATAWord207).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedCEATAWord208 != 0x0000 &&
ATAID.ReservedCEATAWord208 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 208 (CE-ATA): 0x{0:X4}", ATAID.ReservedCEATAWord208).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.NVReserved != 0x00 &&
ATAID.NVReserved != 0xFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 219 bits 15 to 8: 0x{0:X2}", ATAID.NVReserved).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.WRVReserved != 0x00 &&
ATAID.WRVReserved != 0xFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 220 bits 15 to 8: 0x{0:X2}", ATAID.WRVReserved).AppendLine();
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWord221 != 0x0000 &&
ATAID.ReservedWord221 != 0xFFFF)
2015-10-17 01:26:17 +01:00
sb.AppendFormat("Word 221: 0x{0:X4}", ATAID.ReservedWord221).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
for(int i = 0; i < ATAID.ReservedCEATA224.Length; i++)
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedCEATA224[i] != 0x0000 &&
ATAID.ReservedCEATA224[i] != 0xFFFF)
2016-04-19 02:11:47 +01:00
sb.AppendFormat("Word {1} (CE-ATA): 0x{0:X4}", ATAID.ReservedCEATA224[i], 224 + i).AppendLine();
2019-11-25 00:54:38 +00:00
2015-10-17 01:26:17 +01:00
for(int i = 0; i < ATAID.ReservedWords.Length; i++)
2019-11-25 00:54:38 +00:00
if(ATAID.ReservedWords[i] != 0x0000 &&
ATAID.ReservedWords[i] != 0xFFFF)
2016-04-19 02:11:47 +01:00
sb.AppendFormat("Word {1}: 0x{0:X4}", ATAID.ReservedWords[i], 236 + i).AppendLine();
2019-11-25 00:54:38 +00:00
#endif
2015-10-17 01:26:17 +01:00
return sb.ToString();
}
}
2017-12-19 20:33:03 +00:00
}