summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2019-10-10 16:30:11 +0300
committerLuca Coelho <luciano.coelho@intel.com>2020-01-04 12:47:49 +0200
commit2a612a60ab440e6480c77b73403dfee061f74e4b (patch)
treea2742d0b48b73495d942884503ec168f4500f871 /drivers/net/wireless/intel/iwlwifi/iwl-config.h
parentb3bd6416fc77b5056d2dda7a4d5814ec81af7ecd (diff)
downloadlinux-stable-2a612a60ab440e6480c77b73403dfee061f74e4b.tar.gz
linux-stable-2a612a60ab440e6480c77b73403dfee061f74e4b.tar.bz2
linux-stable-2a612a60ab440e6480c77b73403dfee061f74e4b.zip
iwlwifi: implement a new device configuration table
Add a new device table that contains information that can be checked at runtime in order to decide which configuration to use. This allows us to map the full cfg independently from the tran-specific configuration. This is the first step in creating the new table. Subsequent patches will add the possibility of checking different values at runtime in order to make the decision. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-config.h')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/iwl-config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-config.h b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
index bbeb5fc3caad..0af1a5184d82 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
@@ -452,9 +452,19 @@ struct iwl_cfg {
const struct iwl_fw_mon_regs mon_smem_regs;
};
+#define IWL_CFG_ANY (~0)
+
+struct iwl_dev_info {
+ u16 device;
+ u16 subdevice;
+ const struct iwl_cfg *cfg;
+};
+
/*
* This list declares the config structures for all devices.
*/
+extern const struct iwl_cfg_trans_params iwl9000_trans_cfg;
+
#if IS_ENABLED(CONFIG_IWLDVM)
extern const struct iwl_cfg iwl5300_agn_cfg;
extern const struct iwl_cfg iwl5100_agn_cfg;