* DiscImageChef.Devices/Command.cs:

* DiscImageChef.Decoders/ATA/Errors.cs:
	* DiscImageChef/Commands/DeviceInfo.cs:
	* DiscImageChef.Devices/Linux/Command.cs:
	* DiscImageChef.Devices/Device/Commands.cs:
	* DiscImageChef.Devices/Device/AtaCommands.cs:
	* DiscImageChef.Devices/Device/Constructor.cs:
	* DiscImageChef.Devices/Device/AtapiCommands.cs:
	* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
	* DiscImageChef.Decoders/DiscImageChef.Decoders.csproj:
	  Moved ATA register definition to a more common place.

	* DiscImageChef.Decoders/SCSI/Sense.cs:
	  Added information from SAT-4.
This commit is contained in:
2015-11-23 04:26:53 +00:00
parent 257a717c9a
commit 0ebbd87548
14 changed files with 50 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
2015-11-23 Natalia Portillo <claunia@claunia.com>
* Command.cs:
* Linux/Command.cs:
* Device/Commands.cs:
* Device/AtaCommands.cs:
* Device/Constructor.cs:
* Device/AtapiCommands.cs:
* DiscImageChef.Devices.csproj:
Moved ATA register definition to a more common place.
2015-11-05 Natalia Portillo <claunia@claunia.com>
* Device/Constructor.cs:

View File

@@ -39,6 +39,7 @@
using System;
using DiscImageChef.Interop;
using Microsoft.Win32.SafeHandles;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices
{

View File

@@ -37,6 +37,7 @@
// //$Id$
using System;
using DiscImageChef.Console;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices
{

View File

@@ -37,6 +37,7 @@
// //$Id$
using System;
using DiscImageChef.Console;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices
{

View File

@@ -36,6 +36,7 @@
// ****************************************************************************/
// //$Id$
using System;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices
{

View File

@@ -38,6 +38,7 @@
using System;
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices
{

View File

@@ -49,7 +49,6 @@
<Compile Include="Device\Destructor.cs" />
<Compile Include="Device\Commands.cs" />
<Compile Include="Device\ScsiCommands.cs" />
<Compile Include="Structs.cs" />
<Compile Include="Device\AtaCommands.cs" />
<Compile Include="Device\AtapiCommands.cs" />
</ItemGroup>

View File

@@ -39,6 +39,7 @@
using System;
using System.Runtime.InteropServices;
using DiscImageChef.Decoders.ATA;
namespace DiscImageChef.Devices.Linux
{

View File

@@ -1,111 +0,0 @@
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Structs.cs
// Version : 1.0
// Author(s) : Natalia Portillo
//
// Component : Direct device access
//
// Revision : $Revision$
// Last change by : $Author$
// Date : $Date$
//
// --[ Description ] ----------------------------------------------------------
//
// Contains enumerations that are common to all operating systems
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright (C) 2011-2015 Claunia.com
// ****************************************************************************/
// //$Id$
using System;
namespace DiscImageChef.Devices
{
public struct AtaRegistersCHS
{
public byte feature;
public byte sectorCount;
public byte sector;
public byte cylinderLow;
public byte cylinderHigh;
public byte deviceHead;
public byte command;
}
public struct AtaRegistersLBA28
{
public byte feature;
public byte sectorCount;
public byte lbaLow;
public byte lbaMid;
public byte lbaHigh;
public byte deviceHead;
public byte command;
}
public struct AtaRegistersLBA48
{
public ushort feature;
public ushort sectorCount;
public ushort lbaLow;
public ushort lbaMid;
public ushort lbaHigh;
public byte deviceHead;
public byte command;
}
public struct AtaErrorRegistersCHS
{
public byte status;
public byte error;
public byte sectorCount;
public byte sector;
public byte cylinderLow;
public byte cylinderHigh;
public byte deviceHead;
public byte command;
}
public struct AtaErrorRegistersLBA28
{
public byte status;
public byte error;
public byte sectorCount;
public byte lbaLow;
public byte lbaMid;
public byte lbaHigh;
public byte deviceHead;
public byte command;
}
public struct AtaErrorRegistersLBA48
{
public byte status;
public byte error;
public ushort sectorCount;
public ushort lbaLow;
public ushort lbaMid;
public ushort lbaHigh;
public byte deviceHead;
public byte command;
}
}