| 1 |
|
| 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 |
|
| 11 | struct xe_device;
|
| 12 |
|
| 13 | #ifdef CONFIG_DEBUG_FS
|
| 14 | bool xe_fault_gt_reset(void);
|
| 15 | bool xe_fault_csc_hw_error(void);
|
| 16 | void xe_debugfs_register(struct xe_device *xe);
|
| 17 | #else
|
| 18 | static inline bool xe_fault_gt_reset(void) { return false; }
|
| 19 | static inline bool xe_fault_csc_hw_error(void) { return false; }
|
| 20 | static inline void xe_debugfs_register(struct xe_device *xe) { }
|
| 21 | #endif
|
| 22 |
|
| 23 | #endif
|