projects/linux·blob master · refs

27 lines · 673 B

1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2022 Intel Corporation
4 */
5
6#ifndef _XE_STEP_H_
7#define _XE_STEP_H_
8
9#include <linux/types.h>
10
11#include "xe_step_types.h"
12
13enum xe_platform;
14struct xe_device;
15
16void xe_step_platform_get(enum xe_platform platform, u8 revid, struct xe_step_info *step);
17
18void xe_step_pre_gmdid_get(struct xe_device *xe, struct xe_step_info *step);
19void xe_step_gmdid_get(struct xe_device *xe,
20 u32 graphics_gmdid_revid,
21 u32 media_gmdid_revid,
22 struct xe_step_info *step);
23static inline u32 xe_step_to_gmdid(enum intel_step step) { return step - STEP_A0; }
24
25const char *xe_step_name(enum intel_step step);
26
27#endif