diff options
Diffstat (limited to 'drivers/mmc/core/core.h')
-rw-r--r-- | drivers/mmc/core/core.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index ca861091a776..71e6c6d7ceb7 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h | |||
@@ -49,6 +49,7 @@ void mmc_set_bus_mode(struct mmc_host *host, unsigned int mode); | |||
49 | void mmc_set_bus_width(struct mmc_host *host, unsigned int width); | 49 | void mmc_set_bus_width(struct mmc_host *host, unsigned int width); |
50 | u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); | 50 | u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); |
51 | int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr); | 51 | int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr); |
52 | int mmc_host_set_uhs_voltage(struct mmc_host *host); | ||
52 | int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage); | 53 | int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage); |
53 | void mmc_set_timing(struct mmc_host *host, unsigned int timing); | 54 | void mmc_set_timing(struct mmc_host *host, unsigned int timing); |
54 | void mmc_set_driver_type(struct mmc_host *host, unsigned int drv_type); | 55 | void mmc_set_driver_type(struct mmc_host *host, unsigned int drv_type); |
@@ -107,6 +108,8 @@ static inline void mmc_unregister_pm_notifier(struct mmc_host *host) { } | |||
107 | void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq); | 108 | void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq); |
108 | bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq); | 109 | bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq); |
109 | 110 | ||
111 | int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq); | ||
112 | |||
110 | struct mmc_async_req; | 113 | struct mmc_async_req; |
111 | 114 | ||
112 | struct mmc_async_req *mmc_start_areq(struct mmc_host *host, | 115 | struct mmc_async_req *mmc_start_areq(struct mmc_host *host, |
@@ -128,10 +131,11 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen); | |||
128 | int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount, | 131 | int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount, |
129 | bool is_rel_write); | 132 | bool is_rel_write); |
130 | 133 | ||
131 | int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); | 134 | int __mmc_claim_host(struct mmc_host *host, struct mmc_ctx *ctx, |
135 | atomic_t *abort); | ||
132 | void mmc_release_host(struct mmc_host *host); | 136 | void mmc_release_host(struct mmc_host *host); |
133 | void mmc_get_card(struct mmc_card *card); | 137 | void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx); |
134 | void mmc_put_card(struct mmc_card *card); | 138 | void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx); |
135 | 139 | ||
136 | /** | 140 | /** |
137 | * mmc_claim_host - exclusively claim a host | 141 | * mmc_claim_host - exclusively claim a host |
@@ -141,7 +145,11 @@ void mmc_put_card(struct mmc_card *card); | |||
141 | */ | 145 | */ |
142 | static inline void mmc_claim_host(struct mmc_host *host) | 146 | static inline void mmc_claim_host(struct mmc_host *host) |
143 | { | 147 | { |
144 | __mmc_claim_host(host, NULL); | 148 | __mmc_claim_host(host, NULL, NULL); |
145 | } | 149 | } |
146 | 150 | ||
151 | int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq); | ||
152 | void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq); | ||
153 | int mmc_cqe_recovery(struct mmc_host *host); | ||
154 | |||
147 | #endif | 155 | #endif |