blob: 681c896876845c2697fc3e19e74c428ed3677b97 [file] [log] [blame]
Jeenu Viswambharanaeb267c2017-09-22 08:32:09 +01001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef INTERRUPT_PROPS_H
8#define INTERRUPT_PROPS_H
Jeenu Viswambharanaeb267c2017-09-22 08:32:09 +01009
Julius Werner53456fc2019-07-09 13:49:11 -070010#ifndef __ASSEMBLER__
Jeenu Viswambharanaeb267c2017-09-22 08:32:09 +010011
12/* Create an interrupt property descriptor from various interrupt properties */
13#define INTR_PROP_DESC(num, pri, grp, cfg) \
14 { \
Sathees Balya30952cc2018-09-27 14:41:02 +010015 .intr_num = (num), \
16 .intr_pri = (pri), \
17 .intr_grp = (grp), \
18 .intr_cfg = (cfg), \
Jeenu Viswambharanaeb267c2017-09-22 08:32:09 +010019 }
20
21typedef struct interrupt_prop {
Ming Huang1bea7aa2023-02-01 14:03:44 +080022 unsigned int intr_num:13;
Jeenu Viswambharanaeb267c2017-09-22 08:32:09 +010023 unsigned int intr_pri:8;
24 unsigned int intr_grp:2;
25 unsigned int intr_cfg:2;
26} interrupt_prop_t;
27
Julius Werner53456fc2019-07-09 13:49:11 -070028#endif /* __ASSEMBLER__ */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000029#endif /* INTERRUPT_PROPS_H */