xref: /linux/drivers/gpu/drm/xe/xe_step.h (revision 021bc4b9)
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 struct xe_device;
14 
15 struct xe_step_info xe_step_pre_gmdid_get(struct xe_device *xe);
16 struct xe_step_info xe_step_gmdid_get(struct xe_device *xe,
17 				      u32 graphics_gmdid_revid,
18 				      u32 media_gmdid_revid);
19 static inline u32 xe_step_to_gmdid(enum xe_step step) { return step - STEP_A0; }
20 
21 const char *xe_step_name(enum xe_step step);
22 
23 #endif
24