mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Devices/Linux/Enums.cs:
* DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Devices/Linux/Structs.cs: Since libata, ATA/ATAPI commands should be sent using libata's SCSI/ATA Translation Layer, so remove HDIO ioctls. * DiscImageChef.Interop/DetectOS.cs: Add code to detect if running under 32 or 64 bits.
This commit is contained in:
@@ -70,39 +70,5 @@ namespace DiscImageChef.Devices.Linux
|
||||
public uint duration; /* [o] */
|
||||
public SgInfo info; /* [o] */
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct hd_drive_task_hdr
|
||||
{
|
||||
public byte data;
|
||||
public byte feature;
|
||||
public byte sector_count;
|
||||
public byte sector_number;
|
||||
public byte low_cylinder;
|
||||
public byte high_cylinder;
|
||||
public byte device_head;
|
||||
public byte command;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct hd_drive_task_array
|
||||
{
|
||||
public byte command;
|
||||
public byte features;
|
||||
public byte sector_count;
|
||||
public byte sector_number;
|
||||
public byte low_cylinder;
|
||||
public byte high_cylinder;
|
||||
public byte device_head;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct hd_drive_cmd
|
||||
{
|
||||
public byte command;
|
||||
public byte sector;
|
||||
public byte feature;
|
||||
public byte nsector;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user