xref: /linux/drivers/gpu/drm/xe/xe_sysctrl.h (revision 99676aed1fec109d62822e21a06760eb098dc5f4)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2026 Intel Corporation
4  */
5 
6 #ifndef _XE_SYSCTRL_H_
7 #define _XE_SYSCTRL_H_
8 
9 #include <linux/container_of.h>
10 
11 #include "xe_device_types.h"
12 #include "xe_sysctrl_types.h"
13 
14 static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc)
15 {
16 	return container_of(sc, struct xe_device, sc);
17 }
18 
19 void xe_sysctrl_event(struct xe_sysctrl *sc);
20 int xe_sysctrl_init(struct xe_device *xe);
21 void xe_sysctrl_irq_handler(struct xe_device *xe, u32 master_ctl);
22 void xe_sysctrl_pm_resume(struct xe_device *xe);
23 
24 #endif
25