drivers/memory/jz4780-nemc.c
Source file repositories/reference/linux-study-clean/drivers/memory/jz4780-nemc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/memory/jz4780-nemc.c- Extension
.c- Size
- 10741 bytes
- Lines
- 422
- Domain
- Driver Families
- Bucket
- drivers/memory
- 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/clk.hlinux/init.hlinux/io.hlinux/math64.hlinux/of.hlinux/of_address.hlinux/of_platform.hlinux/platform_device.hlinux/slab.hlinux/spinlock.hlinux/jz4780-nemc.h
Detected Declarations
struct jz_soc_infostruct jz4780_nemcfunction jz4780_nemc_num_banksfunction jz4780_nemc_set_typefunction jz4780_nemc_assertfunction jz4780_nemc_clk_periodfunction jz4780_nemc_ns_to_cyclesfunction jz4780_nemc_configure_bankfunction jz4780_nemc_probefunction for_each_set_bitfunction jz4780_nemc_removefunction jz4780_nemc_initmodule init jz4780_nemc_initexport jz4780_nemc_num_banksexport jz4780_nemc_set_typeexport jz4780_nemc_assert
Annotated Snippet
subsys_initcall(jz4780_nemc_init);
Annotation
- Immediate include surface: `linux/clk.h`, `linux/init.h`, `linux/io.h`, `linux/math64.h`, `linux/of.h`, `linux/of_address.h`, `linux/of_platform.h`, `linux/platform_device.h`.
- Detected declarations: `struct jz_soc_info`, `struct jz4780_nemc`, `function jz4780_nemc_num_banks`, `function jz4780_nemc_set_type`, `function jz4780_nemc_assert`, `function jz4780_nemc_clk_period`, `function jz4780_nemc_ns_to_cycles`, `function jz4780_nemc_configure_bank`, `function jz4780_nemc_probe`, `function for_each_set_bit`.
- Atlas domain: Driver Families / drivers/memory.
- 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.