linux-stable/drivers/gpu/drm/i915/gt/intel_gt_pm_irq.h
Andi Shyti d762043f7a drm/i915: Extract GT powermanagement interrupt handling
i915_irq.c is large. It serves as the central dispatch and handler for
all of our device interrupts. Pull out the GT pm interrupt handling
(leaving the central dispatch) so that we can encapsulate the logic a
little better.

Based on a patch by Chris Wilson.

Signed-off-by: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190811142801.2460-1-chris@chris-wilson.co.uk
2019-08-12 15:36:06 +01:00

22 lines
527 B
C

/*
* SPDX-License-Identifier: MIT
*
* Copyright © 2019 Intel Corporation
*/
#ifndef INTEL_GT_PM_IRQ_H
#define INTEL_GT_PM_IRQ_H
#include <linux/types.h>
struct intel_gt;
void gen6_gt_pm_unmask_irq(struct intel_gt *gt, u32 mask);
void gen6_gt_pm_mask_irq(struct intel_gt *gt, u32 mask);
void gen6_gt_pm_enable_irq(struct intel_gt *gt, u32 enable_mask);
void gen6_gt_pm_disable_irq(struct intel_gt *gt, u32 disable_mask);
void gen6_gt_pm_reset_iir(struct intel_gt *gt, u32 reset_mask);
#endif /* INTEL_GT_PM_IRQ_H */