Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/rfi.h
48425 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2020-2021, 2023 Intel Corporation3*/4#ifndef __iwl_fw_api_rfi_h__5#define __iwl_fw_api_rfi_h__67#define IWL_RFI_LUT_ENTRY_CHANNELS_NUM 158#define IWL_RFI_LUT_SIZE 249#define IWL_RFI_LUT_INSTALLED_SIZE 41011/**12* struct iwl_rfi_lut_entry - an entry in the RFI frequency LUT.13*14* @freq: frequency15* @channels: channels that can be interfered at frequency freq (at most 15)16* @bands: the corresponding bands17*/18struct iwl_rfi_lut_entry {19__le16 freq;20u8 channels[IWL_RFI_LUT_ENTRY_CHANNELS_NUM];21u8 bands[IWL_RFI_LUT_ENTRY_CHANNELS_NUM];22} __packed;2324/**25* struct iwl_rfi_config_cmd - RFI configuration table26*27* @table: a table can have 24 frequency/channel mappings28* @oem: specifies if this is the default table or set by OEM29* @reserved: (reserved/padding)30*/31struct iwl_rfi_config_cmd {32struct iwl_rfi_lut_entry table[IWL_RFI_LUT_SIZE];33u8 oem;34u8 reserved[3];35} __packed; /* RFI_CONFIG_CMD_API_S_VER_1 */3637/**38* enum iwl_rfi_freq_table_status - status of the frequency table query39* @RFI_FREQ_TABLE_OK: can be used40* @RFI_FREQ_TABLE_DVFS_NOT_READY: DVFS is not ready yet, should try later41* @RFI_FREQ_TABLE_DISABLED: the feature is disabled in FW42*/43enum iwl_rfi_freq_table_status {44RFI_FREQ_TABLE_OK,45RFI_FREQ_TABLE_DVFS_NOT_READY,46RFI_FREQ_TABLE_DISABLED,47};4849/**50* struct iwl_rfi_freq_table_resp_cmd - get the rfi freq table used by FW51*52* @table: table used by FW53* @status: see &iwl_rfi_freq_table_status54*/55struct iwl_rfi_freq_table_resp_cmd {56struct iwl_rfi_lut_entry table[IWL_RFI_LUT_INSTALLED_SIZE];57__le32 status;58} __packed; /* RFI_CONFIG_CMD_API_S_VER_1 */5960/**61* struct iwl_rfi_deactivate_notif - notifcation that FW disaled RFIm62*63* @reason: used only for a log message64*/65struct iwl_rfi_deactivate_notif {66__le32 reason;67} __packed; /* RFI_DEACTIVATE_NTF_S_VER_1 */68#endif /* __iwl_fw_api_rfi_h__ */697071