xref: /linux/drivers/gpu/drm/xe/xe_sysctrl.h (revision 5ea3f0dc8f9d33adf72532b366d0b7b91dae4d7f)
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 
21 #endif
22