• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef _UFSHCD_ADD_INFO_H_
4 #define _UFSHCD_ADD_INFO_H_
5 
6 /*
7  * Compared to the upstream equivalent, @hpb_dev has been moved from struct
8  * ufs_hba into struct ufs_hba_add_info to satisfy the Android ABI checks.
9  * Do NOT use this data structure in any out-of-tree driver since it is not
10  * covered by the GKI.
11  */
12 struct ufs_hba_add_info {
13 	struct ufs_hba hba;
14 	u32 reserved_slot;
15 	struct request **tmf_rqs;
16 #ifdef CONFIG_SCSI_UFS_HPB
17 	struct ufshpb_dev_info hpb_dev;
18 #endif
19 };
20 
ufs_hba_add_info(struct ufs_hba * hba)21 static inline struct ufs_hba_add_info *ufs_hba_add_info(struct ufs_hba *hba)
22 {
23 	return container_of(hba, struct ufs_hba_add_info, hba);
24 }
25 
26 #endif /* _UFSHCD_ADD_INFO_H_ */
27