drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c
Source file repositories/reference/linux-study-clean/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c- Extension
.c- Size
- 4512 bytes
- Lines
- 177
- Domain
- Driver Families
- Bucket
- drivers/hid
- 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
linux/amd-pmf-io.hlinux/io-64-nonatomic-lo-hi.hlinux/iopoll.hamd_sfh_interface.h
Detected Declarations
function amd_sfh_wait_responsefunction amd_start_sensorfunction amd_stop_sensorfunction amd_stop_all_sensorfunction sfh_deinit_emp2function sfh_interface_initfunction amd_sfh_mode_infofunction amd_sfh_hpd_infofunction amd_sfh_als_infofunction amd_get_sfh_infoexport amd_get_sfh_info
Annotated Snippet
switch (op) {
case MT_HPD:
return amd_sfh_hpd_info(&sfh_info->user_present);
case MT_ALS:
return amd_sfh_als_info(&sfh_info->ambient_light);
case MT_SRA:
return amd_sfh_mode_info(&sfh_info->platform_type,
&sfh_info->laptop_placement);
}
}
return -EINVAL;
}
EXPORT_SYMBOL_GPL(amd_get_sfh_info);
Annotation
- Immediate include surface: `linux/amd-pmf-io.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/iopoll.h`, `amd_sfh_interface.h`.
- Detected declarations: `function amd_sfh_wait_response`, `function amd_start_sensor`, `function amd_stop_sensor`, `function amd_stop_all_sensor`, `function sfh_deinit_emp2`, `function sfh_interface_init`, `function amd_sfh_mode_info`, `function amd_sfh_hpd_info`, `function amd_sfh_als_info`, `function amd_get_sfh_info`.
- Atlas domain: Driver Families / drivers/hid.
- 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.