xref: /openbmc/qemu/include/hw/arm/bsa.h (revision 2419ce83)
1*2419ce83SLeif Lindholm /*
2*2419ce83SLeif Lindholm  * Common definitions for Arm Base System Architecture (BSA) platforms.
3*2419ce83SLeif Lindholm  *
4*2419ce83SLeif Lindholm  * Copyright (c) 2015 Linaro Limited
5*2419ce83SLeif Lindholm  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
6*2419ce83SLeif Lindholm  *
7*2419ce83SLeif Lindholm  * This program is free software; you can redistribute it and/or modify it
8*2419ce83SLeif Lindholm  * under the terms and conditions of the GNU General Public License,
9*2419ce83SLeif Lindholm  * version 2 or later, as published by the Free Software Foundation.
10*2419ce83SLeif Lindholm  *
11*2419ce83SLeif Lindholm  * This program is distributed in the hope it will be useful, but WITHOUT
12*2419ce83SLeif Lindholm  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13*2419ce83SLeif Lindholm  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14*2419ce83SLeif Lindholm  * more details.
15*2419ce83SLeif Lindholm  *
16*2419ce83SLeif Lindholm  * You should have received a copy of the GNU General Public License along with
17*2419ce83SLeif Lindholm  * this program.  If not, see <http://www.gnu.org/licenses/>.
18*2419ce83SLeif Lindholm  *
19*2419ce83SLeif Lindholm  */
20*2419ce83SLeif Lindholm 
21*2419ce83SLeif Lindholm #ifndef QEMU_ARM_BSA_H
22*2419ce83SLeif Lindholm #define QEMU_ARM_BSA_H
23*2419ce83SLeif Lindholm 
24*2419ce83SLeif Lindholm /* These are architectural INTID values */
25*2419ce83SLeif Lindholm #define VIRTUAL_PMU_IRQ            23
26*2419ce83SLeif Lindholm #define ARCH_GIC_MAINT_IRQ         25
27*2419ce83SLeif Lindholm #define ARCH_TIMER_NS_EL2_IRQ      26
28*2419ce83SLeif Lindholm #define ARCH_TIMER_VIRT_IRQ        27
29*2419ce83SLeif Lindholm #define ARCH_TIMER_NS_EL2_VIRT_IRQ 28
30*2419ce83SLeif Lindholm #define ARCH_TIMER_S_EL1_IRQ       29
31*2419ce83SLeif Lindholm #define ARCH_TIMER_NS_EL1_IRQ      30
32*2419ce83SLeif Lindholm 
33*2419ce83SLeif Lindholm #define INTID_TO_PPI(irq) ((irq) - 16)
34*2419ce83SLeif Lindholm 
35*2419ce83SLeif Lindholm #endif /* QEMU_ARM_BSA_H */
36