drivers/soundwire/amd_init.c
Source file repositories/reference/linux-study-clean/drivers/soundwire/amd_init.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soundwire/amd_init.c- Extension
.c- Size
- 5704 bytes
- Lines
- 230
- Domain
- Driver Families
- Bucket
- drivers/soundwire
- 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.
- 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/acpi.hlinux/cleanup.hlinux/export.hlinux/io.hlinux/module.hlinux/platform_device.hamd_init.h
Detected Declarations
function amd_enable_sdw_padsfunction sdw_amd_cleanupfunction sdw_amd_startupfunction sdw_amd_probefunction sdw_amd_exitfunction sdw_amd_get_slave_infofunction list_for_each_entry
Annotated Snippet
if (amd_manager) {
bus = &amd_manager->bus;
list_for_each_entry(slave, &bus->slaves, node) {
ctx->peripherals->array[i] = slave;
i++;
}
}
}
return 0;
}
EXPORT_SYMBOL_NS(sdw_amd_get_slave_info, "SOUNDWIRE_AMD_INIT");
MODULE_AUTHOR("Vijendar.Mukunda@amd.com");
MODULE_DESCRIPTION("AMD SoundWire Init Library");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/cleanup.h`, `linux/export.h`, `linux/io.h`, `linux/module.h`, `linux/platform_device.h`, `amd_init.h`.
- Detected declarations: `function amd_enable_sdw_pads`, `function sdw_amd_cleanup`, `function sdw_amd_startup`, `function sdw_amd_probe`, `function sdw_amd_exit`, `function sdw_amd_get_slave_info`, `function list_for_each_entry`.
- Atlas domain: Driver Families / drivers/soundwire.
- Implementation status: integration implementation candidate.
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.