projects/linux·blob master · refs

23 lines · 521 B

1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2022 Intel Corporation
4 */
5
6#ifndef _XE_DEBUGFS_H_
7#define _XE_DEBUGFS_H_
8
9#include <linux/types.h>
10
11struct xe_device;
12
13#ifdef CONFIG_DEBUG_FS
14bool xe_fault_gt_reset(void);
15bool xe_fault_csc_hw_error(void);
16void xe_debugfs_register(struct xe_device *xe);
17#else
18static inline bool xe_fault_gt_reset(void) { return false; }
19static inline bool xe_fault_csc_hw_error(void) { return false; }
20static inline void xe_debugfs_register(struct xe_device *xe) { }
21#endif
22
23#endif