aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-30 15:34:44 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-30 15:34:44 +1000
commit5212faa417612ba0d3ba23cf10ec6e756d4af04c (patch)
tree5fc41a04e31b2574e72a64bacf3dc5b995c826c9 /include
parenta3be370710b06df32768f09d3d0e412b91797c73 (diff)
downloadskiboot-5212faa417612ba0d3ba23cf10ec6e756d4af04c.zip
skiboot-5212faa417612ba0d3ba23cf10ec6e756d4af04c.tar.gz
skiboot-5212faa417612ba0d3ba23cf10ec6e756d4af04c.tar.bz2
phb3/capi: Some tweaks to the new CAPI interfaces
Use real functionality based flags instead of a mode list in the DT and other cleanups & missing bits (this one actually builds !) Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/opal.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/opal.h b/include/opal.h
index 7046fb2..fb0cee4 100644
--- a/include/opal.h
+++ b/include/opal.h
@@ -624,6 +624,7 @@ enum OpalHMI_ErrType {
OpalHMI_ERROR_SCOM_FIR,
OpalHMI_ERROR_DEBUG_TRIG_FIR,
OpalHMI_ERROR_HYP_RESOURCE,
+ OpalHMI_ERROR_CAPP_RECOVERY,
};
struct OpalHMIEvent {
@@ -871,11 +872,17 @@ struct opal_sg_list {
#define OPAL_DUMP_REGION_OS_START 0x80
#define OPAL_DUMP_REGION_OS_END 0xFF
-/* CAPI flags */
-#define OPAL_PHB_MODE_PCIE 0x00000000
-#define OPAL_PHB_MODE_CAPI 0x00000001
-#define OPAL_PHB_MODE_SNOOP_OFF 0x00000002
-#define OPAL_PHB_MODE_SNOOP_ON 0x00000004
+/* CAPI modes for PHB */
+enum {
+ OPAL_PHB_CAPI_MODE_PCIE = 0,
+ OPAL_PHB_CAPI_MODE_CAPI = 1,
+ OPAL_PHB_CAPI_MODE_SNOOP_OFF = 2,
+ OPAL_PHB_CAPI_MODE_SNOOP_ON = 3,
+};
+
+/* CAPI feature flags (in device-tree) */
+#define OPAL_PHB_CAPI_FLAG_SNOOP_CONTROL 0x00000001
+#define OPAL_PHB_CAPI_FLAG_REVERT_TO_PCIE 0x00000002
/****** Internal **********/
#include <skiboot.h>