mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code cleanup.
This commit is contained in:
@@ -44,28 +44,28 @@ namespace DiscImageChef.Devices.Linux
|
||||
/// <summary>
|
||||
/// Always 'S' for SG v3
|
||||
/// </summary>
|
||||
public int interface_id; /* [i] 'S' (required) */
|
||||
public int interface_id; /* [i] 'S' (required) */
|
||||
public ScsiIoctlDirection dxfer_direction; /* [i] */
|
||||
public byte cmd_len; /* [i] */
|
||||
public byte mx_sb_len; /* [i] */
|
||||
public ushort iovec_count; /* [i] */
|
||||
public uint dxfer_len; /* [i] */
|
||||
public IntPtr dxferp; /* [i], [*io] */
|
||||
public IntPtr cmdp; /* [i], [*i] */
|
||||
public IntPtr sbp; /* [i], [*o] */
|
||||
public uint timeout; /* [i] unit: millisecs */
|
||||
public uint flags; /* [i] */
|
||||
public int pack_id; /* [i->o] */
|
||||
public IntPtr usr_ptr; /* [i->o] */
|
||||
public byte status; /* [o] */
|
||||
public byte masked_status; /* [o] */
|
||||
public byte msg_status; /* [o] */
|
||||
public byte sb_len_wr; /* [o] */
|
||||
public ushort host_status; /* [o] */
|
||||
public ushort driver_status; /* [o] */
|
||||
public int resid; /* [o] */
|
||||
public uint duration; /* [o] */
|
||||
public SgInfo info; /* [o] */
|
||||
public byte cmd_len; /* [i] */
|
||||
public byte mx_sb_len; /* [i] */
|
||||
public ushort iovec_count; /* [i] */
|
||||
public uint dxfer_len; /* [i] */
|
||||
public IntPtr dxferp; /* [i], [*io] */
|
||||
public IntPtr cmdp; /* [i], [*i] */
|
||||
public IntPtr sbp; /* [i], [*o] */
|
||||
public uint timeout; /* [i] unit: millisecs */
|
||||
public uint flags; /* [i] */
|
||||
public int pack_id; /* [i->o] */
|
||||
public IntPtr usr_ptr; /* [i->o] */
|
||||
public byte status; /* [o] */
|
||||
public byte masked_status; /* [o] */
|
||||
public byte msg_status; /* [o] */
|
||||
public byte sb_len_wr; /* [o] */
|
||||
public ushort host_status; /* [o] */
|
||||
public ushort driver_status; /* [o] */
|
||||
public int resid; /* [o] */
|
||||
public uint duration; /* [o] */
|
||||
public SgInfo info; /* [o] */
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
@@ -85,10 +85,11 @@ namespace DiscImageChef.Devices.Linux
|
||||
/// <summary>
|
||||
/// CMD response
|
||||
/// </summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] public uint[] response;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
||||
public uint[] response;
|
||||
public MmcFlags flags;
|
||||
public uint blksz;
|
||||
public uint blocks;
|
||||
public uint blksz;
|
||||
public uint blocks;
|
||||
/// <summary>
|
||||
/// Sleep at least <see cref="postsleep_min_us" /> useconds, and at most
|
||||
/// <see cref="postsleep_max_us" /> useconds *after* issuing command.Needed for
|
||||
|
||||
Reference in New Issue
Block a user