Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gt / intel_gt_irq.h
blob886c5cf408a20368516a6676225f5d48dc05e7a9
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
5 */
7 #ifndef INTEL_GT_IRQ_H
8 #define INTEL_GT_IRQ_H
10 #include <linux/types.h>
12 struct intel_gt;
14 #define GEN8_GT_IRQS (GEN8_GT_RCS_IRQ | \
15 GEN8_GT_BCS_IRQ | \
16 GEN8_GT_VCS0_IRQ | \
17 GEN8_GT_VCS1_IRQ | \
18 GEN8_GT_VECS_IRQ | \
19 GEN8_GT_PM_IRQ | \
20 GEN8_GT_GUC_IRQ)
22 void gen11_gt_irq_reset(struct intel_gt *gt);
23 void gen11_gt_irq_postinstall(struct intel_gt *gt);
24 void gen11_gt_irq_handler(struct intel_gt *gt, const u32 master_ctl);
26 bool gen11_gt_reset_one_iir(struct intel_gt *gt,
27 const unsigned int bank,
28 const unsigned int bit);
30 void gen5_gt_irq_handler(struct intel_gt *gt, u32 gt_iir);
32 void gen5_gt_irq_postinstall(struct intel_gt *gt);
33 void gen5_gt_irq_reset(struct intel_gt *gt);
34 void gen5_gt_disable_irq(struct intel_gt *gt, u32 mask);
35 void gen5_gt_enable_irq(struct intel_gt *gt, u32 mask);
37 void gen6_gt_irq_handler(struct intel_gt *gt, u32 gt_iir);
39 void gen8_gt_irq_handler(struct intel_gt *gt, u32 master_ctl);
40 void gen8_gt_irq_reset(struct intel_gt *gt);
41 void gen8_gt_irq_postinstall(struct intel_gt *gt);
43 #endif /* INTEL_GT_IRQ_H */