Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __RAS_H__
0003 #define __RAS_H__
0004 
0005 #include <asm/errno.h>
0006 #include <linux/uuid.h>
0007 #include <linux/cper.h>
0008 
0009 #ifdef CONFIG_DEBUG_FS
0010 int ras_userspace_consumers(void);
0011 void ras_debugfs_init(void);
0012 int ras_add_daemon_trace(void);
0013 #else
0014 static inline int ras_userspace_consumers(void) { return 0; }
0015 static inline void ras_debugfs_init(void) { }
0016 static inline int ras_add_daemon_trace(void) { return 0; }
0017 #endif
0018 
0019 #ifdef CONFIG_RAS_CEC
0020 int __init parse_cec_param(char *str);
0021 #endif
0022 
0023 #ifdef CONFIG_RAS
0024 void log_non_standard_event(const guid_t *sec_type,
0025                 const guid_t *fru_id, const char *fru_text,
0026                 const u8 sev, const u8 *err, const u32 len);
0027 void log_arm_hw_error(struct cper_sec_proc_arm *err);
0028 #else
0029 static inline void
0030 log_non_standard_event(const guid_t *sec_type,
0031                const guid_t *fru_id, const char *fru_text,
0032                const u8 sev, const u8 *err, const u32 len)
0033 { return; }
0034 static inline void
0035 log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
0036 #endif
0037 
0038 #endif /* __RAS_H__ */