summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPreetham Chandru Ramchandra <pchandru@nvidia.com>2021-06-01 07:02:55 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2021-06-07 16:09:28 -0400
commit8e22b81c5c85985ba3238f67919c201ebc8f456a (patch)
tree684456cd2abad27c77afe0ea3df7d6200ca2401e /include/linux
parentd9ca6d86e9a96e966a111ff1edd421c095b14ffa (diff)
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 <pchandru@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2537820 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra_l1ss_ioctl.h35
1 files changed, 35 insertions, 0 deletions
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;
85 * Denotes diagnostic tests 85 * Denotes diagnostic tests
86 */ 86 */
87#define NVGUARD_SERVICECLASS_DIAG_TEST (2U) 87#define NVGUARD_SERVICECLASS_DIAG_TEST (2U)
88/*
89 * Defines the FuSa state during initialization.
90 */
91#define NVGUARD_TEGRA_FUSASTATE_INIT (0U)
92/*
93 * Defines the FuSa state when no error is reported to 3LSS
94 */
95#define NVGUARD_TEGRA_FUSASTATE_NOERROR (1U)
96/*
97 * Defines the FuSa state when an error is reported to 3LSS
98 */
99#define NVGUARD_TEGRA_FUSASTATE_ERROR (2U)
100
101/* Defines a change in the FuSa state.
102 */
103#define NVGUARD_SUPPNOTIF_FUSASTATE_CHANGE (0U)
104
105/*
106 * Defines the availability of user data to be read.
107 */
108#define NVGUARD_SUPPNOTIF_USERMSG_READY (1U)
88 109
89/* 110/*
90 * Defines the maximum length of user message, in bytes. 111 * Defines the maximum length of user message, in bytes.
@@ -215,6 +236,20 @@ typedef struct {
215 nv_guard_group_state_t state; 236 nv_guard_group_state_t state;
216} nv_guard_query_grp_state_t; 237} nv_guard_query_grp_state_t;
217 238
239/* Holds Tegra FuSa state.
240 *
241 * @valuerange
242 * - NVGUARD_TEGRA_FUSASTATE_INIT
243 * - NVGUARD_TEGRA_FUSASTATE_NOERROR
244 * - NVGUARD_TEGRA_FUSASTATE_ERROR
245 */
246typedef uint8_t nv_guard_FuSa_state_t;
247
248/* Supplementary notification of type 'nv_guard_supplementary_notification_t'.
249 * Argument for supplementary notification callback registered by clients
250 */
251typedef uint8_t nv_guard_supplementary_notification_t;
252
218/* 253/*
219 * Defines the user application message transferred to 3LSS. User messages 254 * Defines the user application message transferred to 3LSS. User messages
220 * are transmitted between Application SW at CCPLEX to MCU. 255 * are transmitted between Application SW at CCPLEX to MCU.