xref: /linux/drivers/media/platform/qcom/venus/dbgfs.h (revision c6fbb759)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2020 Linaro Ltd. */
3 
4 #ifndef __VENUS_DBGFS_H__
5 #define __VENUS_DBGFS_H__
6 
7 #include <linux/fault-inject.h>
8 
9 struct venus_core;
10 
11 #ifdef CONFIG_FAULT_INJECTION
12 extern struct fault_attr venus_ssr_attr;
13 static inline bool venus_fault_inject_ssr(void)
14 {
15 	return should_fail(&venus_ssr_attr, 1);
16 }
17 #else
18 static inline bool venus_fault_inject_ssr(void) { return false; }
19 #endif
20 
21 
22 void venus_dbgfs_init(struct venus_core *core);
23 void venus_dbgfs_deinit(struct venus_core *core);
24 
25 #endif
26