Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* include/linux/irqchip/arm-vgic-info.h
|
|
*
|
|
* Copyright (C) 2016 ARM Limited, All Rights Reserved.
|
|
*/
|
|
#ifndef __LINUX_IRQCHIP_ARM_VGIC_INFO_H
|
|
#define __LINUX_IRQCHIP_ARM_VGIC_INFO_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/ioport.h>
|
|
|
|
enum gic_type {
|
|
/* Full GICv2 */
|
|
GIC_V2,
|
|
/* Full GICv3, optionally with v2 compat */
|
|
GIC_V3,
|
|
/* Full GICv5, optionally with v3 compat */
|
|
GIC_V5,
|
|
};
|
|
|
|
struct gic_kvm_info {
|
|
/* GIC type */
|
|
enum gic_type type;
|
|
/* Virtual CPU interface */
|
|
struct resource vcpu;
|
|
/* GICv2 GICC VA */
|
|
void __iomem *gicc_base;
|
|
/* Interrupt number */
|
|
unsigned int maint_irq;
|
|
/* No interrupt mask, no need to use the above field */
|
|
bool no_maint_irq_mask;
|
|
/* Virtual control interface */
|
|
struct resource vctrl;
|
|
/* vlpi support */
|
|
bool has_v4;
|
|
/* rvpeid support */
|
|
bool has_v4_1;
|
|
/* Deactivation impared, subpar stuff */
|
|
bool no_hw_deactivation;
|
|
};
|
|
|
|
#ifdef CONFIG_KVM
|
|
void vgic_set_kvm_info(const struct gic_kvm_info *info);
|
|
#else
|
|
static inline void vgic_set_kvm_info(const struct gic_kvm_info *info) {}
|
|
#endif
|
|
|
|
#endif
|