xref: /linux/drivers/gpu/drm/xe/xe_sysctrl.h (revision a68247371b6eb33013429037b28ff713aa60fc5a)
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 int xe_sysctrl_init(struct xe_device *xe);
20 void xe_sysctrl_irq_handler(struct xe_device *xe, u32 master_ctl);
21 void xe_sysctrl_pm_resume(struct xe_device *xe);
22 
23 #endif
24