drivers/dma/sh/shdmac.c
Source file repositories/reference/linux-study-clean/drivers/dma/sh/shdmac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/sh/shdmac.c- Extension
.c- Size
- 24302 bytes
- Lines
- 944
- 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/delay.hlinux/dmaengine.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/kdebug.hlinux/module.hlinux/notifier.hlinux/of.hlinux/platform_device.hlinux/pm_runtime.hlinux/rculist.hlinux/sh_dma.hlinux/slab.hlinux/spinlock.h../dmaengine.hshdma.h
Detected Declarations
function channel_clearfunction sh_dmae_writelfunction sh_dmae_readlfunction dmaor_readfunction dmaor_writefunction chcr_writefunction chcr_readfunction sh_dmae_ctl_stopfunction sh_dmae_rstfunction dmae_is_busyfunction calc_xmit_shiftfunction log2size_to_chcrfunction dmae_set_regfunction dmae_startfunction dmae_initfunction dmae_set_chcrfunction dmae_set_dmarsfunction sh_dmae_start_xferfunction sh_dmae_channel_busyfunction sh_dmae_setup_xferfunction sh_dmae_set_slavefunction dmae_haltfunction sh_dmae_desc_setupfunction sh_dmae_haltfunction sh_dmae_chan_irqfunction sh_dmae_get_partialfunction sh_dmae_resetfunction sh_dmae_errfunction sh_dmae_desc_completedfunction sh_dmae_nmi_notifyfunction sh_dmae_nmi_handlerfunction sh_dmae_chan_probefunction sh_dmae_chan_removefunction shdma_for_each_chanfunction sh_dmae_runtime_suspendfunction sh_dmae_runtime_resumefunction sh_dmae_suspendfunction sh_dmae_resumefunction sh_dmae_slave_addrfunction sh_dmae_probefunction sh_dmae_removefunction sh_dmae_initfunction sh_dmae_exitmodule init sh_dmae_init
Annotated Snippet
module_init(sh_dmae_init);
static void __exit sh_dmae_exit(void)
{
platform_driver_unregister(&sh_dmae_driver);
unregister_die_notifier(&sh_dmae_nmi_notifier);
}
module_exit(sh_dmae_exit);
MODULE_AUTHOR("Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>");
MODULE_DESCRIPTION("Renesas SH DMA Engine driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" SH_DMAE_DRV_NAME);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/dmaengine.h`, `linux/err.h`, `linux/init.h`, `linux/interrupt.h`, `linux/kdebug.h`, `linux/module.h`, `linux/notifier.h`.
- Detected declarations: `function channel_clear`, `function sh_dmae_writel`, `function sh_dmae_readl`, `function dmaor_read`, `function dmaor_write`, `function chcr_write`, `function chcr_read`, `function sh_dmae_ctl_stop`, `function sh_dmae_rst`, `function dmae_is_busy`.
- 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.