mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Made below changes to hba structure to make it symmetric as core hba structure for K6.1. 1. Remove unused members in hbs structure. 2. Added write booster mutex. Bug 4161857 Change-Id: I1fdb5e7da11e51edb9f072f8fde25795b38bdc30 Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2973021 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
34 lines
874 B
C
34 lines
874 B
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
// Copyright (c) 2015-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#ifndef _UFS_PROVISION_H
|
|
#define _UFS_PROVISION_H
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
|
#include <drivers-private/scsi/ufs/k515/ufshcd.h>
|
|
#elif LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0)
|
|
#include <drivers-private/scsi/ufs/k516/ufshcd.h>
|
|
#else
|
|
#include <drivers-private/scsi/ufs/k61/ufshcd.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
#include <linux/debugfs.h>
|
|
void debugfs_provision_init(struct ufs_hba *hba, struct dentry *device_root);
|
|
void debugfs_provision_exit(struct ufs_hba *hba);
|
|
#else
|
|
static inline void debugfs_provision_init(struct ufs_hba *hba, struct dentry *device_root)
|
|
{
|
|
return;
|
|
}
|
|
static inline void debugfs_provision_exit(struct ufs_hba *hba)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|
|
|
|
#endif
|