hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
26
/* 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;
   u32 reserved_slot;
   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_ */