mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added IOCTL skeletons.
This commit is contained in:
39
DiscImageChef.Devices/Linux/Structs.cs
Normal file
39
DiscImageChef.Devices/Linux/Structs.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DiscImageChef.Devices.Linux
|
||||
{
|
||||
static class Structs
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct sg_io_hdr_t
|
||||
{
|
||||
/// <summary>
|
||||
/// Always 'S' for SG v3
|
||||
/// </summary>
|
||||
public int interface_id; /* [i] 'S' (required) */
|
||||
public int 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 uint info; /* [o] */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user