forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/mmc/core/crypto.h
....@@ -1,5 +1,7 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: GPL-2.0-only */
22 /*
3
+ * MMC crypto engine (inline encryption) support
4
+ *
35 * Copyright 2020 Google LLC
46 */
57
....@@ -8,26 +10,31 @@
810
911 struct mmc_host;
1012 struct mmc_queue_req;
11
-struct request;
1213 struct request_queue;
1314
1415 #ifdef CONFIG_MMC_CRYPTO
1516
16
-void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q);
17
+void mmc_crypto_set_initial_state(struct mmc_host *host);
1718
18
-void mmc_crypto_free_host(struct mmc_host *host);
19
+void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host);
1920
2021 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq);
2122
2223 #else /* CONFIG_MMC_CRYPTO */
2324
24
-static inline void mmc_crypto_setup_queue(struct mmc_host *host,
25
- struct request_queue *q) { }
25
+static inline void mmc_crypto_set_initial_state(struct mmc_host *host)
26
+{
27
+}
2628
27
-static inline void mmc_crypto_free_host(struct mmc_host *host) { }
29
+static inline void mmc_crypto_setup_queue(struct request_queue *q,
30
+ struct mmc_host *host)
31
+{
32
+}
2833
29
-static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) { }
34
+static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
35
+{
36
+}
3037
31
-#endif /* CONFIG_MMC_CRYPTO */
38
+#endif /* !CONFIG_MMC_CRYPTO */
3239
3340 #endif /* _MMC_CORE_CRYPTO_H */