1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * MMC crypto engine (inline encryption) support
5 * Copyright 2020 Google LLC
8 #ifndef _MMC_CORE_CRYPTO_H
9 #define _MMC_CORE_CRYPTO_H
15 #ifdef CONFIG_MMC_CRYPTO
17 void mmc_crypto_set_initial_state(struct mmc_host
*host
);
19 void mmc_crypto_setup_queue(struct request_queue
*q
, struct mmc_host
*host
);
21 void mmc_crypto_prepare_req(struct mmc_queue_req
*mqrq
);
23 #else /* CONFIG_MMC_CRYPTO */
25 static inline void mmc_crypto_set_initial_state(struct mmc_host
*host
)
29 static inline void mmc_crypto_setup_queue(struct request_queue
*q
,
30 struct mmc_host
*host
)
34 static inline void mmc_crypto_prepare_req(struct mmc_queue_req
*mqrq
)
38 #endif /* !CONFIG_MMC_CRYPTO */
40 #endif /* _MMC_CORE_CRYPTO_H */