aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2014-07-31 11:15:25 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-31 11:15:41 +1000
commit08aff4155937106980c8c4b301bb9be8411b9742 (patch)
tree6d879e637e204a72bd8c5581d19a4a4fbab9a7b3 /include
parentaf3728e69e43b7ecce20d82a92a95bcd6b8dd8d5 (diff)
downloadskiboot-08aff4155937106980c8c4b301bb9be8411b9742.zip
skiboot-08aff4155937106980c8c4b301bb9be8411b9742.tar.gz
skiboot-08aff4155937106980c8c4b301bb9be8411b9742.tar.bz2
MDST: Add OPAL interface to register host memory region
Add OPAL interface to add host memory region to SYSDUMP. [ Added exported IDs in opal.h --BenH ] Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/fsp-mdst-table.h14
-rw-r--r--include/opal.h9
2 files changed, 21 insertions, 2 deletions
diff --git a/include/fsp-mdst-table.h b/include/fsp-mdst-table.h
index 78ab276..a88a086 100644
--- a/include/fsp-mdst-table.h
+++ b/include/fsp-mdst-table.h
@@ -18,7 +18,19 @@
#ifndef __FSPMDST_H
#define __FSPMDST_H
-/* Dump region ids */
+/*
+ * Dump region ids
+ *
+ * 0x01 - 0x7F : OPAL
+ * 0x80 - 0xFF : Kernel
+ *
+ * Some of those IDs are duplicated in opal.h
+ */
+#define DUMP_REGION_OPAL_START 0x01
+#define DUMP_REGION_OPAL_END 0x7F
+#define DUMP_REGION_HOST_START 0x80
+#define DUMP_REGION_HOST_END 0xFF
+
#define DUMP_REGION_CONSOLE 0x01
#define DUMP_REGION_HBRT_LOG 0x02
diff --git a/include/opal.h b/include/opal.h
index 8ef942d..b5c6366 100644
--- a/include/opal.h
+++ b/include/opal.h
@@ -136,7 +136,8 @@
#define OPAL_HANDLE_HMI 98
#define OPAL_CONFIG_CPU_IDLE_STATE 99
#define OPAL_SLW_SET_REG 100
-#define OPAL_LAST 100
+#define OPAL_REGISTER_DUMP_REGION 101
+#define OPAL_LAST 101
#ifndef __ASSEMBLY__
@@ -860,6 +861,12 @@ struct opal_sg_list {
struct opal_sg_entry entry[];
};
+/*
+ * Dump region ID range usable by the OS
+ */
+#define OPAL_DUMP_REGION_OS_START 0x80
+#define OPAL_DUMP_REGION_OS_END 0xFF
+
/****** Internal **********/
#include <skiboot.h>