summaryrefslogtreecommitdiff
path: root/src/drivers/wifi/generic/chip.h
blob: fe3a1d1b99790e72871efc2bd9b2e2a3b2652b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _WIFI_GENERIC_H_
#define _WIFI_GENERIC_H_

/**
 * struct drivers_wifi_generic_config - Data structure to contain generic wifi config
 * @wake: Wake pin for ACPI _PRW
 * @maxsleep: Maximum sleep state to wake from
 */
struct drivers_wifi_generic_config {
	unsigned int wake;
	unsigned int maxsleep;
};

/**
 * wifi_generic_fill_ssdt() - Fill ACPI SSDT table for WiFi controller
 * @dev: Device structure corresponding to WiFi controller.
 * @config: Generic wifi config required to fill ACPI SSDT table.
 *
 * This function implements common device operation to help fill ACPI SSDT
 * table for WiFi controller.
 */
void wifi_generic_fill_ssdt(const struct device *dev,
			    const struct drivers_wifi_generic_config *config);

/**
 * wifi_generic_acpi_name() - Get ACPI name for WiFi controller
 * @dev: Device structure corresponding to WiFi controller.
 *
 * This function implements common device operation to get the ACPI name for
 * WiFi controller.
 *
 * Return: string representing the ACPI name for WiFi controller.
 */
const char *wifi_generic_acpi_name(const struct device *dev);

#endif /* _GENERIC_WIFI_H_ */