mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
Prefer the driver agnostic struct drm_gem_object over i915 specific struct drm_i915_gem_object. Add new intel_bo_* functions as needed. Convert intel_pxp_key_check() to struct drm_gem_object. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/0a6d2bec50764efaae4322c9cfa33eefbfe1c054.1726589119.git.jani.nikula@intel.com
41 lines
1.2 KiB
C
41 lines
1.2 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 intel_pxp *pxp,
|
|
struct drm_gem_object *obj,
|
|
bool assign);
|
|
|
|
void intel_pxp_invalidate(struct intel_pxp *pxp);
|
|
|
|
#endif /* __INTEL_PXP_H__ */
|