projects/linux·blob master · refs

24 lines · 552 B

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
14static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc)
15{
16 return container_of(sc, struct xe_device, sc);
17}
18
19void xe_sysctrl_event(struct xe_sysctrl *sc);
20int xe_sysctrl_init(struct xe_device *xe);
21void xe_sysctrl_irq_handler(struct xe_device *xe, u32 master_ctl);
22void xe_sysctrl_pm_resume(struct xe_device *xe);
23
24#endif