| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * include/linux/irqchip/arm-gic-common.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 ARM Limited, All Rights Reserved. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #ifndef __LINUX_IRQCHIP_ARM_GIC_COMMON_H |
|---|
| 11 | 8 | #define __LINUX_IRQCHIP_ARM_GIC_COMMON_H |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/types.h> |
|---|
| 14 | 11 | #include <linux/ioport.h> |
|---|
| 12 | + |
|---|
| 13 | +#define GICD_INT_DEF_PRI 0xa0 |
|---|
| 14 | +#define GICD_INT_DEF_PRI_X4 ((GICD_INT_DEF_PRI << 24) |\ |
|---|
| 15 | + (GICD_INT_DEF_PRI << 16) |\ |
|---|
| 16 | + (GICD_INT_DEF_PRI << 8) |\ |
|---|
| 17 | + GICD_INT_DEF_PRI) |
|---|
| 15 | 18 | |
|---|
| 16 | 19 | enum gic_type { |
|---|
| 17 | 20 | GIC_V2, |
|---|
| .. | .. |
|---|
| 29 | 32 | struct resource vctrl; |
|---|
| 30 | 33 | /* vlpi support */ |
|---|
| 31 | 34 | bool has_v4; |
|---|
| 35 | + /* rvpeid support */ |
|---|
| 36 | + bool has_v4_1; |
|---|
| 32 | 37 | }; |
|---|
| 33 | 38 | |
|---|
| 34 | 39 | const struct gic_kvm_info *gic_get_kvm_info(void); |
|---|
| 35 | 40 | |
|---|
| 41 | +struct irq_domain; |
|---|
| 42 | +struct fwnode_handle; |
|---|
| 43 | +int gicv2m_init(struct fwnode_handle *parent_handle, |
|---|
| 44 | + struct irq_domain *parent); |
|---|
| 45 | + |
|---|
| 36 | 46 | #endif /* __LINUX_IRQCHIP_ARM_GIC_COMMON_H */ |
|---|