Skip to content

Commit d7276b8

Browse files
author
Marc Zyngier
committed
irqchip/gic-v3-its: Add GICv4 ITS command definitions
Add the new GICv4 ITS command definitions, most of them, being defined in terms of their physical counterparts. Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent de29faa commit d7276b8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2013, 2014 ARM Limited, All Rights Reserved.
2+
* Copyright (C) 2013-2017 ARM Limited, All Rights Reserved.
33
* Author: Marc Zyngier <marc.zyngier@arm.com>
44
*
55
* This program is free software; you can redistribute it and/or modify

include/linux/irqchip/arm-gic-v3.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,18 @@
347347
#define GITS_CMD_CLEAR 0x04
348348
#define GITS_CMD_SYNC 0x05
349349

350+
/*
351+
* GICv4 ITS specific commands
352+
*/
353+
#define GITS_CMD_GICv4(x) ((x) | 0x20)
354+
#define GITS_CMD_VINVALL GITS_CMD_GICv4(GITS_CMD_INVALL)
355+
#define GITS_CMD_VMAPP GITS_CMD_GICv4(GITS_CMD_MAPC)
356+
#define GITS_CMD_VMAPTI GITS_CMD_GICv4(GITS_CMD_MAPTI)
357+
#define GITS_CMD_VMOVI GITS_CMD_GICv4(GITS_CMD_MOVI)
358+
#define GITS_CMD_VSYNC GITS_CMD_GICv4(GITS_CMD_SYNC)
359+
/* VMOVP is the odd one, as it doesn't have a physical counterpart */
360+
#define GITS_CMD_VMOVP GITS_CMD_GICv4(2)
361+
350362
/*
351363
* ITS error numbers
352364
*/

0 commit comments

Comments
 (0)