summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd-add-info.h
blob: 72ed34de6a6126b3e3379f50951015c2e157194c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _UFSHCD_ADD_INFO_H_
#define _UFSHCD_ADD_INFO_H_

/*
 * Compared to the upstream equivalent, @hpb_dev has been moved from struct
 * ufs_hba into struct ufs_hba_add_info to satisfy the Android ABI checks.
 * Do NOT use this data structure in any out-of-tree driver since it is not
 * covered by the GKI.
 */
struct ufs_hba_add_info {
	struct ufs_hba hba;
	struct request **tmf_rqs;
#ifdef CONFIG_SCSI_UFS_HPB
	struct ufshpb_dev_info hpb_dev;
#endif
};

static inline struct ufs_hba_add_info *ufs_hba_add_info(struct ufs_hba *hba)
{
	return container_of(hba, struct ufs_hba_add_info, hba);
}

#endif /* _UFSHCD_ADD_INFO_H_ */