Merge tag 'vfs-6.7.misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs
[linux-block.git] / drivers / irqchip / irq-gic-common.h
CommitLineData
caab277b 1/* SPDX-License-Identifier: GPL-2.0-only */
d51d0af4
MZ
2/*
3 * Copyright (C) 2002 ARM Limited, All Rights Reserved.
d51d0af4
MZ
4 */
5
6#ifndef _IRQ_GIC_COMMON_H
7#define _IRQ_GIC_COMMON_H
8
9#include <linux/of.h>
10#include <linux/irqdomain.h>
502d6df1 11#include <linux/irqchip/arm-gic-common.h>
d51d0af4 12
67510cca
RR
13struct gic_quirk {
14 const char *desc;
f70fdb42 15 const char *compatible;
44bd78dd 16 const char *property;
9d111d49 17 bool (*init)(void *data);
67510cca
RR
18 u32 iidr;
19 u32 mask;
20};
21
fb7e7deb 22int gic_configure_irq(unsigned int irq, unsigned int type,
d51d0af4
MZ
23 void __iomem *base, void (*sync_access)(void));
24void gic_dist_config(void __iomem *base, int gic_irqs,
25 void (*sync_access)(void));
1a60e1e6 26void gic_cpu_config(void __iomem *base, int nr, void (*sync_access)(void));
67510cca
RR
27void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,
28 void *data);
f70fdb42
SK
29void gic_enable_of_quirks(const struct device_node *np,
30 const struct gic_quirk *quirks, void *data);
d51d0af4 31
3a0fff0f
LP
32#define RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING (1 << 0)
33#define RDIST_FLAGS_RD_TABLES_PREALLOCATED (1 << 1)
34#define RDIST_FLAGS_FORCE_NON_SHAREABLE (1 << 2)
35
d51d0af4 36#endif /* _IRQ_GIC_COMMON_H */