From 8e22b81c5c85985ba3238f67919c201ebc8f456a Mon Sep 17 00:00:00 2001 From: Preetham Chandru Ramchandra Date: Tue, 1 Jun 2021 16:32:55 +0530 Subject: tegra: safety: FuSa State notification command Add support for CMDRESP_FUSA_STATE_NOTIFICATION command. This command will be sent from L2SS to L1SS when FuSa (Functional Safety) Manager's state changes. Bug 200700404 Change-Id: Ice986c17adf809f1eaf2dd7131aa70a5e67f9d1a Signed-off-by: Preetham Chandru Ramchandra Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2537820 Reviewed-by: Bibek Basu Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- include/linux/tegra_l1ss_ioctl.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'include/linux') diff --git a/include/linux/tegra_l1ss_ioctl.h b/include/linux/tegra_l1ss_ioctl.h index f42697499..847a169df 100644 --- a/include/linux/tegra_l1ss_ioctl.h +++ b/include/linux/tegra_l1ss_ioctl.h @@ -85,6 +85,27 @@ typedef uint32_t nv_guard_group_id_t; * Denotes diagnostic tests */ #define NVGUARD_SERVICECLASS_DIAG_TEST (2U) +/* + * Defines the FuSa state during initialization. + */ +#define NVGUARD_TEGRA_FUSASTATE_INIT (0U) +/* + * Defines the FuSa state when no error is reported to 3LSS + */ +#define NVGUARD_TEGRA_FUSASTATE_NOERROR (1U) +/* + * Defines the FuSa state when an error is reported to 3LSS + */ +#define NVGUARD_TEGRA_FUSASTATE_ERROR (2U) + +/* Defines a change in the FuSa state. + */ +#define NVGUARD_SUPPNOTIF_FUSASTATE_CHANGE (0U) + +/* + * Defines the availability of user data to be read. + */ +#define NVGUARD_SUPPNOTIF_USERMSG_READY (1U) /* * Defines the maximum length of user message, in bytes. @@ -215,6 +236,20 @@ typedef struct { nv_guard_group_state_t state; } nv_guard_query_grp_state_t; +/* Holds Tegra FuSa state. + * + * @valuerange + * - NVGUARD_TEGRA_FUSASTATE_INIT + * - NVGUARD_TEGRA_FUSASTATE_NOERROR + * - NVGUARD_TEGRA_FUSASTATE_ERROR + */ +typedef uint8_t nv_guard_FuSa_state_t; + +/* Supplementary notification of type 'nv_guard_supplementary_notification_t'. + * Argument for supplementary notification callback registered by clients + */ +typedef uint8_t nv_guard_supplementary_notification_t; + /* * Defines the user application message transferred to 3LSS. User messages * are transmitted between Application SW at CCPLEX to MCU. -- cgit v1.2.2