blob: ffb147185e8df8ae62e4566d7da1b666fc290e1a [file] [log] [blame]
Chen, Gongd963cd92014-06-11 14:02:20 -07001#ifndef __RAS_H__
2#define __RAS_H__
3
Borislav Petkov011d8262017-03-27 11:33:02 +02004#include <asm/errno.h>
5
Chen, Gongd963cd92014-06-11 14:02:20 -07006#ifdef CONFIG_DEBUG_FS
7int ras_userspace_consumers(void);
8void ras_debugfs_init(void);
9int ras_add_daemon_trace(void);
10#else
11static inline int ras_userspace_consumers(void) { return 0; }
Borislav Petkov011d8262017-03-27 11:33:02 +020012static inline void ras_debugfs_init(void) { }
Chen, Gongd963cd92014-06-11 14:02:20 -070013static inline int ras_add_daemon_trace(void) { return 0; }
14#endif
15
Borislav Petkov011d8262017-03-27 11:33:02 +020016#ifdef CONFIG_RAS_CEC
17void __init cec_init(void);
18int __init parse_cec_param(char *str);
19int cec_add_elem(u64 pfn);
20#else
21static inline void __init cec_init(void) { }
22static inline int cec_add_elem(u64 pfn) { return -ENODEV; }
Chen, Gongd963cd92014-06-11 14:02:20 -070023#endif
Borislav Petkov011d8262017-03-27 11:33:02 +020024
25#endif /* __RAS_H__ */