diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2017-11-27 09:11:45 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-01-14 21:11:54 +0100 |
commit | a09c5ec00a120dae52eceef3eebff93ed729bb43 (patch) | |
tree | c594a45b38b579f647a2279cd7774b00324495d4 /arch/x86/include/asm/mpspec_def.h | |
parent | e348caef8b4a161cc27bec8f7500b7e100370ef1 (diff) | |
download | linux-0-day-a09c5ec00a120dae52eceef3eebff93ed729bb43.tar.gz linux-0-day-a09c5ec00a120dae52eceef3eebff93ed729bb43.tar.xz |
x86: Introduce and use MP IRQ trigger and polarity defines
MP_IRQDIR_* constants pointed in the right direction but remained unused so
far: It's cleaner to use symbolic values for the IRQ flags in the MP config
table. That also saves some comments.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: jailhouse-dev@googlegroups.com
Link: https://lkml.kernel.org/r/60809926663a1d38e2a5db47d020d6e2e7a70019.1511770314.git.jan.kiszka@siemens.com
Diffstat (limited to 'arch/x86/include/asm/mpspec_def.h')
-rw-r--r-- | arch/x86/include/asm/mpspec_def.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/x86/include/asm/mpspec_def.h b/arch/x86/include/asm/mpspec_def.h index a6bec80284806..6fb923a343098 100644 --- a/arch/x86/include/asm/mpspec_def.h +++ b/arch/x86/include/asm/mpspec_def.h @@ -128,9 +128,17 @@ enum mp_irq_source_types { mp_ExtINT = 3 }; -#define MP_IRQDIR_DEFAULT 0 -#define MP_IRQDIR_HIGH 1 -#define MP_IRQDIR_LOW 3 +#define MP_IRQPOL_DEFAULT 0x0 +#define MP_IRQPOL_ACTIVE_HIGH 0x1 +#define MP_IRQPOL_RESERVED 0x2 +#define MP_IRQPOL_ACTIVE_LOW 0x3 +#define MP_IRQPOL_MASK 0x3 + +#define MP_IRQTRIG_DEFAULT 0x0 +#define MP_IRQTRIG_EDGE 0x4 +#define MP_IRQTRIG_RESERVED 0x8 +#define MP_IRQTRIG_LEVEL 0xc +#define MP_IRQTRIG_MASK 0xc #define MP_APIC_ALL 0xFF |