As for display, the intent is to share the display code with the i915 driver so that there is maximum reuse there. We do this by recompiling i915/display code twice. Now that i915 has been adapted to support the Xe build, we can add the xe/display support. This initial work is a collaboration of many people and unfortunately this squashed patch won't fully honor the proper credits. But let's try to add a few from the squashed patches: Co-developed-by: Matthew Brost <matthew.brost@intel.com> Co-developed-by: Jani Nikula <jani.nikula@intel.com> Co-developed-by: Lucas De Marchi <lucas.demarchi@intel.com> Co-developed-by: Matt Roper <matthew.d.roper@intel.com> Co-developed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Co-developed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Co-developed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
42 lines
1 KiB
C
42 lines
1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_PCODE_H__
|
|
#define __INTEL_PCODE_H__
|
|
|
|
#include "intel_uncore.h"
|
|
#include "xe_pcode.h"
|
|
|
|
static inline int
|
|
snb_pcode_write_timeout(struct intel_uncore *uncore, u32 mbox, u32 val,
|
|
int fast_timeout_us, int slow_timeout_ms)
|
|
{
|
|
return xe_pcode_write_timeout(__compat_uncore_to_gt(uncore), mbox, val,
|
|
slow_timeout_ms ?: 1);
|
|
}
|
|
|
|
static inline int
|
|
snb_pcode_write(struct intel_uncore *uncore, u32 mbox, u32 val)
|
|
{
|
|
|
|
return xe_pcode_write(__compat_uncore_to_gt(uncore), mbox, val);
|
|
}
|
|
|
|
static inline int
|
|
snb_pcode_read(struct intel_uncore *uncore, u32 mbox, u32 *val, u32 *val1)
|
|
{
|
|
return xe_pcode_read(__compat_uncore_to_gt(uncore), mbox, val, val1);
|
|
}
|
|
|
|
static inline int
|
|
skl_pcode_request(struct intel_uncore *uncore, u32 mbox,
|
|
u32 request, u32 reply_mask, u32 reply,
|
|
int timeout_base_ms)
|
|
{
|
|
return xe_pcode_request(__compat_uncore_to_gt(uncore), mbox, request, reply_mask, reply,
|
|
timeout_base_ms);
|
|
}
|
|
|
|
#endif /* __INTEL_PCODE_H__ */
|