xref: /linux/drivers/gpu/drm/xe/xe_step.h (revision 570f7e331f5febb30f1384817463c7e42b65ca7d)
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 
13 enum xe_platform;
14 struct xe_device;
15 
16 void xe_step_platform_get(enum xe_platform platform, u8 revid, struct xe_step_info *step);
17 
18 void xe_step_pre_gmdid_get(struct xe_device *xe, struct xe_step_info *step);
19 void xe_step_gmdid_get(struct xe_device *xe,
20 		       u32 graphics_gmdid_revid,
21 		       u32 media_gmdid_revid,
22 		       struct xe_step_info *step);
23 static inline u32 xe_step_to_gmdid(enum intel_step step) { return step - STEP_A0; }
24 
25 const char *xe_step_name(enum intel_step step);
26 
27 #endif
28