drivers/mtd/maps/dc21285.c
Source file repositories/reference/linux-study-clean/drivers/mtd/maps/dc21285.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mtd/maps/dc21285.c- Extension
.c- Size
- 5547 bytes
- Lines
- 232
- Domain
- Driver Families
- Bucket
- drivers/mtd
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/types.hlinux/kernel.hlinux/init.hlinux/delay.hlinux/slab.hlinux/mtd/mtd.hlinux/mtd/map.hlinux/mtd/partitions.hasm/io.hasm/hardware/dec21285.hasm/mach-types.h
Detected Declarations
function nw_en_writefunction dc21285_read8function dc21285_read16function dc21285_read32function dc21285_copy_fromfunction dc21285_write8function dc21285_write16function dc21285_write32function dc21285_copy_to_32function dc21285_copy_to_16function dc21285_copy_to_8function init_dc21285function cleanup_dc21285module init init_dc21285
Annotated Snippet
module_init(init_dc21285);
module_exit(cleanup_dc21285);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Nicolas Pitre <nico@fluxnic.net>");
MODULE_DESCRIPTION("MTD map driver for DC21285 boards");
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/kernel.h`, `linux/init.h`, `linux/delay.h`, `linux/slab.h`, `linux/mtd/mtd.h`, `linux/mtd/map.h`.
- Detected declarations: `function nw_en_write`, `function dc21285_read8`, `function dc21285_read16`, `function dc21285_read32`, `function dc21285_copy_from`, `function dc21285_write8`, `function dc21285_write16`, `function dc21285_write32`, `function dc21285_copy_to_32`, `function dc21285_copy_to_16`.
- Atlas domain: Driver Families / drivers/mtd.
- 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.