drivers/mmc/host/sdhci-of-aspeed.c
Source file repositories/reference/linux-study-clean/drivers/mmc/host/sdhci-of-aspeed.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mmc/host/sdhci-of-aspeed.c- Extension
.c- Size
- 16029 bytes
- Lines
- 632
- Domain
- Driver Families
- Bucket
- drivers/mmc
- 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/delay.hlinux/device.hlinux/io.hlinux/math64.hlinux/mmc/host.hlinux/module.hlinux/of_address.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/reset.hlinux/spinlock.hsdhci-pltfm.hsdhci-of-aspeed-test.c
Detected Declarations
struct aspeed_sdcstruct aspeed_sdhci_tap_paramstruct aspeed_sdhci_tap_descstruct aspeed_sdhci_phase_descstruct aspeed_sdhci_pdatastruct aspeed_sdhcifunction aspeed_sdc_set_slot_capabilityfunction aspeed_sdc_configure_8bit_modefunction aspeed_sdc_set_phase_tapfunction aspeed_sdc_set_phase_tapsfunction aspeed_sdhci_phase_to_tapfunction aspeed_sdhci_phases_to_tapsfunction aspeed_sdhci_configure_phasefunction aspeed_sdhci_set_clockfunction aspeed_sdhci_get_max_clockfunction aspeed_sdhci_set_bus_widthfunction aspeed_sdhci_readlfunction aspeed_sdhci_calculate_slotfunction aspeed_sdhci_probefunction aspeed_sdhci_removefunction aspeed_sdc_probefunction aspeed_sdc_removefunction aspeed_sdc_initfunction aspeed_sdc_exitmodule init aspeed_sdc_init
Annotated Snippet
module_init(aspeed_sdc_init);
static void __exit aspeed_sdc_exit(void)
{
platform_driver_unregister(&aspeed_sdc_driver);
platform_driver_unregister(&aspeed_sdhci_driver);
}
module_exit(aspeed_sdc_exit);
MODULE_DESCRIPTION("Driver for the ASPEED SD/SDIO/SDHCI Controllers");
MODULE_AUTHOR("Ryan Chen <ryan_chen@aspeedtech.com>");
MODULE_AUTHOR("Andrew Jeffery <andrew@aj.id.au>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/device.h`, `linux/io.h`, `linux/math64.h`, `linux/mmc/host.h`, `linux/module.h`, `linux/of_address.h`.
- Detected declarations: `struct aspeed_sdc`, `struct aspeed_sdhci_tap_param`, `struct aspeed_sdhci_tap_desc`, `struct aspeed_sdhci_phase_desc`, `struct aspeed_sdhci_pdata`, `struct aspeed_sdhci`, `function aspeed_sdc_set_slot_capability`, `function aspeed_sdc_configure_8bit_mode`, `function aspeed_sdc_set_phase_tap`, `function aspeed_sdc_set_phase_taps`.
- Atlas domain: Driver Families / drivers/mmc.
- 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.