summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2004-09-06 21:36:50 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2004-09-06 21:36:50 +0100
commitb0e7d7274cdc8b1a49d364b4d92ab2eda4031bdf (patch)
treee0033e7765c68ff9288ad2d7f32bccf09d7a2a23 /include
parent0e5f06f1187a5522d3412fe058c498cfb6cd534b (diff)
[MMC] MMC_RSP_xxx combined response types.
Create a set of MMC_RSP_xxx definitions which correspond to the response type we expect at a high level. These are created from a set of flags; a MMC host driver can either interpret the flags as the high level response type, or the low level individual flags.
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmc/mmc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h
index 1b83c2d64561..c288ae6a4f0c 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/mmc.h
@@ -28,6 +28,16 @@ struct mmc_command {
#define MMC_RSP_CRC (1 << 3) /* expect valid crc */
#define MMC_RSP_BUSY (1 << 4) /* card may send busy */
+/*
+ * These are the response types, and correspond to valid bit
+ * patterns of the above flags. One additional valid pattern
+ * is all zeros, which means we don't expect a response.
+ */
+#define MMC_RSP_R1 (MMC_RSP_SHORT|MMC_RSP_CRC)
+#define MMC_RSP_R1B (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_BUSY)
+#define MMC_RSP_R2 (MMC_RSP_LONG|MMC_RSP_CRC)
+#define MMC_RSP_R3 (MMC_RSP_SHORT)
+
unsigned int retries; /* max number of retries */
unsigned int error; /* command error */