You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kernel_samsung_sm7125/drivers/mmc/host/cmdq_hci-crypto-qti.h

45 lines
1.4 KiB

/* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _CMDQ_HCI_CRYPTO_QTI_H
#define _CMDQ_HCI_CRYPTO_QTI_H
#include "cmdq_hci-crypto.h"
#if IS_ENABLED(CONFIG_MMC_QTI_NONCMDQ_ICE)
#define CRYPTO_CDU_SIZE 0xFF
#define CRYPTO_ICE_INDEX 3
#define LEGACY_ICE_CAP_VAL 0x50001F06
#endif
void cmdq_crypto_qti_enable(struct cmdq_host *host);
void cmdq_crypto_qti_disable(struct cmdq_host *host);
#ifdef CONFIG_BLK_INLINE_ENCRYPTION
int cmdq_crypto_qti_init_crypto(struct cmdq_host *host,
const struct keyslot_mgmt_ll_ops *ksm_ops);
#endif
int cmdq_crypto_qti_debug(struct cmdq_host *host);
void cmdq_crypto_qti_set_vops(struct cmdq_host *host);
int cmdq_crypto_qti_resume(struct cmdq_host *host);
int cmdq_crypto_qti_prep_desc(struct cmdq_host *host,
struct mmc_request *mrq,
u64 *ice_ctx);
int cmdq_crypto_qti_reset(struct cmdq_host *host);
#endif /* _CMDQ_HCI_CRYPTO_QTI_H */