drivers/platform/x86/intel/int1092/intel_sar.h

Source file repositories/reference/linux-study-clean/drivers/platform/x86/intel/int1092/intel_sar.h

File Facts

System
Linux kernel
Corpus path
drivers/platform/x86/intel/int1092/intel_sar.h
Extension
.h
Size
2684 bytes
Lines
87
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct wwan_device_mode_info {
	int device_mode;
	int bandtable_index;
	int antennatable_index;
	int sartable_index;
};

/**
 * Structure wwan_device_mode_configuration - device configuration
 * Holds the data that is configured and obtained on probe event.
 * The data is updated from the BIOS sensor information.
 * @version: Mode configuration version
 * @total_dev_mode: Total number of device modes
 * @device_mode_info: pointer to structure wwan_device_mode_info
 */
struct wwan_device_mode_configuration {
	int version;
	int total_dev_mode;
	struct wwan_device_mode_info *device_mode_info;
};

/**
 * Structure wwan_supported_info - userspace datastore
 * Holds the data that is obtained from userspace
 * The data is updated from the userspace and send value back in the
 * structure format that is mentioned here.
 * @reg_mode_needed: regulatory mode set by user for tests
 * @bios_table_revision: Version of SAR table
 * @num_supported_modes: Total supported modes based on reg_mode
 */
struct wwan_supported_info {
	int reg_mode_needed;
	int bios_table_revision;
	int num_supported_modes;
};

/**
 * Structure wwan_sar_context - context of SAR
 * Holds the complete context as long as the driver is in existence
 * The context holds instance of the data used for different cases.
 * @guid: Group id
 * @handle: store acpi handle
 * @reg_value: regulatory value
 * Regulatory 0: FCC, 1: CE, 2: ISED
 * @sar_device: platform_device type
 * @sar_kobject: kobject for sysfs
 * @supported_data: wwan_supported_info struct
 * @sar_data: wwan_device_mode_info struct
 * @config_data: wwan_device_mode_configuration array struct
 */
struct wwan_sar_context {
	guid_t guid;
	acpi_handle handle;
	int reg_value;
	struct platform_device *sar_device;
	struct wwan_supported_info supported_data;
	struct wwan_device_mode_info sar_data;
	struct wwan_device_mode_configuration config_data[MAX_REGULATORY];
};
#endif /* INTEL_SAR_H */

Annotation

Implementation Notes