1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_MMC_HSQ_H
3 #define LINUX_MMC_HSQ_H
5 #define HSQ_NUM_SLOTS 64
6 #define HSQ_INVALID_TAG HSQ_NUM_SLOTS
9 struct mmc_request *mrq;
14 struct mmc_request *mrq;
15 wait_queue_head_t wait_queue;
16 struct hsq_slot *slot;
18 struct work_struct retry_work;
24 int tag_slot[HSQ_NUM_SLOTS];
27 bool waiting_for_idle;
31 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc);
32 void mmc_hsq_suspend(struct mmc_host *mmc);
33 int mmc_hsq_resume(struct mmc_host *mmc);
34 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq);