aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/core.h')
-rw-r--r--drivers/mmc/core/core.h16
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);
49void mmc_set_bus_width(struct mmc_host *host, unsigned int width); 49void mmc_set_bus_width(struct mmc_host *host, unsigned int width);
50u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); 50u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
51int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr); 51int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr);
52int mmc_host_set_uhs_voltage(struct mmc_host *host);
52int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage); 53int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage);
53void mmc_set_timing(struct mmc_host *host, unsigned int timing); 54void mmc_set_timing(struct mmc_host *host, unsigned int timing);
54void mmc_set_driver_type(struct mmc_host *host, unsigned int drv_type); 55void 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) { }
107void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq); 108void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq);
108bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq); 109bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq);
109 110
111int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq);
112
110struct mmc_async_req; 113struct mmc_async_req;
111 114
112struct mmc_async_req *mmc_start_areq(struct mmc_host *host, 115struct 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);
128int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount, 131int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount,
129 bool is_rel_write); 132 bool is_rel_write);
130 133
131int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); 134int __mmc_claim_host(struct mmc_host *host, struct mmc_ctx *ctx,
135 atomic_t *abort);
132void mmc_release_host(struct mmc_host *host); 136void mmc_release_host(struct mmc_host *host);
133void mmc_get_card(struct mmc_card *card); 137void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx);
134void mmc_put_card(struct mmc_card *card); 138void 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 */
142static inline void mmc_claim_host(struct mmc_host *host) 146static 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
151int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq);
152void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq);
153int mmc_cqe_recovery(struct mmc_host *host);
154
147#endif 155#endif