mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add packet to retrieve SD/MMC boot registers.
This commit is contained in:
@@ -18,7 +18,9 @@ namespace DiscImageChef.Devices.Remote
|
||||
CommandSdhci = 13,
|
||||
ResponseSdhci = 14,
|
||||
CommandGetType = 15,
|
||||
ResponseGetType = 16
|
||||
ResponseGetType = 16,
|
||||
CommandGetSdhciRegisters = 17,
|
||||
ResponseGetSdhciRegisters = 18
|
||||
}
|
||||
|
||||
public enum DicNopReason : byte
|
||||
|
||||
@@ -373,5 +373,10 @@ namespace DiscImageChef.Devices.Remote
|
||||
{
|
||||
throw new NotImplementedException("Getting remote device type not yet implemented...");
|
||||
}
|
||||
|
||||
public bool GetSdhciRegisters(out byte[] csd, out byte[] cid, out byte[] ocr, out byte[] scr)
|
||||
{
|
||||
throw new NotImplementedException("Getting SDHCI registers not yet implemented...");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -215,4 +215,27 @@ namespace DiscImageChef.Devices.Remote
|
||||
private readonly DicPacketHeader hdr;
|
||||
private readonly DeviceType device_type;
|
||||
}
|
||||
|
||||
public struct DicPacketCmdGetSdhciRegisters
|
||||
{
|
||||
private DicPacketHeader hdr;
|
||||
}
|
||||
|
||||
public struct DicPacketResGetSdhciRegisters
|
||||
{
|
||||
private DicPacketHeader hdr;
|
||||
[MarshalAs(UnmanagedType.U1)] public bool isSdhci;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
||||
public byte[] csd;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
||||
public byte[] cid;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
||||
public byte[] ocr;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
||||
public byte[] scr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user