1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef INTEL_GT_IRQ_H 7 #define INTEL_GT_IRQ_H 8 9 #include <linux/types.h> 10 11 struct intel_gt; 12 13 #define GEN8_GT_IRQS (GEN8_GT_RCS_IRQ | \ 14 GEN8_GT_BCS_IRQ | \ 15 GEN8_GT_VCS0_IRQ | \ 16 GEN8_GT_VCS1_IRQ | \ 17 GEN8_GT_VECS_IRQ | \ 18 GEN8_GT_PM_IRQ | \ 19 GEN8_GT_GUC_IRQ) 20 21 void gen11_gt_irq_reset(struct intel_gt *gt); 22 void gen11_gt_irq_postinstall(struct intel_gt *gt); 23 void gen11_gt_irq_handler(struct intel_gt *gt, const u32 master_ctl); 24 25 bool gen11_gt_reset_one_iir(struct intel_gt *gt, 26 const unsigned int bank, 27 const unsigned int bit); 28 29 void gen5_gt_irq_handler(struct intel_gt *gt, u32 gt_iir); 30 31 void gen5_gt_irq_postinstall(struct intel_gt *gt); 32 void gen5_gt_irq_reset(struct intel_gt *gt); 33 void gen5_gt_disable_irq(struct intel_gt *gt, u32 mask); 34 void gen5_gt_enable_irq(struct intel_gt *gt, u32 mask); 35 36 void gen6_gt_irq_handler(struct intel_gt *gt, u32 gt_iir); 37 38 void gen8_gt_irq_handler(struct intel_gt *gt, u32 master_ctl); 39 void gen8_gt_irq_reset(struct intel_gt *gt); 40 void gen8_gt_irq_postinstall(struct intel_gt *gt); 41 42 #endif /* INTEL_GT_IRQ_H */ 43