summaryrefslogtreecommitdiff
path: root/include/ufs/ufshci.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2022-12-30 21:21:53 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2022-12-30 21:21:53 +0000
commit4a5bd1a928a22c20f77821d0bd9c80849827e292 (patch)
treed956822fedc9379015d513a80d5918f6c4e2bf63 /include/ufs/ufshci.h
parent9a3a5a8556e51c2fafdcbc9996865fc55d3d6775 (diff)
parentada1e653a5eae7361d95781ed812caa0c8e07dbb (diff)
Merge patch series "Prepare for upstreaming Pixel 6 and 7 UFS support"
Bart Van Assche <bvanassche@acm.org> says: The patches in this series are a first step towards integrating support in the upstream kernel for the UFS controller in the Pixel 6 and 7. [mkp: resolve conflict with RPMB series] Link: https://lore.kernel.org/r/20221208234358.252031-1-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs/ufshci.h')
-rw-r--r--include/ufs/ufshci.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/ufs/ufshci.h b/include/ufs/ufshci.h
index af216296b86e..9346efea3eb3 100644
--- a/include/ufs/ufshci.h
+++ b/include/ufs/ufshci.h
@@ -423,18 +423,23 @@ struct ufshcd_sg_entry {
__le64 addr;
__le32 reserved;
__le32 size;
+ /*
+ * followed by variant-specific fields if
+ * CONFIG_SCSI_UFS_VARIABLE_SG_ENTRY_SIZE has been defined.
+ */
};
/**
* struct utp_transfer_cmd_desc - UTP Command Descriptor (UCD)
* @command_upiu: Command UPIU Frame address
* @response_upiu: Response UPIU Frame address
- * @prd_table: Physical Region Descriptor
+ * @prd_table: Physical Region Descriptor: an array of SG_ALL struct
+ * ufshcd_sg_entry's. Variant-specific fields may be present after each.
*/
struct utp_transfer_cmd_desc {
u8 command_upiu[ALIGNED_UPIU_SIZE];
u8 response_upiu[ALIGNED_UPIU_SIZE];
- struct ufshcd_sg_entry prd_table[SG_ALL];
+ u8 prd_table[];
};
/**