diff options
author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /include/linux/mmc | |
parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/card.h | 5 | ||||
-rw-r--r-- | include/linux/mmc/mmc.h | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 18fc77f682de..30dd978c1ec8 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -30,7 +30,12 @@ struct mmc_csd { | |||
30 | unsigned int tacc_ns; | 30 | unsigned int tacc_ns; |
31 | unsigned int max_dtr; | 31 | unsigned int max_dtr; |
32 | unsigned int read_blkbits; | 32 | unsigned int read_blkbits; |
33 | unsigned int write_blkbits; | ||
33 | unsigned int capacity; | 34 | unsigned int capacity; |
35 | unsigned int read_partial:1, | ||
36 | read_misalign:1, | ||
37 | write_partial:1, | ||
38 | write_misalign:1; | ||
34 | }; | 39 | }; |
35 | 40 | ||
36 | struct sd_scr { | 41 | struct sd_scr { |
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h index aef6042f8f0b..ccd3e13de1e8 100644 --- a/include/linux/mmc/mmc.h +++ b/include/linux/mmc/mmc.h | |||
@@ -27,14 +27,15 @@ struct mmc_command { | |||
27 | #define MMC_RSP_MASK (3 << 0) | 27 | #define MMC_RSP_MASK (3 << 0) |
28 | #define MMC_RSP_CRC (1 << 3) /* expect valid crc */ | 28 | #define MMC_RSP_CRC (1 << 3) /* expect valid crc */ |
29 | #define MMC_RSP_BUSY (1 << 4) /* card may send busy */ | 29 | #define MMC_RSP_BUSY (1 << 4) /* card may send busy */ |
30 | #define MMC_RSP_OPCODE (1 << 5) /* response contains opcode */ | ||
30 | 31 | ||
31 | /* | 32 | /* |
32 | * These are the response types, and correspond to valid bit | 33 | * These are the response types, and correspond to valid bit |
33 | * patterns of the above flags. One additional valid pattern | 34 | * patterns of the above flags. One additional valid pattern |
34 | * is all zeros, which means we don't expect a response. | 35 | * is all zeros, which means we don't expect a response. |
35 | */ | 36 | */ |
36 | #define MMC_RSP_R1 (MMC_RSP_SHORT|MMC_RSP_CRC) | 37 | #define MMC_RSP_R1 (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_OPCODE) |
37 | #define MMC_RSP_R1B (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_BUSY) | 38 | #define MMC_RSP_R1B (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_OPCODE|MMC_RSP_BUSY) |
38 | #define MMC_RSP_R2 (MMC_RSP_LONG|MMC_RSP_CRC) | 39 | #define MMC_RSP_R2 (MMC_RSP_LONG|MMC_RSP_CRC) |
39 | #define MMC_RSP_R3 (MMC_RSP_SHORT) | 40 | #define MMC_RSP_R3 (MMC_RSP_SHORT) |
40 | #define MMC_RSP_R6 (MMC_RSP_SHORT|MMC_RSP_CRC) | 41 | #define MMC_RSP_R6 (MMC_RSP_SHORT|MMC_RSP_CRC) |
@@ -64,6 +65,7 @@ struct mmc_data { | |||
64 | #define MMC_DATA_WRITE (1 << 8) | 65 | #define MMC_DATA_WRITE (1 << 8) |
65 | #define MMC_DATA_READ (1 << 9) | 66 | #define MMC_DATA_READ (1 << 9) |
66 | #define MMC_DATA_STREAM (1 << 10) | 67 | #define MMC_DATA_STREAM (1 << 10) |
68 | #define MMC_DATA_MULTI (1 << 11) | ||
67 | 69 | ||
68 | unsigned int bytes_xfered; | 70 | unsigned int bytes_xfered; |
69 | 71 | ||