mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 19:43:43 -04:00
Add basic support for ARM Generic Interrupt Controller v3. The support provides guests to setup interrupts. The work is inspired from kvm-unit-tests and the kernel's GIC driver (drivers/irqchip/irq-gic-v3.c). Signed-off-by: Raghavendra Rao Ananta <rananta@google.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Ricardo Koller <ricarkol@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20211007233439.1826892-13-rananta@google.com
22 lines
622 B
C
22 lines
622 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* ARM Generic Interrupt Controller (GIC) private defines that's only
|
|
* shared among the GIC library code.
|
|
*/
|
|
|
|
#ifndef SELFTEST_KVM_GIC_PRIVATE_H
|
|
#define SELFTEST_KVM_GIC_PRIVATE_H
|
|
|
|
struct gic_common_ops {
|
|
void (*gic_init)(unsigned int nr_cpus, void *dist_base);
|
|
void (*gic_cpu_init)(unsigned int cpu, void *redist_base);
|
|
void (*gic_irq_enable)(unsigned int intid);
|
|
void (*gic_irq_disable)(unsigned int intid);
|
|
uint64_t (*gic_read_iar)(void);
|
|
void (*gic_write_eoir)(uint32_t irq);
|
|
};
|
|
|
|
extern const struct gic_common_ops gicv3_ops;
|
|
|
|
#endif /* SELFTEST_KVM_GIC_PRIVATE_H */
|