xref: /openbmc/linux/include/linux/ras.h (revision 011d8261)
1d963cd95SChen, Gong #ifndef __RAS_H__
2d963cd95SChen, Gong #define __RAS_H__
3d963cd95SChen, Gong 
4011d8261SBorislav Petkov #include <asm/errno.h>
5011d8261SBorislav Petkov 
6d963cd95SChen, Gong #ifdef CONFIG_DEBUG_FS
7d963cd95SChen, Gong int ras_userspace_consumers(void);
8d963cd95SChen, Gong void ras_debugfs_init(void);
9d963cd95SChen, Gong int ras_add_daemon_trace(void);
10d963cd95SChen, Gong #else
11d963cd95SChen, Gong static inline int ras_userspace_consumers(void) { return 0; }
12011d8261SBorislav Petkov static inline void ras_debugfs_init(void) { }
13d963cd95SChen, Gong static inline int ras_add_daemon_trace(void) { return 0; }
14d963cd95SChen, Gong #endif
15d963cd95SChen, Gong 
16011d8261SBorislav Petkov #ifdef CONFIG_RAS_CEC
17011d8261SBorislav Petkov void __init cec_init(void);
18011d8261SBorislav Petkov int __init parse_cec_param(char *str);
19011d8261SBorislav Petkov int cec_add_elem(u64 pfn);
20011d8261SBorislav Petkov #else
21011d8261SBorislav Petkov static inline void __init cec_init(void)	{ }
22011d8261SBorislav Petkov static inline int cec_add_elem(u64 pfn)		{ return -ENODEV; }
23d963cd95SChen, Gong #endif
24011d8261SBorislav Petkov 
25011d8261SBorislav Petkov #endif /* __RAS_H__ */
26