mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
misc: mods: Add ioctl to pass messages to tz app
Summary: This change adds support in mods kernel driver to send messages to Trusty in order to run tests trust zone side Signed-off-by: Ellis Roberts <ellisr@nvidia.com> Change-Id: I5cd0a1dcc4d1ac5543df5fb3ebec4427c1145e10 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2567469 Tested-by: Rohith Talluri <sitalluri@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Stephen Wolfe <swolfe@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
@@ -1780,6 +1780,21 @@ struct MODS_IOMMU_DMA_MAP_MEMORY {
|
||||
__u64 physical_address;
|
||||
};
|
||||
|
||||
#define MAX_TZ_BUFFER_SIZE 512
|
||||
/* Used by MODS_ESC_SEND_TZ_MSG.
|
||||
*
|
||||
* Available only on Tegra.
|
||||
*/
|
||||
struct MODS_TZ_PARAMS {
|
||||
/* IN */
|
||||
__u8 buf[MAX_TZ_BUFFER_SIZE];
|
||||
__u32 buf_size;
|
||||
__u32 cmd;
|
||||
|
||||
/* OUT */
|
||||
int status;
|
||||
};
|
||||
|
||||
#define MODS_IOMMU_MAP_CONTIGUOUS 1
|
||||
|
||||
#pragma pack(pop)
|
||||
@@ -1979,5 +1994,6 @@ struct MODS_IOMMU_DMA_MAP_MEMORY {
|
||||
#define MODS_ESC_MODS_GET_DRIVER_STATS MODSIO(R, 135, MODS_GET_DRIVER_STATS)
|
||||
#define MODS_ESC_BPMP_SET_PCIE_STATE MODSIO(W, 136, MODS_SET_PCIE_STATE)
|
||||
#define MODS_ESC_BPMP_INIT_PCIE_EP_PLL MODSIO(W, 137, MODS_INIT_PCIE_EP_PLL)
|
||||
#define MODS_ESC_SEND_TZ_MSG MODSIO(WR, 139, MODS_TZ_PARAMS)
|
||||
|
||||
#endif /* _UAPI_MODS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user