18#define SD_GO_IDLE_STATE 0
19#define SD_ALL_SEND_CID 2
20#define SD_SET_RELATIVE_ADDR 3
22#define SDIO_SEND_OP_COND 5
23#define SD_SWITCH_FUNC 6
24#define SD_SELECT_DESELECT_CARD 7
25#define SD_SEND_IF_COND 8
28#define SD_VOLTAGE_SWITCH 11
29#define SD_STOP_TRANSMISSION 12
30#define SD_SEND_STATUS 13
31#define SD_GO_INACTIVE_STATE 15
32#define SD_SET_BLOCKLEN 16
33#define SD_READ_SINGLE_BLOCK 17
34#define SD_READ_MULTIPLE_BLOCK 18
35#define SD_SEND_TUNING_BLOCK 19
36#define SD_SPEED_CLASS_CONTROL 20
37#define SD_SET_BLOCK_COUNT 23
38#define SD_WRITE_SINGLE_BLOCK 24
39#define SD_WRITE_MULTIPLE_BLOCK 25
40#define SD_PROGRAM_CSD 27
41#define SD_SET_WRITE_PROT 28
42#define SD_CLR_WRITE_PROT 29
43#define SD_SEND_WRITE_PROT 30
44#define SD_ERASE_WR_BLK_START 32
45#define SD_ERASE_WR_BLK_END 33
47#define SD_LOCK_UNLOCK 42
48#define SD_READ_EXTR_SINGLE 48
49#define SD_WRITE_EXTR_SINGLE 49
50#define SDIO_RW_DIRECT 52
51#define SDIO_RW_EXTENDED 53
54#define SD_READ_EXTR_MULTI 58
55#define SD_WRITE_EXTR_MULTI 59
57#define SD_SET_BUS_WIDTH 6
59#define SD_SEND_NUM_WR_BLOCKS 22
60#define SD_SET_WR_BLK_ERASE_COUNT 23
61#define SD_SEND_OP_COND 41
62#define SD_SET_CLR_CARD_DETECT 42
69 UINT16 ManufacturingDate : 12;
71 UINT8 ProductSerialNumber[4];
72 UINT8 ProductRevision;
82 UINT32 FileFormat : 2;
83 UINT32 TmpWriteProtect : 1;
84 UINT32 PermWriteProtect : 1;
86 UINT32 FileFormatGrp : 1;
88 UINT32 WriteBlPartial : 1;
89 UINT32 WriteBlLen : 4;
92 UINT32 WpGrpEnable : 1;
95 UINT32 SectorSize : 7;
96 UINT32 EraseBlkEn : 1;
98 UINT32 VddWCurrMax : 3;
99 UINT32 VddWCurrMin : 3;
100 UINT32 VddRCurrMax : 3;
101 UINT32 VddRCurrMin : 3;
104 UINT32 CSizeHigh : 10;
105 UINT32 Reserved4 : 2;
107 UINT32 ReadBlkMisalign : 1;
108 UINT32 WriteBlkMisalign : 1;
109 UINT32 ReadBlPartial : 1;
110 UINT32 ReadBlLen : 4;
113 UINT32 TranSpeed : 8;
116 UINT32 Reserved5 : 6;
117 UINT32 CsdStructure : 2;
124 UINT32 FileFormat : 2;
125 UINT32 TmpWriteProtect : 1;
126 UINT32 PermWriteProtect : 1;
128 UINT32 FileFormatGrp : 1;
129 UINT32 Reserved1 : 5;
130 UINT32 WriteBlPartial : 1;
131 UINT32 WriteBlLen : 4;
132 UINT32 R2WFactor : 3;
133 UINT32 Reserved2 : 2;
134 UINT32 WpGrpEnable : 1;
136 UINT32 WpGrpSize : 7;
137 UINT32 SectorSize : 7;
138 UINT32 EraseBlkEn : 1;
139 UINT32 Reserved3 : 1;
140 UINT32 CSizeLow : 16;
142 UINT32 CSizeHigh : 6;
143 UINT32 Reserved4 : 6;
145 UINT32 ReadBlkMisalign : 1;
146 UINT32 WriteBlkMisalign : 1;
147 UINT32 ReadBlPartial : 1;
148 UINT32 ReadBlLen : 4;
151 UINT32 TranSpeed : 8;
154 UINT32 Reserved5 : 6;
155 UINT32 CsdStructure : 2;
161 UINT32 CmdSupport : 4;
162 UINT32 Reserved1 : 6;
164 UINT32 ExSecurity : 4;
166 UINT32 SdBusWidths : 4;
167 UINT32 SdSecurity : 3;
168 UINT32 DataStatAfterErase : 1;
170 UINT32 ScrStructure : 4;