Added support for SecureDigital / MultiMediaCard on Windows.

This commit is contained in:
2017-12-06 23:05:59 +00:00
parent d660ec93d1
commit 4cd0ec53e9
6 changed files with 274 additions and 27 deletions

View File

@@ -248,6 +248,7 @@ namespace DiscImageChef.Devices.Windows
public short wIndex;
public short wLength;
}
[StructLayout(LayoutKind.Sequential)]
struct USB_DESCRIPTOR_REQUEST
{
@@ -255,5 +256,34 @@ namespace DiscImageChef.Devices.Windows
public USB_SETUP_PACKET SetupPacket;
//public byte[] Data;
}
[StructLayout(LayoutKind.Sequential)]
struct SffdiskQueryDeviceProtocolData
{
public ushort size;
public ushort reserved;
public Guid protocolGuid;
}
[StructLayout(LayoutKind.Sequential)]
struct SffdiskDeviceCommandData
{
public ushort size;
public ushort reserved;
public SffdiskDcmd command;
public ushort protocolArgumentSize;
public uint deviceDataBufferSize;
public uint information;
}
[StructLayout(LayoutKind.Sequential)]
struct SdCmdDescriptor
{
public byte commandCode;
public SdCommandClass cmdClass;
public SdTransferDirection transferDirection;
public SdTransferType transferType;
public SdResponseType responseType;
}
}