drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
Source file repositories/reference/linux-study-clean/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c- Extension
.c- Size
- 13697 bytes
- Lines
- 565
- Domain
- Driver Families
- Bucket
- drivers/hid
- 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/bitops.hlinux/delay.hlinux/devm-helpers.hlinux/dma-mapping.hlinux/dmi.hlinux/interrupt.hlinux/io-64-nonatomic-lo-hi.hlinux/iopoll.hlinux/module.hlinux/slab.hlinux/string_choices.hamd_sfh_pcie.hsfh1_1/amd_sfh_init.h
Detected Declarations
function amd_sfh_wait_response_v2function amd_start_sensor_v2function amd_stop_sensor_v2function amd_stop_all_sensor_v2function amd_sfh_clear_intr_v2function amd_sfh_clear_intrfunction amd_sfh_irq_handlerfunction amd_sfh_irq_init_v2function amd_sfh_dis_sts_v2function amd_start_sensorfunction amd_stop_sensorfunction amd_stop_all_sensorsfunction amd_mp2_get_sensor_numfunction amd_mp2_pci_removefunction mp2_select_opsfunction amd_sfh_irq_initfunction mp2_disable_intrfunction hpd_showfunction hpd_storefunction sfh_attr_is_visiblefunction sfh1_1_init_workfunction sfh_init_workfunction amd_sfh_removefunction amd_mp2_pci_probefunction amd_sfh_shutdownfunction amd_mp2_pci_resumefunction amd_mp2_pci_suspend
Annotated Snippet
static struct pci_driver amd_mp2_pci_driver = {
.name = DRIVER_NAME,
.id_table = amd_mp2_pci_tbl,
.probe = amd_mp2_pci_probe,
.driver.pm = &amd_mp2_pm_ops,
.shutdown = amd_sfh_shutdown,
.remove = amd_sfh_remove,
.dev_groups = amd_sfh_groups,
};
module_pci_driver(amd_mp2_pci_driver);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Shyam Sundar S K <Shyam-sundar.S-k@amd.com>");
MODULE_AUTHOR("Sandeep Singh <Sandeep.singh@amd.com>");
MODULE_AUTHOR("Basavaraj Natikar <Basavaraj.Natikar@amd.com>");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/delay.h`, `linux/devm-helpers.h`, `linux/dma-mapping.h`, `linux/dmi.h`, `linux/interrupt.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/iopoll.h`.
- Detected declarations: `function amd_sfh_wait_response_v2`, `function amd_start_sensor_v2`, `function amd_stop_sensor_v2`, `function amd_stop_all_sensor_v2`, `function amd_sfh_clear_intr_v2`, `function amd_sfh_clear_intr`, `function amd_sfh_irq_handler`, `function amd_sfh_irq_init_v2`, `function amd_sfh_dis_sts_v2`, `function amd_start_sensor`.
- Atlas domain: Driver Families / drivers/hid.
- 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.