Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright(c) 2020, Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __INTEL_PXP_H__
|
|
#define __INTEL_PXP_H__
|
|
|
|
#include <linux/errno.h>
|
|
#include <linux/types.h>
|
|
|
|
struct drm_gem_object;
|
|
struct drm_i915_private;
|
|
struct intel_pxp;
|
|
|
|
bool intel_pxp_is_supported(const struct intel_pxp *pxp);
|
|
bool intel_pxp_is_enabled(const struct intel_pxp *pxp);
|
|
bool intel_pxp_is_active(const struct intel_pxp *pxp);
|
|
|
|
int intel_pxp_init(struct drm_i915_private *i915);
|
|
void intel_pxp_fini(struct drm_i915_private *i915);
|
|
|
|
void intel_pxp_init_hw(struct intel_pxp *pxp);
|
|
void intel_pxp_fini_hw(struct intel_pxp *pxp);
|
|
|
|
void intel_pxp_mark_termination_in_progress(struct intel_pxp *pxp);
|
|
void intel_pxp_tee_end_arb_fw_session(struct intel_pxp *pxp, u32 arb_session_id);
|
|
|
|
int intel_pxp_get_readiness_status(struct intel_pxp *pxp, int timeout_ms);
|
|
int intel_pxp_get_backend_timeout_ms(struct intel_pxp *pxp);
|
|
int intel_pxp_start(struct intel_pxp *pxp);
|
|
void intel_pxp_end(struct intel_pxp *pxp);
|
|
|
|
int intel_pxp_key_check(struct drm_gem_object *obj, bool assign);
|
|
|
|
void intel_pxp_invalidate(struct intel_pxp *pxp);
|
|
|
|
#endif /* __INTEL_PXP_H__ */
|