drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h
Source file repositories/reference/linux-study-clean/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h- Extension
.h- Size
- 2825 bytes
- Lines
- 118
- Domain
- Driver Families
- Bucket
- drivers/hid
- Inferred role
- Driver Families: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct common_feature_propertystruct common_input_propertystruct accel3_feature_reportstruct accel3_input_reportstruct gyro_feature_reportstruct gyro_input_reportstruct magno_feature_reportstruct magno_input_reportstruct als_feature_reportstruct als_input_reportstruct hpd_feature_reportstruct hpd_input_reportenum desc_type
Annotated Snippet
struct common_feature_property {
/* common properties */
u8 report_id;
u8 connection_type;
u8 report_state;
u8 power_state;
u8 sensor_state;
u32 report_interval;
} __packed;
struct common_input_property {
/* common properties */
u8 report_id;
u8 sensor_state;
u8 event_type;
} __packed;
struct accel3_feature_report {
struct common_feature_property common_property;
/* properties specific to this sensor */
u16 accel_change_sesnitivity;
s16 accel_sensitivity_max;
s16 accel_sensitivity_min;
} __packed;
struct accel3_input_report {
struct common_input_property common_property;
/* values specific to this sensor */
int in_accel_x_value;
int in_accel_y_value;
int in_accel_z_value;
/* include if required to support the "shake" event */
u8 in_accel_shake_detection;
} __packed;
struct gyro_feature_report {
struct common_feature_property common_property;
/* properties specific to this sensor */
u16 gyro_change_sesnitivity;
s16 gyro_sensitivity_max;
s16 gyro_sensitivity_min;
} __packed;
struct gyro_input_report {
struct common_input_property common_property;
/* values specific to this sensor */
int in_angel_x_value;
int in_angel_y_value;
int in_angel_z_value;
} __packed;
struct magno_feature_report {
struct common_feature_property common_property;
/*properties specific to this sensor */
u16 magno_headingchange_sensitivity;
s16 heading_min;
s16 heading_max;
u16 flux_change_sensitivity;
s16 flux_min;
s16 flux_max;
} __packed;
struct magno_input_report {
struct common_input_property common_property;
int in_magno_x;
int in_magno_y;
int in_magno_z;
int in_magno_accuracy;
} __packed;
struct als_feature_report {
struct common_feature_property common_property;
/* properties specific to this sensor */
u16 als_change_sesnitivity;
s16 als_sensitivity_max;
s16 als_sensitivity_min;
} __packed;
struct als_input_report {
struct common_input_property common_property;
/* values specific to this sensor */
int illuminance_value;
int light_color_temp;
int chromaticity_x_value;
int chromaticity_y_value;
} __packed;
struct hpd_feature_report {
struct common_feature_property common_property;
} __packed;
Annotation
- Detected declarations: `struct common_feature_property`, `struct common_input_property`, `struct accel3_feature_report`, `struct accel3_input_report`, `struct gyro_feature_report`, `struct gyro_input_report`, `struct magno_feature_report`, `struct magno_input_report`, `struct als_feature_report`, `struct als_input_report`.
- Atlas domain: Driver Families / drivers/hid.
- Implementation status: source 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.