diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-04-10 17:01:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-11 17:59:57 -0500 |
commit | 9c21cae5aac4246ac4e438cac5a96a24907676c7 (patch) | |
tree | 2a68c58cc0adff8abc234105bb2a548885f9a995 /include | |
parent | 379ec78e3da982cd1dff1533d50a9b29b025db5b (diff) | |
download | skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.zip skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.gz skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.bz2 |
interrupts: Create an "interrupts" property in the OPAL node
Deprecate the old "opal-interrupts", it's still there, but the new
property follows the standard and allow us to specify whether an
interrupt is level or edge sensitive.
Similarly create "interrupt-names" whose content is identical to
"opal-interrupts-names".
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/interrupts.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/interrupts.h b/include/interrupts.h index b412812..2c4fa7e 100644 --- a/include/interrupts.h +++ b/include/interrupts.h @@ -282,6 +282,9 @@ struct irq_source_ops { /* For OPAL interrupts, estimate frequency */ #define IRQ_ATTR_TARGET_RARE 0x0 #define IRQ_ATTR_TARGET_FREQUENT 0x2 +/* For OPAL interrupts, level vs. edge setting */ +#define IRQ_ATTR_TYPE_LSI 0x0 +#define IRQ_ATTR_TYPE_MSI 0x4 void (*interrupt)(struct irq_source *is, uint32_t isn); void (*eoi)(struct irq_source *is, uint32_t isn); char *(*name)(struct irq_source *is, uint32_t isn); |