1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2023 Intel Corporation
6 #ifndef __INTEL_PCODE_H__
7 #define __INTEL_PCODE_H__
9 #include "intel_uncore.h"
13 snb_pcode_write_timeout(struct intel_uncore *uncore, u32 mbox, u32 val,
14 int fast_timeout_us, int slow_timeout_ms)
16 return xe_pcode_write_timeout(__compat_uncore_to_gt(uncore), mbox, val,
17 slow_timeout_ms ?: 1);
21 snb_pcode_write(struct intel_uncore *uncore, u32 mbox, u32 val)
24 return xe_pcode_write(__compat_uncore_to_gt(uncore), mbox, val);
28 snb_pcode_read(struct intel_uncore *uncore, u32 mbox, u32 *val, u32 *val1)
30 return xe_pcode_read(__compat_uncore_to_gt(uncore), mbox, val, val1);
34 skl_pcode_request(struct intel_uncore *uncore, u32 mbox,
35 u32 request, u32 reply_mask, u32 reply,
38 return xe_pcode_request(__compat_uncore_to_gt(uncore), mbox, request, reply_mask, reply,
42 #endif /* __INTEL_PCODE_H__ */