[Skiboot] [PATCH 36/60] xive: Export opal_xive_reset() arguments in OPAL API
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu Dec 22 14:16:44 AEDT 2016
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
hw/xive.c | 6 +++---
include/opal-api.h | 9 +++++++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/hw/xive.c b/hw/xive.c
index 3010ba9..f307b79 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -225,11 +225,11 @@
#endif
/* The xive operation mode indicates the active "API" and corresponds
- * to the "version" parameter of the opal_xive_reset() call
+ * to the "mode" parameter of the opal_xive_reset() call
*/
static enum {
- XIVE_MODE_EMU = 0,
- XIVE_MODE_EXPL = 1,
+ XIVE_MODE_EMU = OPAL_XIVE_MODE_EMU,
+ XIVE_MODE_EXPL = OPAL_XIVE_MODE_EXPL,
} xive_mode;
diff --git a/include/opal-api.h b/include/opal-api.h
index 00e2134..6220e1b 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -1086,6 +1086,15 @@ enum {
OPAL_PCI_TCE_KILL_ALL,
};
+/* The xive operation mode indicates the active "API" and
+ * corresponds to the "mode" parameter of the opal_xive_reset()
+ * call
+ */
+enum {
+ OPAL_XIVE_MODE_EMU = 0,
+ OPAL_XIVE_MODE_EXPL = 1,
+};
+
/* Flags for OPAL_XIVE_GET_IRQ_INFO */
enum {
OPAL_XIVE_IRQ_TRIGGER_PAGE = 0x00000001,
--
2.9.3
More information about the Skiboot
mailing list