| 1 | /* SPDX-License-Identifier: MIT */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Copyright © 2023 Intel Corporation | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef __INTEL_DISPLAY_WA_H__ | 
|---|
| 7 | #define __INTEL_DISPLAY_WA_H__ | 
|---|
| 8 |  | 
|---|
| 9 | #include <linux/types.h> | 
|---|
| 10 |  | 
|---|
| 11 | struct intel_display; | 
|---|
| 12 |  | 
|---|
| 13 | void intel_display_wa_apply(struct intel_display *display); | 
|---|
| 14 |  | 
|---|
| 15 | #ifdef I915 | 
|---|
| 16 | static inline bool intel_display_needs_wa_16023588340(struct intel_display *display) | 
|---|
| 17 | { | 
|---|
| 18 | return false; | 
|---|
| 19 | } | 
|---|
| 20 | #else | 
|---|
| 21 | bool intel_display_needs_wa_16023588340(struct intel_display *display); | 
|---|
| 22 | #endif | 
|---|
| 23 |  | 
|---|
| 24 | enum intel_display_wa { | 
|---|
| 25 | INTEL_DISPLAY_WA_16023588340, | 
|---|
| 26 | INTEL_DISPLAY_WA_16025573575, | 
|---|
| 27 | INTEL_DISPLAY_WA_14011503117, | 
|---|
| 28 | }; | 
|---|
| 29 |  | 
|---|
| 30 | bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa, const char *name); | 
|---|
| 31 |  | 
|---|
| 32 | #define intel_display_wa(__display, __wa) \ | 
|---|
| 33 | __intel_display_wa((__display), INTEL_DISPLAY_WA_##__wa, __stringify(__wa)) | 
|---|
| 34 |  | 
|---|
| 35 | #endif | 
|---|
| 36 |  | 
|---|