summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra-safety-ivc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/tegra-safety-ivc.h b/include/linux/tegra-safety-ivc.h
index 0549e8101..e508168e2 100644
--- a/include/linux/tegra-safety-ivc.h
+++ b/include/linux/tegra-safety-ivc.h
@@ -23,6 +23,8 @@ enum {
23 SAFETY_CONF_IVC_READY = 1, 23 SAFETY_CONF_IVC_READY = 1,
24}; 24};
25 25
26#define MAX_SAFETY_CHANNELS 5
27
26struct safety_ast_region { 28struct safety_ast_region {
27 u8 ast_id; 29 u8 ast_id;
28 u32 slave_base; 30 u32 slave_base;
@@ -42,7 +44,7 @@ struct tegra_safety_ivc {
42 atomic_t response; 44 atomic_t response;
43 atomic_t emptied; 45 atomic_t emptied;
44 } cmd; 46 } cmd;
45 struct tegra_safety_ivc_chan *ivc_chan; 47 struct tegra_safety_ivc_chan *ivc_chan[MAX_SAFETY_CHANNELS];
46}; 48};
47 49
48struct tegra_safety_ivc_chan { 50struct tegra_safety_ivc_chan {
@@ -51,8 +53,8 @@ struct tegra_safety_ivc_chan {
51 struct tegra_safety_ivc *safety_ivc; 53 struct tegra_safety_ivc *safety_ivc;
52}; 54};
53 55
54int tegra_safety_dev_init(struct device *dev); 56int tegra_safety_dev_init(struct device *dev, int index);
55void tegra_safety_dev_exit(struct device *dev); 57void tegra_safety_dev_exit(struct device *dev, int index);
56void tegra_safety_dev_notify(void); 58void tegra_safety_dev_notify(void);
57 59
58#endif 60#endif