Jani Nikula | 7eb186b | 2021-03-26 15:21:32 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: MIT */ |
| 2 | /* |
| 3 | * Copyright © 2020,2021 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef __INTEL_STEP_H__ |
| 7 | #define __INTEL_STEP_H__ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | |
Jani Nikula | ef47b7a | 2021-03-26 15:21:34 +0200 | [diff] [blame] | 11 | struct drm_i915_private; |
| 12 | |
Jani Nikula | 5644dc0 | 2021-03-26 15:21:38 +0200 | [diff] [blame] | 13 | struct intel_step_info { |
Jani Nikula | 26475ca | 2021-03-26 15:21:37 +0200 | [diff] [blame] | 14 | u8 gt_step; |
| 15 | u8 display_step; |
Jani Nikula | 7eb186b | 2021-03-26 15:21:32 +0200 | [diff] [blame] | 16 | }; |
| 17 | |
Anusha Srivatsa | e631a44 | 2021-07-21 14:52:35 -0700 | [diff] [blame] | 18 | #define STEP_ENUM_VAL(name) STEP_##name, |
| 19 | |
| 20 | #define STEP_NAME_LIST(func) \ |
| 21 | func(A0) \ |
| 22 | func(A1) \ |
| 23 | func(A2) \ |
| 24 | func(B0) \ |
| 25 | func(B1) \ |
| 26 | func(B2) \ |
| 27 | func(C0) \ |
| 28 | func(C1) \ |
| 29 | func(D0) \ |
| 30 | func(D1) \ |
| 31 | func(E0) \ |
| 32 | func(F0) \ |
| 33 | func(G0) \ |
| 34 | func(H0) \ |
| 35 | func(I0) \ |
| 36 | func(I1) \ |
| 37 | func(J0) |
| 38 | |
Jani Nikula | 439c8dc | 2021-03-26 15:21:33 +0200 | [diff] [blame] | 39 | /* |
| 40 | * Symbolic steppings that do not match the hardware. These are valid both as gt |
| 41 | * and display steppings as symbolic names. |
| 42 | */ |
| 43 | enum intel_step { |
| 44 | STEP_NONE = 0, |
Anusha Srivatsa | e631a44 | 2021-07-21 14:52:35 -0700 | [diff] [blame] | 45 | STEP_NAME_LIST(STEP_ENUM_VAL) |
Jani Nikula | ef47b7a | 2021-03-26 15:21:34 +0200 | [diff] [blame] | 46 | STEP_FUTURE, |
| 47 | STEP_FOREVER, |
Jani Nikula | 439c8dc | 2021-03-26 15:21:33 +0200 | [diff] [blame] | 48 | }; |
| 49 | |
Jani Nikula | ef47b7a | 2021-03-26 15:21:34 +0200 | [diff] [blame] | 50 | void intel_step_init(struct drm_i915_private *i915); |
Anusha Srivatsa | e631a44 | 2021-07-21 14:52:35 -0700 | [diff] [blame] | 51 | const char *intel_step_name(enum intel_step step); |
Jani Nikula | ef47b7a | 2021-03-26 15:21:34 +0200 | [diff] [blame] | 52 | |
Jani Nikula | 7eb186b | 2021-03-26 15:21:32 +0200 | [diff] [blame] | 53 | #endif /* __INTEL_STEP_H__ */ |