1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * ARM Generic Interrupt Controller (GIC) private defines that's only
4  * shared among the GIC library code.
5  */
6 
7 #ifndef SELFTEST_KVM_GIC_PRIVATE_H
8 #define SELFTEST_KVM_GIC_PRIVATE_H
9 
10 struct gic_common_ops {
11 	void (*gic_init)(unsigned int nr_cpus, void *dist_base);
12 	void (*gic_cpu_init)(unsigned int cpu, void *redist_base);
13 	void (*gic_irq_enable)(unsigned int intid);
14 	void (*gic_irq_disable)(unsigned int intid);
15 	uint64_t (*gic_read_iar)(void);
16 	void (*gic_write_eoir)(uint32_t irq);
17 };
18 
19 extern const struct gic_common_ops gicv3_ops;
20 
21 #endif /* SELFTEST_KVM_GIC_PRIVATE_H */
22