aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/opal.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-03-31 23:58:19 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-08 22:53:19 -0400
commitbfc36894a48b996eba7e02d8e43093a289c1fb91 (patch)
treea2429363b192b759a0d4d27c8403f062a6fbbaf3 /arch/powerpc/include/asm/opal.h
parent6e556b471036b751aaa1a1b5a189eff76b1a2d0b (diff)
powerpc/powernv: Add OPAL message log interface
OPAL provides an in-memory circular buffer containing a message log populated with various runtime messages produced by the firmware. Provide a sysfs interface /sys/firmware/opal/msglog for userspace to view the messages. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/opal.h')
-rw-r--r--arch/powerpc/include/asm/opal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index a13ab397edda..05f9455615d6 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -730,6 +730,9 @@ typedef struct oppanel_line {
730/* /sys/firmware/opal */ 730/* /sys/firmware/opal */
731extern struct kobject *opal_kobj; 731extern struct kobject *opal_kobj;
732 732
733/* /ibm,opal */
734extern struct device_node *opal_node;
735
733/* API functions */ 736/* API functions */
734int64_t opal_console_write(int64_t term_number, __be64 *length, 737int64_t opal_console_write(int64_t term_number, __be64 *length,
735 const uint8_t *buffer); 738 const uint8_t *buffer);
@@ -920,6 +923,7 @@ extern void opal_flash_init(void);
920extern int opal_elog_init(void); 923extern int opal_elog_init(void);
921extern void opal_platform_dump_init(void); 924extern void opal_platform_dump_init(void);
922extern void opal_sys_param_init(void); 925extern void opal_sys_param_init(void);
926extern void opal_msglog_init(void);
923 927
924extern int opal_machine_check(struct pt_regs *regs); 928extern int opal_machine_check(struct pt_regs *regs);
925extern bool opal_mce_check_early_recovery(struct pt_regs *regs); 929extern bool opal_mce_check_early_recovery(struct pt_regs *regs);