Add samsung specific changes
This commit is contained in:
23
include/ufs/ufshcd-crypto-qti.h
Normal file
23
include/ufs/ufshcd-crypto-qti.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _UFSHCD_CRYPTO_QTI_H
|
||||
#define _UFSHCD_CRYPTO_QTI_H
|
||||
|
||||
#include "ufshcd.h"
|
||||
#include "ufshcd-crypto.h"
|
||||
|
||||
#if IS_ENABLED(CONFIG_SCSI_UFS_CRYPTO_QTI)
|
||||
int ufshcd_qti_hba_init_crypto_capabilities(struct ufs_hba *hba);
|
||||
#else /* CONFIG_SCSI_UFS_CRYPTO_QTI */
|
||||
static inline int ufshcd_qti_hba_init_crypto_capabilities(
|
||||
struct ufs_hba *hba)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_SCSI_UFS_CRYPTO_QTI */
|
||||
|
||||
#endif /* _UFSHCD_CRYPTO_QTI_H */
|
69
include/ufs/ufshcd-crypto.h
Normal file
69
include/ufs/ufshcd-crypto.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright 2019 Google LLC
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _UFSHCD_CRYPTO_H
|
||||
#define _UFSHCD_CRYPTO_H
|
||||
|
||||
#include <scsi/scsi_cmnd.h>
|
||||
#include "ufshcd.h"
|
||||
#include "ufshci.h"
|
||||
|
||||
#ifdef CONFIG_SCSI_UFS_CRYPTO
|
||||
|
||||
static inline void ufshcd_prepare_lrbp_crypto(struct request *rq,
|
||||
struct ufshcd_lrb *lrbp)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
ufshcd_prepare_req_desc_hdr_crypto(struct ufshcd_lrb *lrbp, u32 *dword_0,
|
||||
u32 *dword_1, u32 *dword_3)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba,
|
||||
struct ufshcd_lrb *lrbp)
|
||||
{
|
||||
}
|
||||
|
||||
bool ufshcd_crypto_enable(struct ufs_hba *hba);
|
||||
|
||||
int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba);
|
||||
|
||||
void ufshcd_init_crypto(struct ufs_hba *hba);
|
||||
|
||||
void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q);
|
||||
|
||||
#else /* CONFIG_SCSI_UFS_CRYPTO */
|
||||
|
||||
static inline void ufshcd_prepare_lrbp_crypto(struct request *rq,
|
||||
struct ufshcd_lrb *lrbp) { }
|
||||
|
||||
static inline void
|
||||
ufshcd_prepare_req_desc_hdr_crypto(struct ufshcd_lrb *lrbp, u32 *dword_0,
|
||||
u32 *dword_1, u32 *dword_3) { }
|
||||
|
||||
static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba,
|
||||
struct ufshcd_lrb *lrbp) { }
|
||||
|
||||
static inline bool ufshcd_crypto_enable(struct ufs_hba *hba)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void ufshcd_init_crypto(struct ufs_hba *hba) { }
|
||||
|
||||
static inline void ufshcd_crypto_register(struct ufs_hba *hba,
|
||||
struct request_queue *q) { }
|
||||
|
||||
#endif /* CONFIG_SCSI_UFS_CRYPTO */
|
||||
|
||||
#endif /* _UFSHCD_CRYPTO_H */
|
Reference in New Issue
Block a user