interrupt_controller: gic: Add GICD_SGIR field definitions
This commit adds the GICD_SGIR register (used for generating software generated interrupts) field definitions. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
b58cc459de
commit
ed82a60767
1 changed files with 13 additions and 0 deletions
|
@ -204,6 +204,19 @@
|
|||
#define GICD_ICFGR_MASK BIT_MASK(2)
|
||||
#define GICD_ICFGR_TYPE BIT(1)
|
||||
|
||||
/* GICD_SGIR */
|
||||
#define GICD_SGIR_TGTFILT(x) (x << 24)
|
||||
#define GICD_SGIR_TGTFILT_CPULIST GICD_SGIR_TGTFILT(0b00)
|
||||
#define GICD_SGIR_TGTFILT_ALLBUTREQ GICD_SGIR_TGTFILT(0b01)
|
||||
#define GICD_SGIR_TGTFILT_REQONLY GICD_SGIR_TGTFILT(0b10)
|
||||
|
||||
#define GICD_SGIR_CPULIST(x) (x << 16)
|
||||
#define GICD_SGIR_CPULIST_CPU(n) GICD_SGIR_CPULIST(BIT(n))
|
||||
|
||||
#define GICD_SGIR_NSATT BIT(15)
|
||||
|
||||
#define GICD_SGIR_SGIINTID(x) (x)
|
||||
|
||||
#endif /* CONFIG_GIC_VER <= 2 */
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue