linux/drivers/net/wireless/ath/ath12k/acpi.h

/* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
 */
#ifndef ATH12K_ACPI_H
#define ATH12K_ACPI_H

#include <linux/acpi.h>

#define ATH12K_ACPI_DSM_FUNC_SUPPORT_FUNCS
#define ATH12K_ACPI_DSM_FUNC_BIOS_SAR
#define ATH12K_ACPI_DSM_FUNC_GEO_OFFSET
#define ATH12K_ACPI_DSM_FUNC_INDEX_CCA
#define ATH12K_ACPI_DSM_FUNC_TAS_CFG
#define ATH12K_ACPI_DSM_FUNC_TAS_DATA
#define ATH12K_ACPI_DSM_FUNC_INDEX_BAND_EDGE

#define ATH12K_ACPI_FUNC_BIT_BIOS_SAR
#define ATH12K_ACPI_FUNC_BIT_GEO_OFFSET
#define ATH12K_ACPI_FUNC_BIT_CCA
#define ATH12K_ACPI_FUNC_BIT_TAS_CFG
#define ATH12K_ACPI_FUNC_BIT_TAS_DATA
#define ATH12K_ACPI_FUNC_BIT_BAND_EDGE_CHAN_POWER

#define ATH12K_ACPI_NOTIFY_EVENT
#define ATH12K_ACPI_FUNC_BIT_VALID(_acdata, _func)

#define ATH12K_ACPI_TAS_DATA_VERSION
#define ATH12K_ACPI_TAS_DATA_ENABLE
#define ATH12K_ACPI_POWER_LIMIT_VERSION
#define ATH12K_ACPI_POWER_LIMIT_ENABLE_FLAG
#define ATH12K_ACPI_CCA_THR_VERSION
#define ATH12K_ACPI_CCA_THR_ENABLE_FLAG
#define ATH12K_ACPI_BAND_EDGE_VERSION
#define ATH12K_ACPI_BAND_EDGE_ENABLE_FLAG

#define ATH12K_ACPI_GEO_OFFSET_DATA_OFFSET
#define ATH12K_ACPI_DBS_BACKOFF_DATA_OFFSET
#define ATH12K_ACPI_CCA_THR_OFFSET_DATA_OFFSET
#define ATH12K_ACPI_BIOS_SAR_DBS_BACKOFF_LEN
#define ATH12K_ACPI_POWER_LIMIT_DATA_OFFSET
#define ATH12K_ACPI_BIOS_SAR_GEO_OFFSET_LEN
#define ATH12K_ACPI_BIOS_SAR_TABLE_LEN
#define ATH12K_ACPI_CCA_THR_OFFSET_LEN

#define ATH12K_ACPI_DSM_TAS_DATA_SIZE
#define ATH12K_ACPI_DSM_BAND_EDGE_DATA_SIZE
#define ATH12K_ACPI_DSM_TAS_CFG_SIZE

#define ATH12K_ACPI_DSM_GEO_OFFSET_DATA_SIZE
#define ATH12K_ACPI_DSM_BIOS_SAR_DATA_SIZE
#define ATH12K_ACPI_DSM_CCA_DATA_SIZE

#ifdef CONFIG_ACPI

int ath12k_acpi_start(struct ath12k_base *ab);
void ath12k_acpi_stop(struct ath12k_base *ab);

#else

static inline int ath12k_acpi_start(struct ath12k_base *ab)
{
	return 0;
}

static inline void ath12k_acpi_stop(struct ath12k_base *ab)
{
}

#endif /* CONFIG_ACPI */

#endif /* ATH12K_ACPI_H */