Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / mmc / host / mmc_hsq.h
blobffdd9cd172c349b336207da2ef96e2c21ad4168c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_MMC_HSQ_H
3 #define LINUX_MMC_HSQ_H
5 struct hsq_slot {
6 struct mmc_request *mrq;
7 };
9 struct mmc_hsq {
10 struct mmc_host *mmc;
11 struct mmc_request *mrq;
12 wait_queue_head_t wait_queue;
13 struct hsq_slot *slot;
14 spinlock_t lock;
15 struct work_struct retry_work;
17 int next_tag;
18 int num_slots;
19 int qcnt;
21 bool enabled;
22 bool waiting_for_idle;
23 bool recovery_halt;
26 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc);
27 void mmc_hsq_suspend(struct mmc_host *mmc);
28 int mmc_hsq_resume(struct mmc_host *mmc);
29 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq);
31 #endif