summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra-safety-ivc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tegra-safety-ivc.h b/include/linux/tegra-safety-ivc.h
index 9c43f271b..fce08c62c 100644
--- a/include/linux/tegra-safety-ivc.h
+++ b/include/linux/tegra-safety-ivc.h
@@ -22,6 +22,8 @@
22#define SAFETY_CONF(id, value) ((SAFETY_CONF_ ## id << 24) | (value)) 22#define SAFETY_CONF(id, value) ((SAFETY_CONF_ ## id << 24) | (value))
23#define SAFETY_CONF_GET_ID(value) (((value) >> 24) & 0x7f) 23#define SAFETY_CONF_GET_ID(value) (((value) >> 24) & 0x7f)
24#define SAFETY_CONF_GET_VALUE(value) ((value) & 0xffffff) 24#define SAFETY_CONF_GET_VALUE(value) ((value) & 0xffffff)
25#define TEGRA_SAFETY_SM_CMDRESP_CH 0
26#define TEGRA_SAFETY_IVC_READ_TIMEOUT (2 * HZ)
25 27
26enum { 28enum {
27 SAFETY_CONF_IVC_READY = 1, 29 SAFETY_CONF_IVC_READY = 1,
@@ -49,6 +51,10 @@ struct tegra_safety_ivc {
49 } cmd; 51 } cmd;
50 struct tegra_safety_ivc_chan *ivc_chan[MAX_SAFETY_CHANNELS]; 52 struct tegra_safety_ivc_chan *ivc_chan[MAX_SAFETY_CHANNELS];
51 atomic_t ivc_ready; 53 atomic_t ivc_ready;
54 struct work_struct work;
55 struct workqueue_struct *wq;
56 struct mutex rlock;
57 struct mutex wlock;
52 struct l1ss_data *ldata; 58 struct l1ss_data *ldata;
53}; 59};
54 60