summaryrefslogtreecommitdiffstats
path: root/include/op-panel.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-02 15:36:20 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-02 15:36:20 +1000
commit1d880992fd8c8457a2d990ac6622cfd58fb1b261 (patch)
treec4c843b12e96b5612c315db5a23c5da1a900618c /include/op-panel.h
downloadblackbird-skiboot-1d880992fd8c8457a2d990ac6622cfd58fb1b261.tar.gz
blackbird-skiboot-1d880992fd8c8457a2d990ac6622cfd58fb1b261.zip
Initial commit of Open Source release
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/op-panel.h')
-rw-r--r--include/op-panel.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/include/op-panel.h b/include/op-panel.h
new file mode 100644
index 00000000..dfb4e11a
--- /dev/null
+++ b/include/op-panel.h
@@ -0,0 +1,67 @@
+/* Copyright 2013-2014 IBM Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __OP_PANEL_H
+#define __OP_PANEL_H
+
+#include <stdint.h>
+
+/* Severity */
+enum op_severity {
+ OP_LOG = 0x4342, /* 'CB' - Progress info */
+ OP_WARN = 0x4542, /* 'EB' - Information condition */
+ OP_ERROR = 0x4442, /* 'DB' - Non fatal error */
+ OP_FATAL = 0x4242, /* 'BB' - Fatal error */
+};
+
+/* Module */
+enum op_module {
+ OP_MOD_CORE = 0x3030, /* '00' - Anything really */
+ OP_MOD_INIT = 0x3031, /* '01' - init */
+ OP_MOD_LOCK = 0x3032, /* '02' - spinlocks */
+ OP_MOD_FSP = 0x3033, /* '03' - FSP */
+ OP_MOD_FSPCON = 0x3034, /* '04' - FSPCON */
+ OP_MOD_CHIPTOD = 0x3035, /* '05' - ChipTOP */
+ OP_MOD_CPU = 0x3036, /* '06' - CPU bringup */
+ OP_MOD_MEM = 0x3037, /* '07' - Memory */
+ OP_MOD_XSCOM = 0x3038, /* '08' - XSCOM */
+};
+
+/* Common codes:
+ *
+ * 'BA010001' : Failed to load a kernel
+ * 'BA010002' : Failed to create a device-tree
+ * 'BA020000' : Locking already owned lock
+ * 'BA020001' : Unlocking unlocked lock
+ * 'BA020002' : Unlocking not-owned lock
+ * 'BA006666' : Abort
+ * 'BA050000' : Failed ChipTOD init/sync
+ * 'BA050001' : Failed to find a CPU on the master chip
+ * 'BA050002' : Master chip sync failed
+ * 'EA05xxx2' : Slave sync failed (xxx = PIR)
+ * 'BA070000' : Cannot find MS VPD or invalid
+ * 'BA070001' : MS VPD wrong size
+ * 'BA070002' : MS VPD doesn't have an MSAC
+ * 'BA070003' : MS VPD doesn't have a total config
+ */
+
+extern void op_display(enum op_severity, enum op_module, uint16_t code);
+
+extern void op_panel_disable_src_echo(void);
+extern void op_panel_clear_src(void);
+extern void fsp_oppanel_init(void);
+
+#endif /* __OP_PANEL_H */
OpenPOWER on IntegriCloud