drivers/platform/x86/amd/hsmp/plat.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/amd/hsmp/plat.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/amd/hsmp/plat.c- Extension
.c- Size
- 8812 bytes
- Lines
- 351
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/amd/hsmp.hlinux/acpi.hlinux/build_bug.hlinux/device.hlinux/dev_printk.hlinux/kconfig.hlinux/module.hlinux/pci.hlinux/platform_device.hlinux/sysfs.hasm/amd/node.hhsmp.h
Detected Declarations
function amd_hsmp_pci_rdwrfunction hsmp_metric_tbl_plat_readfunction hsmp_is_sock_attr_visiblefunction is_f1a_m0hfunction init_platform_devicefunction hsmp_pltdrv_probefunction hsmp_pltdrv_removefunction hsmp_plat_dev_registerfunction legacy_hsmp_supportfunction hsmp_plt_initfunction hsmp_plt_exitmodule init hsmp_plt_init
Annotated Snippet
device_initcall(hsmp_plt_init);
module_exit(hsmp_plt_exit);
MODULE_IMPORT_NS("AMD_HSMP");
MODULE_DESCRIPTION("AMD HSMP Platform Interface Driver");
MODULE_VERSION(DRIVER_VERSION);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `asm/amd/hsmp.h`, `linux/acpi.h`, `linux/build_bug.h`, `linux/device.h`, `linux/dev_printk.h`, `linux/kconfig.h`, `linux/module.h`, `linux/pci.h`.
- Detected declarations: `function amd_hsmp_pci_rdwr`, `function hsmp_metric_tbl_plat_read`, `function hsmp_is_sock_attr_visible`, `function is_f1a_m0h`, `function init_platform_device`, `function hsmp_pltdrv_probe`, `function hsmp_pltdrv_remove`, `function hsmp_plat_dev_register`, `function legacy_hsmp_support`, `function hsmp_plt_init`.
- Atlas domain: Driver Families / drivers/platform.
- 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.