diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2019-10-10 15:30:11 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2020-01-04 11:47:49 +0100 |
commit | 2a612a60ab440e6480c77b73403dfee061f74e4b (patch) | |
tree | a2742d0b48b73495d942884503ec168f4500f871 /drivers/net/wireless/intel/iwlwifi/iwl-config.h | |
parent | iwlwifi: assume the driver_data is a trans_cfg, but allow full cfg (diff) | |
download | linux-2a612a60ab440e6480c77b73403dfee061f74e4b.tar.xz linux-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.h | 10 |
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; |