crypto.h 762 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright 2020 Google LLC
  4. */
  5. #ifndef _MMC_CORE_CRYPTO_H
  6. #define _MMC_CORE_CRYPTO_H
  7. struct mmc_host;
  8. struct mmc_queue_req;
  9. struct request;
  10. struct request_queue;
  11. #ifdef CONFIG_MMC_CRYPTO
  12. void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q);
  13. void mmc_crypto_free_host(struct mmc_host *host);
  14. void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq);
  15. #else /* CONFIG_MMC_CRYPTO */
  16. static inline void mmc_crypto_setup_queue(struct mmc_host *host,
  17. struct request_queue *q) { }
  18. static inline void mmc_crypto_free_host(struct mmc_host *host) { }
  19. static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) { }
  20. #endif /* CONFIG_MMC_CRYPTO */
  21. #endif /* _MMC_CORE_CRYPTO_H */