xref: /linux/drivers/gpu/drm/xe/xe_ras.h (revision 5c9deba5578db5a3ea05be8a3e4a59ecb08ee76f)
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 
11 struct xe_device;
12 struct xe_sysctrl_event_response;
13 
14 void xe_ras_counter_threshold_crossed(struct xe_device *xe,
15 				      struct xe_sysctrl_event_response *response);
16 int xe_ras_get_counter(struct xe_device *xe, u8 severity, u8 component, u32 *value);
17 int xe_ras_clear_counter(struct xe_device *xe, u8 severity, u8 component);
18 void xe_ras_init(struct xe_device *xe);
19 
20 #endif
21