diff options
Diffstat (limited to 'drivers/edac/edac_module.h')
-rw-r--r-- | drivers/edac/edac_module.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h index 0ea7d14cb930..3d139c6e7fe3 100644 --- a/drivers/edac/edac_module.h +++ b/drivers/edac/edac_module.h | |||
@@ -19,12 +19,12 @@ | |||
19 | * | 19 | * |
20 | * edac_mc objects | 20 | * edac_mc objects |
21 | */ | 21 | */ |
22 | extern int edac_sysfs_setup_mc_kset(void); | 22 | /* on edac_mc_sysfs.c */ |
23 | extern void edac_sysfs_teardown_mc_kset(void); | 23 | int edac_mc_sysfs_init(void); |
24 | extern int edac_mc_register_sysfs_main_kobj(struct mem_ctl_info *mci); | 24 | void edac_mc_sysfs_exit(void); |
25 | extern void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci); | ||
26 | extern int edac_create_sysfs_mci_device(struct mem_ctl_info *mci); | 25 | extern int edac_create_sysfs_mci_device(struct mem_ctl_info *mci); |
27 | extern void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci); | 26 | extern void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci); |
27 | void edac_unregister_sysfs(struct mem_ctl_info *mci); | ||
28 | extern int edac_get_log_ue(void); | 28 | extern int edac_get_log_ue(void); |
29 | extern int edac_get_log_ce(void); | 29 | extern int edac_get_log_ce(void); |
30 | extern int edac_get_panic_on_ue(void); | 30 | extern int edac_get_panic_on_ue(void); |
@@ -34,6 +34,10 @@ extern int edac_mc_get_panic_on_ue(void); | |||
34 | extern int edac_get_poll_msec(void); | 34 | extern int edac_get_poll_msec(void); |
35 | extern int edac_mc_get_poll_msec(void); | 35 | extern int edac_mc_get_poll_msec(void); |
36 | 36 | ||
37 | unsigned edac_dimm_info_location(struct dimm_info *dimm, char *buf, | ||
38 | unsigned len); | ||
39 | |||
40 | /* on edac_device.c */ | ||
37 | extern int edac_device_register_sysfs_main_kobj( | 41 | extern int edac_device_register_sysfs_main_kobj( |
38 | struct edac_device_ctl_info *edac_dev); | 42 | struct edac_device_ctl_info *edac_dev); |
39 | extern void edac_device_unregister_sysfs_main_kobj( | 43 | extern void edac_device_unregister_sysfs_main_kobj( |
@@ -53,6 +57,20 @@ extern void edac_mc_reset_delay_period(int value); | |||
53 | extern void *edac_align_ptr(void **p, unsigned size, int n_elems); | 57 | extern void *edac_align_ptr(void **p, unsigned size, int n_elems); |
54 | 58 | ||
55 | /* | 59 | /* |
60 | * EDAC debugfs functions | ||
61 | */ | ||
62 | #ifdef CONFIG_EDAC_DEBUG | ||
63 | int edac_debugfs_init(void); | ||
64 | void edac_debugfs_exit(void); | ||
65 | #else | ||
66 | static inline int edac_debugfs_init(void) | ||
67 | { | ||
68 | return -ENODEV; | ||
69 | } | ||
70 | static inline void edac_debugfs_exit(void) {} | ||
71 | #endif | ||
72 | |||
73 | /* | ||
56 | * EDAC PCI functions | 74 | * EDAC PCI functions |
57 | */ | 75 | */ |
58 | #ifdef CONFIG_PCI | 76 | #ifdef CONFIG_PCI |