drivers/net/ethernet/freescale/fman/fman_port.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/freescale/fman/fman_port.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/freescale/fman/fman_port.c- Extension
.c- Size
- 52844 bytes
- Lines
- 1922
- 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.
- 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/io.hlinux/platform_device.hlinux/slab.hlinux/module.hlinux/interrupt.hlinux/of_platform.hlinux/of_address.hlinux/delay.hlinux/libfdt_env.hfman.hfman_port.hfman_sp.hfman_keygen.h
Detected Declarations
struct fman_port_rx_bmi_regsstruct fman_port_tx_bmi_regsstruct fman_port_qmi_regsstruct fman_port_hwp_regsstruct fman_port_rsrcstruct fman_port_bpoolsstruct fman_port_cfgstruct fman_port_rx_pools_paramsstruct fman_port_dts_paramsstruct fman_portenum fman_port_deq_prefetchenum fman_port_dma_swapenum fman_port_colorenum fman_port_deq_typefunction init_bmi_rxfunction init_bmi_txfunction init_qmifunction stop_port_hwpfunction start_port_hwpfunction init_hwpfunction initfunction set_bpoolsfunction is_init_donefunction verify_size_of_fifofunction set_ext_buffer_poolsfunction init_low_level_driverfunction fill_soc_specific_paramsfunction get_dflt_fifo_deq_pipeline_depthfunction get_dflt_num_of_tasksfunction get_dflt_extra_num_of_tasksfunction get_dflt_num_of_open_dmasfunction get_dflt_extra_num_of_open_dmasfunction get_dflt_num_of_fifo_bufsfunction set_dflt_cfgfunction set_rx_dflt_cfgfunction set_tx_dflt_cfgfunction fman_port_configfunction fman_port_use_kg_hashfunction fman_port_initfunction fman_port_cfg_buf_prefix_contentfunction fman_port_disablefunction fman_port_enablefunction fman_port_get_qman_channel_idfunction fman_port_get_hash_result_offsetfunction fman_port_get_tstampfunction fman_port_probefunction fman_port_loadfunction fman_port_unload
Annotated Snippet
module_init(fman_port_load);
static void __exit fman_port_unload(void)
{
platform_driver_unregister(&fman_port_driver);
}
module_exit(fman_port_unload);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("Freescale DPAA Frame Manager Port driver");
Annotation
- Immediate include surface: `linux/io.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/module.h`, `linux/interrupt.h`, `linux/of_platform.h`, `linux/of_address.h`, `linux/delay.h`.
- Detected declarations: `struct fman_port_rx_bmi_regs`, `struct fman_port_tx_bmi_regs`, `struct fman_port_qmi_regs`, `struct fman_port_hwp_regs`, `struct fman_port_rsrc`, `struct fman_port_bpools`, `struct fman_port_cfg`, `struct fman_port_rx_pools_params`, `struct fman_port_dts_params`, `struct fman_port`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration 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.