drivers/edac/e752x_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/e752x_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/e752x_edac.c- Extension
.c- Size
- 41620 bytes
- Lines
- 1482
- Domain
- Driver Families
- Bucket
- drivers/edac
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/pci.hlinux/pci_ids.hlinux/edac.hedac_module.h
Detected Declarations
struct e752x_pvtstruct e752x_dev_infostruct e752x_error_infostruct scrubrateenum e752x_chipsfunction ctl_page_to_physfunction do_process_cefunction process_cefunction do_process_uefunction process_uefunction process_ue_no_info_wrfunction do_process_ded_retryfunction process_ded_retryfunction process_threshold_cefunction do_global_errorfunction global_errorfunction do_hub_errorfunction hub_errorfunction do_nsi_errorfunction nsi_errorfunction do_membuf_errorfunction membuf_errorfunction do_sysbus_errorfunction sysbus_errorfunction e752x_check_hub_interfacefunction e752x_check_ns_interfacefunction e752x_check_sysbusfunction e752x_check_membuffunction e752x_check_dramfunction e752x_get_error_infofunction e752x_process_error_infofunction e752x_checkfunction set_sdram_scrub_ratefunction get_sdram_scrub_ratefunction dual_channel_activefunction remap_csrow_indexfunction e752x_init_csrowsfunction e752x_init_mem_map_tablefunction e752x_get_devsfunction e752x_init_sysbus_parity_maskfunction e752x_init_error_reporting_regsfunction e752x_probe1function e752x_init_onefunction e752x_remove_onefunction e752x_initfunction e752x_exitmodule init e752x_init
Annotated Snippet
static struct pci_driver e752x_driver = {
.name = EDAC_MOD_STR,
.probe = e752x_init_one,
.remove = e752x_remove_one,
.id_table = e752x_pci_tbl,
};
static int __init e752x_init(void)
{
int pci_rc;
edac_dbg(3, "\n");
/* Ensure that the OPSTATE is set correctly for POLL or NMI */
opstate_init();
pci_rc = pci_register_driver(&e752x_driver);
return (pci_rc < 0) ? pci_rc : 0;
}
static void __exit e752x_exit(void)
{
edac_dbg(3, "\n");
pci_unregister_driver(&e752x_driver);
}
module_init(e752x_init);
module_exit(e752x_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Linux Networx (http://lnxi.com) Tom Zimmerman");
MODULE_DESCRIPTION("MC support for Intel e752x/3100 memory controllers");
module_param(force_function_unhide, int, 0444);
MODULE_PARM_DESC(force_function_unhide, "if BIOS sets Dev0:Fun1 up as hidden:"
" 1=force unhide and hope BIOS doesn't fight driver for "
"Dev0:Fun1 access");
module_param(edac_op_state, int, 0444);
MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");
module_param(sysbus_parity, int, 0444);
MODULE_PARM_DESC(sysbus_parity, "0=disable system bus parity checking,"
" 1=enable system bus parity checking, default=auto-detect");
module_param(report_non_memory_errors, int, 0644);
MODULE_PARM_DESC(report_non_memory_errors, "0=disable non-memory error "
"reporting, 1=enable non-memory error reporting");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/edac.h`, `edac_module.h`.
- Detected declarations: `struct e752x_pvt`, `struct e752x_dev_info`, `struct e752x_error_info`, `struct scrubrate`, `enum e752x_chips`, `function ctl_page_to_phys`, `function do_process_ce`, `function process_ce`, `function do_process_ue`, `function process_ue`.
- Atlas domain: Driver Families / drivers/edac.
- Implementation status: pattern implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.