···14141515/* SDIO commands type argument response */1616#define SD_IO_SEND_OP_COND 5 /* bcr [23:0] OCR R4 */1717+#define SD_IO_RW_DIRECT 52 /* ac [31:0] See below R5 */1818+1919+/*2020+ * SD_IO_RW_DIRECT argument format:2121+ *2222+ * [31] R/W flag2323+ * [30:28] Function number2424+ * [27] RAW flag2525+ * [25:9] Register address2626+ * [7:0] Data2727+ */2828+2929+/*3030+ SDIO status in R53131+ Type3232+ e : error bit3333+ s : status bit3434+ r : detected and set for the actual command response3535+ x : detected and set during command execution. the host must poll3636+ the card by sending status command in order to read these bits.3737+ Clear condition3838+ a : according to the card state3939+ b : always related to the previous command. Reception of4040+ a valid command will clear it (with a delay of one command)4141+ c : clear by read4242+ */4343+4444+#define R5_COM_CRC_ERROR (1 << 15) /* er, b */4545+#define R5_ILLEGAL_COMMAND (1 << 14) /* er, b */4646+#define R5_ERROR (1 << 11) /* erx, c */4747+#define R5_FUNCTION_NUMBER (1 << 9) /* er, c */4848+#define R5_OUT_OF_RANGE (1 << 8) /* er, c */4949+#define R5_STATUS(x) (x & 0xCB00)5050+#define R5_IO_CURRENT_STATE(x) ((x & 0x3000) >> 12) /* s, b */17511852#endif1953