drivers/net/ethernet/freescale/fman/fman.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/freescale/fman/fman.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/freescale/fman/fman.c- Extension
.c- Size
- 83442 bytes
- Lines
- 2914
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/fsl/guts.hlinux/platform_device.hlinux/slab.hlinux/delay.hlinux/module.hlinux/of_platform.hlinux/clk.hlinux/of_address.hlinux/of_irq.hlinux/interrupt.hlinux/libfdt_env.hfman.hfman_muram.hfman_keygen.h
Detected Declarations
struct fman_iram_regsstruct fman_fpm_regsstruct fman_bmi_regsstruct fman_qmi_regsstruct fman_dma_regsstruct fman_hwp_regsstruct fman_state_structstruct fman_cfgenum fman_dma_aid_modefunction fman_exceptionsfunction fman_bus_errorfunction call_mac_isrfunction hw_port_id_to_sw_port_idfunction set_port_order_restorationfunction set_port_liodnfunction enable_rams_eccfunction disable_rams_eccfunction fman_defconfigfunction dma_initfunction fpm_initfunction bmi_initfunction qmi_initfunction hwp_initfunction enablefunction set_exceptionfunction resumefunction fill_soc_specific_paramsfunction is_init_donefunction free_init_resourcesfunction bmi_err_eventfunction qmi_err_eventfunction dma_err_eventfunction fpm_err_eventfunction muram_err_intrfunction qmi_eventfunction enable_time_stampfunction clear_iramfunction get_exception_flagfunction get_module_eventfunction set_size_of_fifofunction set_num_of_tasksfunction set_num_of_open_dmasfunction fman_configfunction fman_resetfunction fman_initfunction fman_set_exceptionfunction fman_register_intrfunction fman_unregister_intr
Annotated Snippet
module_init(fman_load);
static void __exit fman_unload(void)
{
platform_driver_unregister(&fman_driver);
}
module_exit(fman_unload);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("Freescale DPAA Frame Manager driver");
Annotation
- Immediate include surface: `linux/fsl/guts.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/delay.h`, `linux/module.h`, `linux/of_platform.h`, `linux/clk.h`, `linux/of_address.h`.
- Detected declarations: `struct fman_iram_regs`, `struct fman_fpm_regs`, `struct fman_bmi_regs`, `struct fman_qmi_regs`, `struct fman_dma_regs`, `struct fman_hwp_regs`, `struct fman_state_struct`, `struct fman_cfg`, `enum fman_dma_aid_mode`, `function fman_exceptions`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.