Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
44 lines
878 B
C
44 lines
878 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2020 Google LLC
|
|
*/
|
|
|
|
#ifndef LINUX_MMC_CQHCI_CRYPTO_H
|
|
#define LINUX_MMC_CQHCI_CRYPTO_H
|
|
|
|
#include "cmdq_hci.h"
|
|
|
|
#ifdef CONFIG_MMC_CRYPTO
|
|
|
|
bool cqhci_crypto_enable(struct cmdq_host *host);
|
|
|
|
int cqhci_host_init_crypto(struct cmdq_host *host);
|
|
|
|
int cqhci_prep_crypto_desc(struct mmc_request *mrq, __le64 *task_desc);
|
|
|
|
void cqhci_crypto_recovery_finish(struct cmdq_host *host);
|
|
|
|
#else /* CONFIG_MMC_CRYPTO */
|
|
|
|
static inline bool cqhci_crypto_enable(struct cmdq_host *host)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline int cqhci_host_init_crypto(struct cmdq_host *host)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int cqhci_prep_crypto_desc(struct mmc_request *mrq,
|
|
__le64 *task_desc)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void cqhci_crypto_recovery_finish(struct cmdq_host *host) { }
|
|
|
|
#endif /* CONFIG_MMC_CRYPTO */
|
|
|
|
#endif /* LINUX_MMC_CQHCI_CRYPTO_H */
|