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 9*602e604aSJani Nikula struct intel_pxp; 100cfab4cbSHuang, Sean Z 110cfab4cbSHuang, Sean Z #ifdef CONFIG_DRM_I915_PXP 12b8d84368STejas Upadhyay void intel_pxp_suspend_prepare(struct intel_pxp *pxp); 13b8d84368STejas Upadhyay void intel_pxp_suspend(struct intel_pxp *pxp); 140cfab4cbSHuang, Sean Z void intel_pxp_resume(struct intel_pxp *pxp); 15b8d84368STejas Upadhyay void intel_pxp_runtime_suspend(struct intel_pxp *pxp); 160cfab4cbSHuang, Sean Z #else 17b8d84368STejas Upadhyay static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp) 18b8d84368STejas Upadhyay { 19b8d84368STejas Upadhyay } 20b8d84368STejas Upadhyay 21b8d84368STejas 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 29b8d84368STejas Upadhyay static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp) 30b8d84368STejas Upadhyay { 31b8d84368STejas Upadhyay } 32b8d84368STejas Upadhyay #endif 33b8d84368STejas Upadhyay static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp) 34b8d84368STejas Upadhyay { 35b8d84368STejas Upadhyay intel_pxp_resume(pxp); 36b8d84368STejas Upadhyay } 370cfab4cbSHuang, Sean Z #endif /* __INTEL_PXP_PM_H__ */ 38