drivers/platform/x86/tuxedo/nb04/wmi_util.h
Source file repositories/reference/linux-study-clean/drivers/platform/x86/tuxedo/nb04/wmi_util.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/tuxedo/nb04/wmi_util.h- Extension
.h- Size
- 3040 bytes
- Lines
- 110
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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
linux/wmi.h
Detected Declarations
struct __packedstruct __packedstruct __packedstruct tux_kbl_set_multiple_keys_in_rgb_config_tstruct __packedenum tux_wmi_xx_8in_80out_methodsenum tux_wmi_xx_496in_80out_methods
Annotated Snippet
struct __packed {
u8 device_type;
u8 reserved[7];
} get_device_status_in;
};
union tux_wmi_xx_8in_80out_out_t {
u8 raw[80];
struct __packed {
u16 return_status;
u8 device_enabled;
u8 kbl_type;
u8 kbl_side_bar_supported;
u8 keyboard_physical_layout;
u8 app_pages;
u8 per_key_kbl_default_color;
u8 four_zone_kbl_default_color_1;
u8 four_zone_kbl_default_color_2;
u8 four_zone_kbl_default_color_3;
u8 four_zone_kbl_default_color_4;
u8 light_bar_kbl_default_color;
u8 reserved_0[1];
u16 dedicated_gpu_id;
u8 reserved_1[64];
} get_device_status_out;
};
enum tux_wmi_xx_8in_80out_methods {
TUX_GET_DEVICE_STATUS = 2,
};
#define TUX_KBL_SET_MULTIPLE_KEYS_LIGHTING_SETTINGS_COUNT_MAX 120
union tux_wmi_xx_496in_80out_in_t {
u8 raw[496];
struct __packed {
u8 reserved[15];
u8 rgb_configs_cnt;
struct tux_kbl_set_multiple_keys_in_rgb_config_t {
u8 key_id;
u8 red;
u8 green;
u8 blue;
} rgb_configs[TUX_KBL_SET_MULTIPLE_KEYS_LIGHTING_SETTINGS_COUNT_MAX];
} kbl_set_multiple_keys_in;
};
union tux_wmi_xx_496in_80out_out_t {
u8 raw[80];
struct __packed {
u8 return_value;
u8 reserved[79];
} kbl_set_multiple_keys_out;
};
enum tux_wmi_xx_496in_80out_methods {
TUX_KBL_SET_MULTIPLE_KEYS = 6,
};
int tux_wmi_xx_8in_80out(struct wmi_device *wdev,
enum tux_wmi_xx_8in_80out_methods method,
union tux_wmi_xx_8in_80out_in_t *in,
union tux_wmi_xx_8in_80out_out_t *out);
int tux_wmi_xx_496in_80out(struct wmi_device *wdev,
enum tux_wmi_xx_496in_80out_methods method,
union tux_wmi_xx_496in_80out_in_t *in,
union tux_wmi_xx_496in_80out_out_t *out);
#endif
Annotation
- Immediate include surface: `linux/wmi.h`.
- Detected declarations: `struct __packed`, `struct __packed`, `struct __packed`, `struct tux_kbl_set_multiple_keys_in_rgb_config_t`, `struct __packed`, `enum tux_wmi_xx_8in_80out_methods`, `enum tux_wmi_xx_496in_80out_methods`.
- Atlas domain: Driver Families / drivers/platform.
- 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.