mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add packet to retrieve SD/MMC boot registers.
This commit is contained in:
17
dicmote.h
17
dicmote.h
@@ -41,6 +41,8 @@
|
||||
#define DICMOTE_PACKET_TYPE_RESPONSE_SDHCI 14
|
||||
#define DICMOTE_PACKET_TYPE_COMMAND_GET_DEVTYPE 15
|
||||
#define DICMOTE_PACKET_TYPE_RESPONSE_GET_DEVTYPE 16
|
||||
#define DICMOTE_PACKET_TYPE_COMMAND_GET_SDHCI_REGISTERS 17
|
||||
#define DICMOTE_PACKET_TYPE_RESPONSE_GET_SDHCI_REGISTERS 18
|
||||
#define DICMOTE_PROTOCOL_MAX 1
|
||||
#define DICMOTE_PACKET_NOP_REASON_OOO 0
|
||||
#define DICMOTE_PACKET_NOP_REASON_NOT_IMPLEMENTED 1
|
||||
@@ -308,6 +310,21 @@ typedef struct
|
||||
int32_t device_type;
|
||||
} DicPacketResGetDeviceType;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
DicPacketHeader hdr;
|
||||
} DicPacketCmdGetSdhciRegisters;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
DicPacketHeader hdr;
|
||||
uint8_t isSdhci;
|
||||
char csd[16];
|
||||
char cid[16];
|
||||
char ocr[4];
|
||||
char scr[8];
|
||||
} DicPacketResGetSdhciRegisters;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
DeviceInfoList* ListDevices();
|
||||
|
||||
Reference in New Issue
Block a user