1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright(c) 2020, Intel Corporation. All rights reserved. 4 */ 5 6 #ifndef __INTEL_PXP_SESSION_H__ 7 #define __INTEL_PXP_SESSION_H__ 8 9 #include <linux/types.h> 10 11 struct intel_pxp; 12 13 #ifdef CONFIG_DRM_I915_PXP 14 void intel_pxp_session_management_init(struct intel_pxp *pxp); 15 void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart); 16 #else intel_pxp_session_management_init(struct intel_pxp * pxp)17static inline void intel_pxp_session_management_init(struct intel_pxp *pxp) 18 { 19 } 20 intel_pxp_terminate(struct intel_pxp * pxp,bool post_invalidation_needs_restart)21static inline void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart) 22 { 23 } 24 #endif 25 #endif /* __INTEL_PXP_SESSION_H__ */ 26