mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
iommu/arm-smmu-v3: Add struct arm_smmu_cmd to represent the HW format command
Like STE/CD, add a wrapper struct around the u64 array to represent the already FIELD_PREP'd command data. Unlike the STE/CD this is a u64 because the command submission path will have the swap to le64. This makes the API clearer when a u64 is referring to a formatted command and makes the following changes easier to follow. Move the command constants out of the struct and into an enum alongside the rest of the constants defining the HW format so the entire HW format is self contained and independent of struct arm_smmu_cmdq_ent. Reviewed-by: Samiullah Khawaja <skhawaja@google.com> Reviewed-by: Mostafa Saleh <smostafa@google.com> Reviewed-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-by: Pranjal Shrivastava <praan@google.com> Tested-by: Pranjal Shrivastava <praan@google.com> Tested-by: Mostafa Saleh <smostafa@google.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Tested-by: Samiullah Khawaja <skhawaja@google.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
2b9f593dad
commit
bf00a29234
1 changed files with 28 additions and 20 deletions
Loading…
Add table
Add a link
Reference in a new issue