diff options
author | Joel Stanley <joel@jms.id.au> | 2014-03-31 23:58:19 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-04-08 22:53:19 -0400 |
commit | bfc36894a48b996eba7e02d8e43093a289c1fb91 (patch) | |
tree | a2429363b192b759a0d4d27c8403f062a6fbbaf3 /arch/powerpc/include/asm/opal.h | |
parent | 6e556b471036b751aaa1a1b5a189eff76b1a2d0b (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.h | 4 |
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 */ |
731 | extern struct kobject *opal_kobj; | 731 | extern struct kobject *opal_kobj; |
732 | 732 | ||
733 | /* /ibm,opal */ | ||
734 | extern struct device_node *opal_node; | ||
735 | |||
733 | /* API functions */ | 736 | /* API functions */ |
734 | int64_t opal_console_write(int64_t term_number, __be64 *length, | 737 | int64_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); | |||
920 | extern int opal_elog_init(void); | 923 | extern int opal_elog_init(void); |
921 | extern void opal_platform_dump_init(void); | 924 | extern void opal_platform_dump_init(void); |
922 | extern void opal_sys_param_init(void); | 925 | extern void opal_sys_param_init(void); |
926 | extern void opal_msglog_init(void); | ||
923 | 927 | ||
924 | extern int opal_machine_check(struct pt_regs *regs); | 928 | extern int opal_machine_check(struct pt_regs *regs); |
925 | extern bool opal_mce_check_early_recovery(struct pt_regs *regs); | 929 | extern bool opal_mce_check_early_recovery(struct pt_regs *regs); |