android_kernel_xiaomi_sm8350/drivers/irqchip/irq-gic-common.h
Raghavendra Rao Ananta 03dbd6813c irqchip: Declare the msm_show_resume_irq_mask in a header
msm_show_resume_irq_mask is currently being declared by individual
drivers as needed. However, it creates scalability issues and looks
ugly. Hence, place the variable in a common header file so that the
drivers can just include it.

Change-Id: I35348a6a280c15a5ad4744097f1075f165af1bc8
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-15 14:18:51 -07:00

36 lines
982 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2002 ARM Limited, All Rights Reserved.
*/
#ifndef _IRQ_GIC_COMMON_H
#define _IRQ_GIC_COMMON_H
#include <linux/of.h>
#include <linux/irqdomain.h>
#include <linux/irqchip/arm-gic-common.h>
#include <linux/msm_show_resume_irq.h>
struct gic_quirk {
const char *desc;
const char *compatible;
bool (*init)(void *data);
u32 iidr;
u32 mask;
};
int gic_configure_irq(unsigned int irq, unsigned int type,
void __iomem *base, void (*sync_access)(void));
void gic_dist_config(void __iomem *base, int gic_irqs,
void (*sync_access)(void));
void gic_cpu_config(void __iomem *base, int nr, void (*sync_access)(void));
void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,
void *data);
void gic_enable_of_quirks(const struct device_node *np,
const struct gic_quirk *quirks, void *data);
void gic_set_kvm_info(const struct gic_kvm_info *info);
#endif /* _IRQ_GIC_COMMON_H */