2023-08-30 17:31:07 +02:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright(c) 2020, Intel Corporation. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_PXP_SESSION_H__
|
|
|
|
#define __INTEL_PXP_SESSION_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct intel_pxp;
|
|
|
|
|
|
|
|
#ifdef CONFIG_DRM_I915_PXP
|
|
|
|
void intel_pxp_session_management_init(struct intel_pxp *pxp);
|
2023-10-24 12:59:35 +02:00
|
|
|
void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart);
|
2023-08-30 17:31:07 +02:00
|
|
|
#else
|
|
|
|
static inline void intel_pxp_session_management_init(struct intel_pxp *pxp)
|
|
|
|
{
|
|
|
|
}
|
2023-10-24 12:59:35 +02:00
|
|
|
|
|
|
|
static inline void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart)
|
|
|
|
{
|
|
|
|
}
|
2023-08-30 17:31:07 +02:00
|
|
|
#endif
|
|
|
|
#endif /* __INTEL_PXP_SESSION_H__ */
|