@@ -71,7 +71,7 @@ __diag_push();
7171__diag_ignore_all ("-Woverride-init" , "Allow field overrides in table" );
7272
7373#define PLATFORM (x ) \
74- .platform = (x) , \
74+ .platform = XE_##x , \
7575 .platform_name = #x
7676
7777#define NOP (x ) x
@@ -218,7 +218,7 @@ static const struct xe_media_desc media_xe2 = {
218218static const struct xe_device_desc tgl_desc = {
219219 .graphics = & graphics_xelp ,
220220 .media = & media_xem ,
221- PLATFORM (XE_TIGERLAKE ),
221+ PLATFORM (TIGERLAKE ),
222222 .has_display = true,
223223 .has_llc = true,
224224 .require_force_probe = true,
@@ -227,7 +227,7 @@ static const struct xe_device_desc tgl_desc = {
227227static const struct xe_device_desc rkl_desc = {
228228 .graphics = & graphics_xelp ,
229229 .media = & media_xem ,
230- PLATFORM (XE_ROCKETLAKE ),
230+ PLATFORM (ROCKETLAKE ),
231231 .has_display = true,
232232 .has_llc = true,
233233 .require_force_probe = true,
@@ -238,7 +238,7 @@ static const u16 adls_rpls_ids[] = { XE_RPLS_IDS(NOP), 0 };
238238static const struct xe_device_desc adl_s_desc = {
239239 .graphics = & graphics_xelp ,
240240 .media = & media_xem ,
241- PLATFORM (XE_ALDERLAKE_S ),
241+ PLATFORM (ALDERLAKE_S ),
242242 .has_display = true,
243243 .has_llc = true,
244244 .require_force_probe = true,
@@ -253,7 +253,7 @@ static const u16 adlp_rplu_ids[] = { XE_RPLU_IDS(NOP), 0 };
253253static const struct xe_device_desc adl_p_desc = {
254254 .graphics = & graphics_xelp ,
255255 .media = & media_xem ,
256- PLATFORM (XE_ALDERLAKE_P ),
256+ PLATFORM (ALDERLAKE_P ),
257257 .has_display = true,
258258 .has_llc = true,
259259 .require_force_probe = true,
@@ -266,7 +266,7 @@ static const struct xe_device_desc adl_p_desc = {
266266static const struct xe_device_desc adl_n_desc = {
267267 .graphics = & graphics_xelp ,
268268 .media = & media_xem ,
269- PLATFORM (XE_ALDERLAKE_N ),
269+ PLATFORM (ALDERLAKE_N ),
270270 .has_display = true,
271271 .has_llc = true,
272272 .require_force_probe = true,
@@ -279,7 +279,7 @@ static const struct xe_device_desc dg1_desc = {
279279 .graphics = & graphics_xelpp ,
280280 .media = & media_xem ,
281281 DGFX_FEATURES ,
282- PLATFORM (XE_DG1 ),
282+ PLATFORM (DG1 ),
283283 .has_display = true,
284284 .has_heci_gscfi = 1 ,
285285 .require_force_probe = true,
@@ -291,7 +291,7 @@ static const u16 dg2_g12_ids[] = { XE_DG2_G12_IDS(NOP), 0 };
291291
292292#define DG2_FEATURES \
293293 DGFX_FEATURES, \
294- PLATFORM(XE_DG2 ), \
294+ PLATFORM(DG2 ), \
295295 .has_heci_gscfi = 1, \
296296 .subplatforms = (const struct xe_subplatform_desc[]) { \
297297 { XE_SUBPLATFORM_DG2_G10, "G10", dg2_g10_ids }, \
@@ -321,7 +321,7 @@ static const struct xe_device_desc dg2_desc = {
321321static const __maybe_unused struct xe_device_desc pvc_desc = {
322322 .graphics = & graphics_xehpc ,
323323 DGFX_FEATURES ,
324- PLATFORM (XE_PVC ),
324+ PLATFORM (PVC ),
325325 .has_display = false,
326326 .has_heci_gscfi = 1 ,
327327 .require_force_probe = true,
@@ -330,19 +330,19 @@ static const __maybe_unused struct xe_device_desc pvc_desc = {
330330static const struct xe_device_desc mtl_desc = {
331331 /* .graphics and .media determined via GMD_ID */
332332 .require_force_probe = true,
333- PLATFORM (XE_METEORLAKE ),
333+ PLATFORM (METEORLAKE ),
334334 .has_display = true,
335335};
336336
337337static const struct xe_device_desc lnl_desc = {
338- PLATFORM (XE_LUNARLAKE ),
338+ PLATFORM (LUNARLAKE ),
339339 .has_display = true,
340340 .require_force_probe = true,
341341};
342342
343343static const struct xe_device_desc bmg_desc __maybe_unused = {
344344 DGFX_FEATURES ,
345- PLATFORM (XE_BATTLEMAGE ),
345+ PLATFORM (BATTLEMAGE ),
346346 .require_force_probe = true,
347347};
348348
0 commit comments