arch/sh/drivers/dma/dma-sh.c
Source file repositories/reference/linux-study-clean/arch/sh/drivers/dma/dma-sh.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/drivers/dma/dma-sh.c- Extension
.c- Size
- 9253 bytes
- Lines
- 426
- Domain
- Architecture Layer
- Bucket
- arch/sh
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/interrupt.hlinux/module.hlinux/io.hmach-dreamcast/mach/dma.hasm/dma.hasm/dma-register.hcpu/dma-register.hcpu/dma.h
Detected Declarations
function Copyrightfunction dma_base_addrfunction get_dmte_irqfunction get_dmte_irqfunction calc_xmit_shiftfunction dma_teifunction sh_dmac_request_dmafunction sh_dmac_free_dmafunction sh_dmac_configure_channelfunction sh_dmac_enable_dmafunction sh_dmac_disable_dmafunction sh_dmac_xfer_dmafunction sh_dmac_get_dma_residuefunction definedfunction get_dma_error_irqfunction get_dma_error_irqfunction dma_errfunction dmae_irq_initfunction dmae_irq_freefunction dmae_irq_initfunction dmae_irq_freefunction sh_dmac_initfunction sh_dmac_exitmodule init sh_dmac_init
Annotated Snippet
subsys_initcall(sh_dmac_init);
module_exit(sh_dmac_exit);
MODULE_AUTHOR("Takashi YOSHII, Paul Mundt, Andriy Skulysh");
MODULE_DESCRIPTION("SuperH On-Chip DMAC Support");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/init.h`, `linux/interrupt.h`, `linux/module.h`, `linux/io.h`, `mach-dreamcast/mach/dma.h`, `asm/dma.h`, `asm/dma-register.h`, `cpu/dma-register.h`.
- Detected declarations: `function Copyright`, `function dma_base_addr`, `function get_dmte_irq`, `function get_dmte_irq`, `function calc_xmit_shift`, `function dma_tei`, `function sh_dmac_request_dma`, `function sh_dmac_free_dma`, `function sh_dmac_configure_channel`, `function sh_dmac_enable_dma`.
- Atlas domain: Architecture Layer / arch/sh.
- Implementation status: integration implementation candidate.
- 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.