10cfab4cbSHuang, Sean Z /* SPDX-License-Identifier: MIT */ 20cfab4cbSHuang, Sean Z /* 30cfab4cbSHuang, Sean Z * Copyright(c) 2020, Intel Corporation. All rights reserved. 40cfab4cbSHuang, Sean Z */ 50cfab4cbSHuang, Sean Z 60cfab4cbSHuang, Sean Z #ifndef __INTEL_PXP_PM_H__ 70cfab4cbSHuang, Sean Z #define __INTEL_PXP_PM_H__ 80cfab4cbSHuang, Sean Z 90cfab4cbSHuang, Sean Z #include "intel_pxp_types.h" 100cfab4cbSHuang, Sean Z 110cfab4cbSHuang, Sean Z #ifdef CONFIG_DRM_I915_PXP 12*b8d84368STejas Upadhyay void intel_pxp_suspend_prepare(struct intel_pxp *pxp); 13*b8d84368STejas Upadhyay void intel_pxp_suspend(struct intel_pxp *pxp); 140cfab4cbSHuang, Sean Z void intel_pxp_resume(struct intel_pxp *pxp); 15*b8d84368STejas Upadhyay void intel_pxp_runtime_suspend(struct intel_pxp *pxp); 160cfab4cbSHuang, Sean Z #else 17*b8d84368STejas Upadhyay static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp) 18*b8d84368STejas Upadhyay { 19*b8d84368STejas Upadhyay } 20*b8d84368STejas Upadhyay 21*b8d84368STejas Upadhyay static inline void intel_pxp_suspend(struct intel_pxp *pxp) 220cfab4cbSHuang, Sean Z { 230cfab4cbSHuang, Sean Z } 240cfab4cbSHuang, Sean Z 250cfab4cbSHuang, Sean Z static inline void intel_pxp_resume(struct intel_pxp *pxp) 260cfab4cbSHuang, Sean Z { 270cfab4cbSHuang, Sean Z } 280cfab4cbSHuang, Sean Z 29*b8d84368STejas Upadhyay static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp) 30*b8d84368STejas Upadhyay { 31*b8d84368STejas Upadhyay } 32*b8d84368STejas Upadhyay #endif 33*b8d84368STejas Upadhyay static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp) 34*b8d84368STejas Upadhyay { 35*b8d84368STejas Upadhyay intel_pxp_resume(pxp); 36*b8d84368STejas Upadhyay } 370cfab4cbSHuang, Sean Z #endif /* __INTEL_PXP_PM_H__ */ 38