Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2020,2021 Intel Corporation
0004  */
0005 
0006 #ifndef __INTEL_STEP_H__
0007 #define __INTEL_STEP_H__
0008 
0009 #include <linux/types.h>
0010 
0011 struct drm_i915_private;
0012 
0013 struct intel_step_info {
0014     u8 graphics_step;   /* Represents the compute tile on Xe_HPC */
0015     u8 display_step;
0016     u8 media_step;
0017     u8 basedie_step;
0018 };
0019 
0020 #define STEP_ENUM_VAL(name)  STEP_##name,
0021 
0022 #define STEP_NAME_LIST(func)        \
0023     func(A0)            \
0024     func(A1)            \
0025     func(A2)            \
0026     func(B0)            \
0027     func(B1)            \
0028     func(B2)            \
0029     func(B3)            \
0030     func(C0)            \
0031     func(C1)            \
0032     func(D0)            \
0033     func(D1)            \
0034     func(E0)            \
0035     func(F0)            \
0036     func(G0)            \
0037     func(H0)            \
0038     func(I0)            \
0039     func(I1)            \
0040     func(J0)
0041 
0042 /*
0043  * Symbolic steppings that do not match the hardware. These are valid both as gt
0044  * and display steppings as symbolic names.
0045  */
0046 enum intel_step {
0047     STEP_NONE = 0,
0048     STEP_NAME_LIST(STEP_ENUM_VAL)
0049     STEP_FUTURE,
0050     STEP_FOREVER,
0051 };
0052 
0053 void intel_step_init(struct drm_i915_private *i915);
0054 const char *intel_step_name(enum intel_step step);
0055 
0056 #endif /* __INTEL_STEP_H__ */