drivers/dma/bestcomm/bestcomm.c
Source file repositories/reference/linux-study-clean/drivers/dma/bestcomm/bestcomm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/bestcomm/bestcomm.c- Extension
.c- Size
- 13218 bytes
- Lines
- 524
- Domain
- Driver Families
- Bucket
- drivers/dma
- 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.
- 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/module.hlinux/kernel.hlinux/slab.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/platform_device.hasm/io.hasm/irq.hasm/mpc52xx.hlinux/fsl/bestcomm/sram.hlinux/fsl/bestcomm/bestcomm_priv.hlinux/fsl/bestcomm/bestcomm.h
Detected Declarations
function bcom_task_allocfunction bcom_task_freefunction bcom_load_imagefunction bcom_set_initiatorfunction bcom_enablefunction bcom_disablefunction bcom_engine_initfunction bcom_engine_cleanupfunction mpc52xx_bcom_probefunction mpc52xx_bcom_removefunction mpc52xx_bcom_initfunction mpc52xx_bcom_exitmodule init mpc52xx_bcom_initexport bcom_engexport bcom_task_allocexport bcom_task_freeexport bcom_load_imageexport bcom_set_initiatorexport bcom_enableexport bcom_disable
Annotated Snippet
subsys_initcall(mpc52xx_bcom_init);
module_exit(mpc52xx_bcom_exit);
MODULE_DESCRIPTION("Freescale MPC52xx BestComm DMA");
MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>");
MODULE_AUTHOR("Andrey Volkov <avolkov@varma-el.com>");
MODULE_AUTHOR("Dale Farnsworth <dfarnsworth@mvista.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/slab.h`, `linux/of.h`, `linux/of_address.h`, `linux/of_irq.h`, `linux/platform_device.h`, `asm/io.h`.
- Detected declarations: `function bcom_task_alloc`, `function bcom_task_free`, `function bcom_load_image`, `function bcom_set_initiator`, `function bcom_enable`, `function bcom_disable`, `function bcom_engine_init`, `function bcom_engine_cleanup`, `function mpc52xx_bcom_probe`, `function mpc52xx_bcom_remove`.
- Atlas domain: Driver Families / drivers/dma.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.