26 lines
534 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2020 Linaro Ltd. */
#ifndef __VENUS_DBGFS_H__
#define __VENUS_DBGFS_H__
2026-01-29 22:25:33 +08:00
#include <linux/fault-inject.h>
2026-01-21 18:59:54 +08:00
struct venus_core;
2026-01-29 22:25:33 +08:00
#ifdef CONFIG_FAULT_INJECTION
extern struct fault_attr venus_ssr_attr;
static inline bool venus_fault_inject_ssr(void)
{
return should_fail(&venus_ssr_attr, 1);
}
#else
static inline bool venus_fault_inject_ssr(void) { return false; }
#endif
2026-01-21 18:59:54 +08:00
void venus_dbgfs_init(struct venus_core *core);
void venus_dbgfs_deinit(struct venus_core *core);
#endif