drivers/dma/ti/edma.c
Source file repositories/reference/linux-study-clean/drivers/dma/ti/edma.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/ti/edma.c- Extension
.c- Size
- 71427 bytes
- Lines
- 2703
- 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.
- 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/dmaengine.hlinux/dma-mapping.hlinux/bitmap.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/list.hlinux/module.hlinux/platform_device.hlinux/slab.hlinux/spinlock.hlinux/string_choices.hlinux/of.hlinux/of_dma.hlinux/of_irq.hlinux/of_address.hlinux/pm_runtime.hlinux/platform_data/edma.h../dmaengine.h../virt-dma.h
Detected Declarations
struct edmacc_paramstruct edma_psetstruct edma_descstruct edma_ccstruct edma_tcstruct edma_chanstruct edma_ccfunction edma_readfunction edma_writefunction edma_modifyfunction edma_orfunction edma_read_arrayfunction edma_write_arrayfunction edma_modify_arrayfunction edma_or_array2function edma_write_array2function edma_shadow0_read_arrayfunction edma_shadow0_writefunction edma_shadow0_write_arrayfunction edma_param_modifyfunction edma_assign_priority_to_queuefunction edma_set_chmapfunction edma_setup_interruptfunction edma_write_slotfunction edma_read_slotfunction edma_alloc_slotfunction edma_free_slotfunction edma_linkfunction edma_get_positionfunction edma_startfunction edma_stopfunction edma_pausefunction edma_resumefunction edma_trigger_channelfunction edma_clean_channelfunction edma_assign_channel_eventqfunction edma_alloc_channelfunction edma_free_channelfunction edma_desc_freefunction edma_executefunction edma_terminate_allfunction edma_dmafunction edma_synchronizefunction edma_slave_configfunction edma_dma_pausefunction edma_dma_resumefunction edma_config_psetfunction edma_prep_dma_interleaved
Annotated Snippet
subsys_initcall(edma_init);
static void __exit edma_exit(void)
{
platform_driver_unregister(&edma_driver);
platform_driver_unregister(&edma_tptc_driver);
}
module_exit(edma_exit);
MODULE_AUTHOR("Matt Porter <matt.porter@linaro.org>");
MODULE_DESCRIPTION("TI EDMA DMA engine driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/dmaengine.h`, `linux/dma-mapping.h`, `linux/bitmap.h`, `linux/err.h`, `linux/init.h`, `linux/interrupt.h`, `linux/list.h`, `linux/module.h`.
- Detected declarations: `struct edmacc_param`, `struct edma_pset`, `struct edma_desc`, `struct edma_cc`, `struct edma_tc`, `struct edma_chan`, `struct edma_cc`, `function edma_read`, `function edma_write`, `function edma_modify`.
- 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.
- 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.