sound/soc/amd/ps/pci-ps.c
Source file repositories/reference/linux-study-clean/sound/soc/amd/ps/pci-ps.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/amd/ps/pci-ps.c- Extension
.c- Size
- 20828 bytes
- Lines
- 757
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/pci.hlinux/bitops.hlinux/module.hlinux/io.hlinux/delay.hlinux/platform_device.hlinux/acpi.hlinux/interrupt.hsound/pcm_params.hlinux/pm_runtime.hlinux/iopoll.hlinux/soundwire/sdw_amd.h../mach-config.hacp63.h
Detected Declarations
function handle_acp70_sdw_wake_eventfunction check_and_handle_acp70_sdw_wake_irqfunction check_and_handle_sdw_dma_irqfunction acp63_irq_threadfunction acp63_irq_handlerfunction acp_scan_sdw_devicesfunction amd_sdw_probefunction amd_sdw_exitfunction acp_scan_sdw_devicesfunction amd_sdw_probefunction amd_sdw_exitfunction acp63_machine_registerfunction get_acp63_device_configfunction acp63_fill_platform_dev_infofunction create_acp63_platform_devsfunction acp_hw_init_opsfunction snd_acp63_probefunction snd_acp_suspendfunction snd_acp_runtime_resumefunction snd_acp_resumefunction snd_acp63_remove
Annotated Snippet
static struct pci_driver ps_acp63_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_acp63_ids,
.probe = snd_acp63_probe,
.remove = snd_acp63_remove,
.driver = {
.pm = pm_ptr(&acp63_pm_ops),
}
};
module_pci_driver(ps_acp63_driver);
MODULE_AUTHOR("Vijendar.Mukunda@amd.com");
MODULE_AUTHOR("Syed.SabaKareem@amd.com");
MODULE_DESCRIPTION("AMD common ACP PCI driver for ACP6.3, ACP7.0 & ACP7.1 platforms");
MODULE_IMPORT_NS("SOUNDWIRE_AMD_INIT");
MODULE_IMPORT_NS("SND_AMD_SOUNDWIRE_ACPI");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/pci.h`, `linux/bitops.h`, `linux/module.h`, `linux/io.h`, `linux/delay.h`, `linux/platform_device.h`, `linux/acpi.h`, `linux/interrupt.h`.
- Detected declarations: `function handle_acp70_sdw_wake_event`, `function check_and_handle_acp70_sdw_wake_irq`, `function check_and_handle_sdw_dma_irq`, `function acp63_irq_thread`, `function acp63_irq_handler`, `function acp_scan_sdw_devices`, `function amd_sdw_probe`, `function amd_sdw_exit`, `function acp_scan_sdw_devices`, `function amd_sdw_probe`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: pattern 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.