diff options
Diffstat (limited to 'include/linux/mmc/core.h')
-rw-r--r-- | include/linux/mmc/core.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 5bf7c2274fcb..39613b9a6fc5 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h | |||
@@ -18,6 +18,9 @@ struct mmc_request; | |||
18 | struct mmc_command { | 18 | struct mmc_command { |
19 | u32 opcode; | 19 | u32 opcode; |
20 | u32 arg; | 20 | u32 arg; |
21 | #define MMC_CMD23_ARG_REL_WR (1 << 31) | ||
22 | #define MMC_CMD23_ARG_PACKED ((0 << 31) | (1 << 30)) | ||
23 | #define MMC_CMD23_ARG_TAG_REQ (1 << 29) | ||
21 | u32 resp[4]; | 24 | u32 resp[4]; |
22 | unsigned int flags; /* expected response type */ | 25 | unsigned int flags; /* expected response type */ |
23 | #define MMC_RSP_PRESENT (1 << 0) | 26 | #define MMC_RSP_PRESENT (1 << 0) |
@@ -120,6 +123,7 @@ struct mmc_data { | |||
120 | s32 host_cookie; /* host private data */ | 123 | s32 host_cookie; /* host private data */ |
121 | }; | 124 | }; |
122 | 125 | ||
126 | struct mmc_host; | ||
123 | struct mmc_request { | 127 | struct mmc_request { |
124 | struct mmc_command *sbc; /* SET_BLOCK_COUNT for multiblock */ | 128 | struct mmc_command *sbc; /* SET_BLOCK_COUNT for multiblock */ |
125 | struct mmc_command *cmd; | 129 | struct mmc_command *cmd; |
@@ -128,9 +132,9 @@ struct mmc_request { | |||
128 | 132 | ||
129 | struct completion completion; | 133 | struct completion completion; |
130 | void (*done)(struct mmc_request *);/* completion function */ | 134 | void (*done)(struct mmc_request *);/* completion function */ |
135 | struct mmc_host *host; | ||
131 | }; | 136 | }; |
132 | 137 | ||
133 | struct mmc_host; | ||
134 | struct mmc_card; | 138 | struct mmc_card; |
135 | struct mmc_async_req; | 139 | struct mmc_async_req; |
136 | 140 | ||
@@ -147,6 +151,7 @@ extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *, | |||
147 | extern void mmc_start_bkops(struct mmc_card *card, bool from_exception); | 151 | extern void mmc_start_bkops(struct mmc_card *card, bool from_exception); |
148 | extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool); | 152 | extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool); |
149 | extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int); | 153 | extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int); |
154 | extern int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd); | ||
150 | 155 | ||
151 | #define MMC_ERASE_ARG 0x00000000 | 156 | #define MMC_ERASE_ARG 0x00000000 |
152 | #define MMC_SECURE_ERASE_ARG 0x80000000 | 157 | #define MMC_SECURE_ERASE_ARG 0x80000000 |