26 lines · c
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 11struct intel_pxp;12 13#ifdef CONFIG_DRM_I915_PXP14void intel_pxp_session_management_init(struct intel_pxp *pxp);15void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart);16#else17static inline void intel_pxp_session_management_init(struct intel_pxp *pxp)18{19}20 21static inline void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart)22{23}24#endif25#endif /* __INTEL_PXP_SESSION_H__ */26