xref: /linux/drivers/gpu/drm/xe/xe_ras.h (revision 570f7e331f5febb30f1384817463c7e42b65ca7d)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2026 Intel Corporation
4  */
5 
6 #ifndef _XE_RAS_H_
7 #define _XE_RAS_H_
8 
9 #include <linux/types.h>
10 #include "xe_ras_types.h"
11 
12 struct xe_device;
13 struct xe_sysctrl_event_response;
14 
15 void xe_ras_counter_threshold_crossed(struct xe_device *xe,
16 				      struct xe_sysctrl_event_response *response);
17 int xe_ras_get_counter(struct xe_device *xe, u8 severity, u8 component, u32 *value);
18 int xe_ras_clear_counter(struct xe_device *xe, u8 severity, u8 component);
19 void xe_ras_init(struct xe_device *xe);
20 enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe);
21 
22 #endif
23