drivers/platform/x86/dell/alienware-wmi-wmax.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/dell/alienware-wmi-wmax.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/dell/alienware-wmi-wmax.c- Extension
.c- Size
- 40318 bytes
- Lines
- 1685
- 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.
- 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/array_size.hlinux/bitfield.hlinux/bitmap.hlinux/bits.hlinux/debugfs.hlinux/dmi.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/kstrtox.hlinux/minmax.hlinux/moduleparam.hlinux/platform_profile.hlinux/pm.hlinux/seq_file.hlinux/units.hlinux/wmi.halienware-wmi.h
Detected Declarations
struct awcc_quirksstruct wmax_led_argsstruct wmax_brightness_argsstruct wmax_basic_argsstruct wmax_u32_argsstruct awcc_fan_datastruct awcc_privenum AWCC_GET_FAN_SENSORS_OPERATIONSenum AWCC_THERMAL_INFORMATION_OPERATIONSenum AWCC_THERMAL_CONTROL_OPERATIONSenum AWCC_GAME_SHIFT_STATUS_OPERATIONSenum AWCC_THERMAL_TABLESenum AWCC_TEMP_SENSOR_TYPESenum AWCC_FAN_TYPESenum awcc_thermal_profilefunction cable_showfunction source_showfunction source_storefunction hdmi_group_visiblefunction status_showfunction amplifier_group_visiblefunction deepsleep_showfunction deepsleep_storefunction deepsleep_group_visiblefunction awcc_profile_to_pproffunction awcc_wmi_commandfunction awcc_get_fan_sensorsfunction awcc_thermal_informationfunction awcc_fwup_gpio_controlfunction awcc_read_total_gpiosfunction awcc_read_gpio_statusfunction awcc_game_shift_statusfunction awcc_op_get_resource_idfunction awcc_op_get_fan_rpmfunction awcc_op_get_temperaturefunction awcc_op_get_fan_boostfunction awcc_op_get_current_profilefunction awcc_op_activate_profilefunction awcc_op_set_fan_boostfunction awcc_hwmon_is_visiblefunction awcc_hwmon_readfunction awcc_hwmon_read_stringfunction fan_boost_showfunction fan_boost_storefunction fan_boost_attr_visiblefunction fan_boost_group_visiblefunction awcc_hwmon_temps_initfunction awcc_hwmon_fans_init
Annotated Snippet
struct awcc_quirks {
bool hwmon;
bool pprof;
bool gmode;
};
static struct awcc_quirks g_series_quirks = {
.hwmon = true,
.pprof = true,
.gmode = true,
};
static struct awcc_quirks generic_quirks = {
.hwmon = true,
.pprof = true,
.gmode = false,
};
static struct awcc_quirks empty_quirks;
static const struct dmi_system_id awcc_dmi_table[] __initconst = {
{
.ident = "Alienware 16 Area-51",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware 16 Area-51"),
},
.driver_data = &g_series_quirks,
},
{
.ident = "Alienware 16X Aurora",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware 16X Aurora"),
},
.driver_data = &g_series_quirks,
},
{
.ident = "Alienware 18 Area-51",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware 18 Area-51"),
},
.driver_data = &g_series_quirks,
},
{
.ident = "Alienware 16 Aurora",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware 16 Aurora"),
},
.driver_data = &g_series_quirks,
},
{
.ident = "Alienware Area-51m",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware Area-51m"),
},
.driver_data = &generic_quirks,
},
{
.ident = "Alienware m15",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m15"),
},
.driver_data = &generic_quirks,
},
{
.ident = "Alienware m16 R1 AMD",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
},
.driver_data = &generic_quirks,
},
{
.ident = "Alienware m16 R1",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1"),
},
.driver_data = &g_series_quirks,
},
{
.ident = "Alienware m16 R2",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R2"),
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/bitfield.h`, `linux/bitmap.h`, `linux/bits.h`, `linux/debugfs.h`, `linux/dmi.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`.
- Detected declarations: `struct awcc_quirks`, `struct wmax_led_args`, `struct wmax_brightness_args`, `struct wmax_basic_args`, `struct wmax_u32_args`, `struct awcc_fan_data`, `struct awcc_priv`, `enum AWCC_GET_FAN_SENSORS_OPERATIONS`, `enum AWCC_THERMAL_INFORMATION_OPERATIONS`, `enum AWCC_THERMAL_CONTROL_OPERATIONS`.
- 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.