mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

As the max ESPI can be 5119, so enlarge the intr_num range of structure interrupt_prop_t. After the patch the ESPI can be add to this macro: define PLATFORM_G1S_PROPS(grp) \ INTR_PROP_DESC(197 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE), \ INTR_PROP_DESC(199 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE) The firmware-design.rst will be updated accordingly. Signed-off-by: Ming Huang <huangming@linux.alibaba.com> Change-Id: Ic923868bb1b00c017410dc2aeabfda58ee54782f
29 lines
644 B
C
29 lines
644 B
C
/*
|
|
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef INTERRUPT_PROPS_H
|
|
#define INTERRUPT_PROPS_H
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* Create an interrupt property descriptor from various interrupt properties */
|
|
#define INTR_PROP_DESC(num, pri, grp, cfg) \
|
|
{ \
|
|
.intr_num = (num), \
|
|
.intr_pri = (pri), \
|
|
.intr_grp = (grp), \
|
|
.intr_cfg = (cfg), \
|
|
}
|
|
|
|
typedef struct interrupt_prop {
|
|
unsigned int intr_num:13;
|
|
unsigned int intr_pri:8;
|
|
unsigned int intr_grp:2;
|
|
unsigned int intr_cfg:2;
|
|
} interrupt_prop_t;
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* INTERRUPT_PROPS_H */
|