aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-12-22 14:17:00 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-05 15:41:02 +1100
commitc98cc291c2d84da5cbdcbb07b810170c4cb706a4 (patch)
tree8f4cefd7cd8491dbe9b225aca838acbbde0dbd40 /include
parent23f4d5885183c2d4e630f12dea9927980e4728b4 (diff)
downloadskiboot-c98cc291c2d84da5cbdcbb07b810170c4cb706a4.zip
skiboot-c98cc291c2d84da5cbdcbb07b810170c4cb706a4.tar.gz
skiboot-c98cc291c2d84da5cbdcbb07b810170c4cb706a4.tar.bz2
xive: Split the OPAL irq flags from the internal ones
Some per-IRQ flags only have meaning inside OPAL, let's separate the two number spaces Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/xive.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/xive.h b/include/xive.h
index 6f2bad3..be976f2 100644
--- a/include/xive.h
+++ b/include/xive.h
@@ -434,11 +434,12 @@ uint32_t xive_alloc_ipi_irqs(uint32_t chip_id, uint32_t count, uint32_t align);
uint64_t xive_get_notify_port(uint32_t chip_id, uint32_t ent);
uint32_t xive_get_notify_base(uint32_t girq);
-/* Old definitions, superseeded by OPAL_* ones */
-#define XIVE_SRC_EOI_PAGE1 OPAL_XIVE_IRQ_TRIGGER_PAGE
-#define XIVE_SRC_STORE_EOI OPAL_XIVE_IRQ_STORE_EOI
-#define XIVE_SRC_LSI OPAL_XIVE_IRQ_LSI
-#define XIVE_SRC_SHIFT_BUG OPAL_XIVE_IRQ_SHIFT_BUG
+/* Internal IRQ flags */
+#define XIVE_SRC_TRIGGER_PAGE 0x01
+#define XIVE_SRC_EOI_PAGE1 0x02
+#define XIVE_SRC_STORE_EOI 0x04
+#define XIVE_SRC_LSI 0x08
+#define XIVE_SRC_SHIFT_BUG 0x10
struct irq_source_ops;
void xive_register_hw_source(uint32_t base, uint32_t count, uint32_t shift,