Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright(c) 2020, Intel Corporation. All rights reserved.
0004  */
0005 
0006 #ifndef __INTEL_PXP_PM_H__
0007 #define __INTEL_PXP_PM_H__
0008 
0009 struct intel_pxp;
0010 
0011 #ifdef CONFIG_DRM_I915_PXP
0012 void intel_pxp_suspend_prepare(struct intel_pxp *pxp);
0013 void intel_pxp_suspend(struct intel_pxp *pxp);
0014 void intel_pxp_resume(struct intel_pxp *pxp);
0015 void intel_pxp_runtime_suspend(struct intel_pxp *pxp);
0016 #else
0017 static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp)
0018 {
0019 }
0020 
0021 static inline void intel_pxp_suspend(struct intel_pxp *pxp)
0022 {
0023 }
0024 
0025 static inline void intel_pxp_resume(struct intel_pxp *pxp)
0026 {
0027 }
0028 
0029 static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp)
0030 {
0031 }
0032 #endif
0033 static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp)
0034 {
0035     intel_pxp_resume(pxp);
0036 }
0037 #endif /* __INTEL_PXP_PM_H__ */