0001
0002
0003
0004
0005
0006 #ifndef __INTEL_PXP_IRQ_H__
0007 #define __INTEL_PXP_IRQ_H__
0008
0009 #include <linux/types.h>
0010
0011 struct intel_pxp;
0012
0013 #define GEN12_DISPLAY_PXP_STATE_TERMINATED_INTERRUPT BIT(1)
0014 #define GEN12_DISPLAY_APP_TERMINATED_PER_FW_REQ_INTERRUPT BIT(2)
0015 #define GEN12_DISPLAY_STATE_RESET_COMPLETE_INTERRUPT BIT(3)
0016
0017 #define GEN12_PXP_INTERRUPTS \
0018 (GEN12_DISPLAY_PXP_STATE_TERMINATED_INTERRUPT | \
0019 GEN12_DISPLAY_APP_TERMINATED_PER_FW_REQ_INTERRUPT | \
0020 GEN12_DISPLAY_STATE_RESET_COMPLETE_INTERRUPT)
0021
0022 #ifdef CONFIG_DRM_I915_PXP
0023 void intel_pxp_irq_enable(struct intel_pxp *pxp);
0024 void intel_pxp_irq_disable(struct intel_pxp *pxp);
0025 void intel_pxp_irq_handler(struct intel_pxp *pxp, u16 iir);
0026 #else
0027 static inline void intel_pxp_irq_handler(struct intel_pxp *pxp, u16 iir)
0028 {
0029 }
0030 #endif
0031
0032 #endif