diff options
Diffstat (limited to 'drivers/edac/edac_core.h')
-rw-r--r-- | drivers/edac/edac_core.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index fca1990945a9..63691cf3a1d6 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h | |||
@@ -765,8 +765,11 @@ static inline void pci_write_bits32(struct pci_dev *pdev, int offset, | |||
765 | 765 | ||
766 | #endif /* CONFIG_PCI */ | 766 | #endif /* CONFIG_PCI */ |
767 | 767 | ||
768 | extern struct mem_ctl_info *edac_mc_alloc(unsigned sz_pvt, unsigned nr_csrows, | ||
769 | unsigned nr_chans, int edac_index); | ||
770 | extern int edac_mc_add_mc(struct mem_ctl_info *mci); | ||
771 | extern void edac_mc_free(struct mem_ctl_info *mci); | ||
768 | extern struct mem_ctl_info *edac_mc_find(int idx); | 772 | extern struct mem_ctl_info *edac_mc_find(int idx); |
769 | extern int edac_mc_add_mc(struct mem_ctl_info *mci, int mc_idx); | ||
770 | extern struct mem_ctl_info *edac_mc_del_mc(struct device *dev); | 773 | extern struct mem_ctl_info *edac_mc_del_mc(struct device *dev); |
771 | extern int edac_mc_find_csrow_by_page(struct mem_ctl_info *mci, | 774 | extern int edac_mc_find_csrow_by_page(struct mem_ctl_info *mci, |
772 | unsigned long page); | 775 | unsigned long page); |
@@ -803,33 +806,31 @@ extern void edac_mc_handle_fbd_ce(struct mem_ctl_info *mci, unsigned int csrow, | |||
803 | /* | 806 | /* |
804 | * edac_device APIs | 807 | * edac_device APIs |
805 | */ | 808 | */ |
806 | extern struct mem_ctl_info *edac_mc_alloc(unsigned sz_pvt, unsigned nr_csrows, | ||
807 | unsigned nr_chans); | ||
808 | extern void edac_mc_free(struct mem_ctl_info *mci); | ||
809 | extern int edac_device_add_device(struct edac_device_ctl_info *edac_dev, | 809 | extern int edac_device_add_device(struct edac_device_ctl_info *edac_dev, |
810 | int edac_idx); | 810 | int dev_idx); |
811 | extern struct edac_device_ctl_info *edac_device_del_device(struct device *dev); | 811 | extern struct edac_device_ctl_info *edac_device_del_device(struct device *dev); |
812 | extern void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, | 812 | extern void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, |
813 | int inst_nr, int block_nr, const char *msg); | 813 | int inst_nr, int block_nr, const char *msg); |
814 | extern void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, | 814 | extern void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, |
815 | int inst_nr, int block_nr, const char *msg); | 815 | int inst_nr, int block_nr, const char *msg); |
816 | 816 | ||
817 | /* | 817 | /* |
818 | * edac_pci APIs | 818 | * edac_pci APIs |
819 | */ | 819 | */ |
820 | extern struct edac_pci_ctl_info *edac_pci_alloc_ctl_info(unsigned int sz_pvt, const char | 820 | extern struct edac_pci_ctl_info *edac_pci_alloc_ctl_info(unsigned int sz_pvt, |
821 | *edac_pci_name); | 821 | const char *edac_pci_name); |
822 | 822 | ||
823 | extern void edac_pci_free_ctl_info(struct edac_pci_ctl_info *pci); | 823 | extern void edac_pci_free_ctl_info(struct edac_pci_ctl_info *pci); |
824 | 824 | ||
825 | extern void | 825 | extern void edac_pci_reset_delay_period(struct edac_pci_ctl_info *pci, |
826 | edac_pci_reset_delay_period(struct edac_pci_ctl_info *pci, unsigned long value); | 826 | unsigned long value); |
827 | 827 | ||
828 | extern int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx); | 828 | extern int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx); |
829 | extern struct edac_pci_ctl_info *edac_pci_del_device(struct device *dev); | 829 | extern struct edac_pci_ctl_info *edac_pci_del_device(struct device *dev); |
830 | 830 | ||
831 | extern struct edac_pci_ctl_info *edac_pci_create_generic_ctl(struct device *dev, const char | 831 | extern struct edac_pci_ctl_info *edac_pci_create_generic_ctl( |
832 | *mod_name); | 832 | struct device *dev, |
833 | const char *mod_name); | ||
833 | 834 | ||
834 | extern void edac_pci_release_generic_ctl(struct edac_pci_ctl_info *pci); | 835 | extern void edac_pci_release_generic_ctl(struct edac_pci_ctl_info *pci); |
835 | extern int edac_pci_create_sysfs(struct edac_pci_ctl_info *pci); | 836 | extern int edac_pci_create_sysfs(struct edac_pci_ctl_info *pci); |