wifi: iwlwifi: rename struct iwl_base_params
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 May 2025 12:13:02 +0000 (15:13 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Fri, 9 May 2025 12:38:35 +0000 (15:38 +0300)
These are (going to be) base MAC parameters that are identical
even for different platforms with the same MAC, so rename the
structure accordingly, calling it iwl_family_base_params.

Also rename the pointer to it so the dereferencing is a bit
shorter.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250508121306.1277801-12-miriam.rachel.korenblit@intel.com
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
31 files changed:
drivers/net/wireless/intel/iwlwifi/cfg/1000.c
drivers/net/wireless/intel/iwlwifi/cfg/2000.c
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/cfg/5000.c
drivers/net/wireless/intel/iwlwifi/cfg/6000.c
drivers/net/wireless/intel/iwlwifi/cfg/7000.c
drivers/net/wireless/intel/iwlwifi/cfg/8000.c
drivers/net/wireless/intel/iwlwifi/cfg/9000.c
drivers/net/wireless/intel/iwlwifi/cfg/ax210.c
drivers/net/wireless/intel/iwlwifi/cfg/bz.c
drivers/net/wireless/intel/iwlwifi/cfg/dr.c
drivers/net/wireless/intel/iwlwifi/cfg/sc.c
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
drivers/net/wireless/intel/iwlwifi/dvm/led.c
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/dvm/main.c
drivers/net/wireless/intel/iwlwifi/dvm/power.c
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
drivers/net/wireless/intel/iwlwifi/mld/tx.c
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/utils.c
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/rx.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c

index 2cc2c2f8e6534ca1c9974a9a3f7b488fa231db77..f40fea33e69b84e224de209c58ba2c83b9f21830 100644 (file)
@@ -29,7 +29,7 @@
 #define IWL100_MODULE_FIRMWARE(api) IWL100_FW_PRE "-" __stringify(api) ".ucode"
 
 
-static const struct iwl_base_params iwl1000_base_params = {
+static const struct iwl_family_base_params iwl1000_base = {
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
@@ -56,7 +56,7 @@ static const struct iwl_eeprom_params iwl1000_eeprom_params = {
 
 const struct iwl_mac_cfg iwl1000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_1000,
-       .base_params = &iwl1000_base_params,
+       .base = &iwl1000_base,
 };
 
 #define IWL_DEVICE_1000                                                \
index 7e8e9c8eda755c53af0f52d627da51b20adf9029..33f04c9d05d6082433d89b915ee16eadde9fdfd5 100644 (file)
@@ -40,7 +40,7 @@
 #define IWL135_FW_PRE "iwlwifi-135"
 #define IWL135_MODULE_FIRMWARE(api) IWL135_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl2000_base_params = {
+static const struct iwl_family_base_params iwl2000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -54,7 +54,7 @@ static const struct iwl_base_params iwl2000_base_params = {
 };
 
 
-static const struct iwl_base_params iwl2030_base_params = {
+static const struct iwl_family_base_params iwl2030_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -82,7 +82,7 @@ static const struct iwl_eeprom_params iwl20x0_eeprom_params = {
 
 const struct iwl_mac_cfg iwl2000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_2000,
-       .base_params = &iwl2000_base_params,
+       .base = &iwl2000_base,
 };
 
 #define IWL_DEVICE_2000                                                \
@@ -111,7 +111,7 @@ const char iwl2000_2bgn_d_name[] = "Intel(R) Centrino(R) Wireless-N 2200D BGN";
 
 const struct iwl_mac_cfg iwl2030_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_2030,
-       .base_params = &iwl2030_base_params,
+       .base = &iwl2030_base,
 };
 
 #define IWL_DEVICE_2030                                                \
@@ -138,7 +138,7 @@ const char iwl2030_2bgn_name[] = "Intel(R) Centrino(R) Wireless-N 2230 BGN";
 
 const struct iwl_mac_cfg iwl105_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_105,
-       .base_params = &iwl2000_base_params,
+       .base = &iwl2000_base,
 };
 
 #define IWL_DEVICE_105                                         \
@@ -167,7 +167,7 @@ const char iwl105_bgn_d_name[] = "Intel(R) Centrino(R) Wireless-N 105D BGN";
 
 const struct iwl_mac_cfg iwl135_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_135,
-       .base_params = &iwl2030_base_params,
+       .base = &iwl2030_base,
 };
 
 #define IWL_DEVICE_135                                         \
index f95cf1c0ae034fb438c3d1c11dc11d4304d759df..09286509fe3e3e1e0969c9d9d5983bfec5037892 100644 (file)
@@ -49,7 +49,7 @@
 #define IWL_CC_A_MODULE_FIRMWARE(api)                  \
        IWL_CC_A_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl_22000_base_params = {
+static const struct iwl_family_base_params iwl_22000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
        .max_tfd_queue_size = 256,
@@ -116,7 +116,7 @@ const struct iwl_mac_cfg iwl_qu_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_22000,
-       .base_params = &iwl_22000_base_params,
+       .base = &iwl_22000_base,
        .integrated = true,
        .xtal_latency = 500,
        .ltr_delay = IWL_CFG_TRANS_LTR_DELAY_200US,
@@ -126,7 +126,7 @@ const struct iwl_mac_cfg iwl_qu_medium_latency_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_22000,
-       .base_params = &iwl_22000_base_params,
+       .base = &iwl_22000_base,
        .integrated = true,
        .xtal_latency = 1820,
        .ltr_delay = IWL_CFG_TRANS_LTR_DELAY_1820US,
@@ -136,7 +136,7 @@ const struct iwl_mac_cfg iwl_qu_long_latency_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_22000,
-       .base_params = &iwl_22000_base_params,
+       .base = &iwl_22000_base,
        .integrated = true,
        .xtal_latency = 12000,
        .low_latency_xtal = true,
@@ -171,7 +171,7 @@ const struct iwl_cfg iwl9560_qu_jf_cfg_80mhz = {
 
 const struct iwl_mac_cfg iwl_ax200_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_22000,
-       .base_params = &iwl_22000_base_params,
+       .base = &iwl_22000_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .bisr_workaround = 1,
index 6f9697847b80e250358ae2455ff36c3e134c59c3..79ba0524086a2fd13343d034cf2f2c86422cd21a 100644 (file)
@@ -30,7 +30,7 @@
 #define IWL5150_FW_PRE "iwlwifi-5150"
 #define IWL5150_MODULE_FIRMWARE(api) IWL5150_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl5000_base_params = {
+static const struct iwl_family_base_params iwl5000_base = {
        .eeprom_size = IWLAGN_EEPROM_IMG_SIZE,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -55,7 +55,7 @@ static const struct iwl_eeprom_params iwl5000_eeprom_params = {
 
 const struct iwl_mac_cfg iwl5000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_5000,
-       .base_params = &iwl5000_base_params,
+       .base = &iwl5000_base,
 };
 
 #define IWL_DEVICE_5000                                                \
@@ -124,7 +124,7 @@ const char iwl5350_agn_name[] = "Intel(R) WiMAX/WiFi Link 5350 AGN";
 
 const struct iwl_mac_cfg iwl5150_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_5150,
-       .base_params = &iwl5000_base_params,
+       .base = &iwl5000_base,
 };
 
 #define IWL_DEVICE_5150                                                \
index ea930bcf87912c99921c46a9319549a6d1b61475..94f042760359676c99e07a5d683ca2751492c587 100644 (file)
@@ -49,7 +49,7 @@
 #define IWL6030_FW_PRE "iwlwifi-6000g2b"
 #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl6000_base_params = {
+static const struct iwl_family_base_params iwl6000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -62,7 +62,7 @@ static const struct iwl_base_params iwl6000_base_params = {
        .scd_chain_ext_wa = true,
 };
 
-static const struct iwl_base_params iwl6050_base_params = {
+static const struct iwl_family_base_params iwl6050_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -75,7 +75,7 @@ static const struct iwl_base_params iwl6050_base_params = {
        .scd_chain_ext_wa = true,
 };
 
-static const struct iwl_base_params iwl6000_g2_base_params = {
+static const struct iwl_family_base_params iwl6000_g2_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
        .num_of_queues = IWLAGN_NUM_QUEUES,
        .max_tfd_queue_size = 256,
@@ -103,7 +103,7 @@ static const struct iwl_eeprom_params iwl6000_eeprom_params = {
 
 const struct iwl_mac_cfg iwl6005_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6005,
-       .base_params = &iwl6000_g2_base_params,
+       .base = &iwl6000_g2_base,
 };
 
 #define IWL_DEVICE_6005                                                \
@@ -141,7 +141,7 @@ const char iwl6005_2bg_name[] = "Intel(R) Centrino(R) Advanced-N 6205 BG";
 
 const struct iwl_mac_cfg iwl6030_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6030,
-       .base_params = &iwl6000_g2_base_params,
+       .base = &iwl6000_g2_base,
 };
 
 #define IWL_DEVICE_6030                                                \
@@ -220,7 +220,7 @@ const char iwl130_bg_name[] = "Intel(R) Centrino(R) Wireless-N 130 BG";
 
 const struct iwl_mac_cfg iwl6000i_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6000i,
-       .base_params = &iwl6000_base_params,
+       .base = &iwl6000_base,
 };
 
 /*
@@ -259,7 +259,7 @@ const char iwl6000i_2bg_name[] = "Intel(R) Centrino(R) Advanced-N 6200 BG";
 
 const struct iwl_mac_cfg iwl6050_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6050,
-       .base_params = &iwl6050_base_params,
+       .base = &iwl6050_base,
 };
 
 #define IWL_DEVICE_6050                                                \
@@ -295,7 +295,7 @@ const char iwl6050_2abg_name[] = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 A
 
 const struct iwl_mac_cfg iwl6150_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6150,
-       .base_params = &iwl6050_base_params,
+       .base = &iwl6050_base,
 };
 
 #define IWL_DEVICE_6150                                                \
@@ -329,7 +329,7 @@ const char iwl6150_bg_name[] = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG"
 
 const struct iwl_mac_cfg iwl6000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_6000,
-       .base_params = &iwl6000_base_params,
+       .base = &iwl6000_base,
 };
 
 const struct iwl_cfg iwl6000_3agn_cfg = {
index f93453f159d8553fafca3b23a4a2398eb8b8f36a..6e4f6591000cf7dde7f2725eed422edd8f02a696 100644 (file)
@@ -49,7 +49,7 @@
 #define IWL7265D_FW_PRE "iwlwifi-7265D"
 #define IWL7265D_MODULE_FIRMWARE(api) IWL7265D_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl7000_base_params = {
+static const struct iwl_family_base_params iwl7000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_16K,
        .num_of_queues = 31,
        .max_tfd_queue_size = 256,
@@ -86,7 +86,7 @@ static const struct iwl_tt_params iwl7000_high_temp_tt_params = {
 
 const struct iwl_mac_cfg iwl7000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_7000,
-       .base_params = &iwl7000_base_params,
+       .base = &iwl7000_base,
 };
 
 #define IWL_DEVICE_7000_COMMON                                 \
index 337c35a366274895e26953b2446a69f7aceb715a..f8448b1541f169cdccf2abcef7b21551bbff87ca 100644 (file)
@@ -35,7 +35,7 @@
 #define IWL8265_MODULE_FIRMWARE(api) \
        IWL8265_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl8000_base_params = {
+static const struct iwl_family_base_params iwl8000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 31,
        .max_tfd_queue_size = 256,
@@ -70,7 +70,7 @@ static const struct iwl_tt_params iwl8000_tt_params = {
 
 const struct iwl_mac_cfg iwl8000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_8000,
-       .base_params = &iwl8000_base_params,
+       .base = &iwl8000_base,
 };
 
 #define IWL_DEVICE_8000_COMMON                                         \
index 7abe5f87ab34b74c20746447a4436d5aa1cb8640..15620d15a10e49a4130b9ce7cea030bbd8d3b644 100644 (file)
@@ -33,7 +33,7 @@
 #define IWL9260_MODULE_FIRMWARE(api) \
        IWL9260_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl9000_base_params = {
+static const struct iwl_family_base_params iwl9000_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 31,
        .max_tfd_queue_size = 256,
@@ -118,13 +118,13 @@ static const struct iwl_tt_params iwl9000_tt_params = {
 
 const struct iwl_mac_cfg iwl9000_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_9000,
-       .base_params = &iwl9000_base_params,
+       .base = &iwl9000_base,
        .mq_rx_supported = true,
 };
 
 const struct iwl_mac_cfg iwl9560_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_9000,
-       .base_params = &iwl9000_base_params,
+       .base = &iwl9000_base,
        .mq_rx_supported = true,
        .integrated = true,
        .xtal_latency = 650,
@@ -132,7 +132,7 @@ const struct iwl_mac_cfg iwl9560_mac_cfg = {
 
 const struct iwl_mac_cfg iwl9560_long_latency_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_9000,
-       .base_params = &iwl9000_base_params,
+       .base = &iwl9000_base,
        .mq_rx_supported = true,
        .integrated = true,
        .xtal_latency = 2820,
@@ -140,7 +140,7 @@ const struct iwl_mac_cfg iwl9560_long_latency_mac_cfg = {
 
 const struct iwl_mac_cfg iwl9560_shared_clk_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_9000,
-       .base_params = &iwl9000_base_params,
+       .base = &iwl9000_base,
        .mq_rx_supported = true,
        .integrated = true,
        .xtal_latency = 670,
index 067252ef9c943e87dc097954269eb282e2213f33..8c26cc90d0f07fc5ff84aa3ea1fc63ec76dd26d7 100644 (file)
@@ -47,7 +47,7 @@
 #define IWL_MA_B_HR_B_FW_MODULE_FIRMWARE(api)          \
        IWL_MA_B_HR_B_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl_ax210_base_params = {
+static const struct iwl_family_base_params iwl_ax210_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
        .max_tfd_queue_size = 65536,
@@ -120,7 +120,7 @@ const struct iwl_mac_cfg iwl_so_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_AX210,
-       .base_params = &iwl_ax210_base_params,
+       .base = &iwl_ax210_base,
        .umac_prph_offset = 0x300000,
        .integrated = true,
        /* TODO: the following values need to be checked */
@@ -132,7 +132,7 @@ const struct iwl_mac_cfg iwl_so_long_latency_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_AX210,
-       .base_params = &iwl_ax210_base_params,
+       .base = &iwl_ax210_base,
        .umac_prph_offset = 0x300000,
        .integrated = true,
        .low_latency_xtal = true,
@@ -144,7 +144,7 @@ const struct iwl_mac_cfg iwl_so_long_latency_imr_mac_cfg = {
        .mq_rx_supported = true,
        .gen2 = true,
        .device_family = IWL_DEVICE_FAMILY_AX210,
-       .base_params = &iwl_ax210_base_params,
+       .base = &iwl_ax210_base,
        .umac_prph_offset = 0x300000,
        .integrated = true,
        .low_latency_xtal = true,
@@ -165,7 +165,7 @@ const struct iwl_mac_cfg iwl_so_long_latency_imr_mac_cfg = {
 
 const struct iwl_mac_cfg iwl_ma_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_AX210,
-       .base_params = &iwl_ax210_base_params,
+       .base = &iwl_ax210_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .integrated = true,
index a8fe9244a818b9a377c88329d3fbe0cc5abaa356..dd4952b11a33a54ee7da2dc78bf18a113600ac0d 100644 (file)
@@ -43,7 +43,7 @@ const char iwl_ax211_name[] = "Intel(R) Wi-Fi 6E AX211 160MHz";
 const char iwl_ax201_name[] = "Intel(R) Wi-Fi 6 AX201 160MHz";
 #endif
 
-static const struct iwl_base_params iwl_bz_base_params = {
+static const struct iwl_family_base_params iwl_bz_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
        .max_tfd_queue_size = 65536,
@@ -125,7 +125,7 @@ static const struct iwl_base_params iwl_bz_base_params = {
 
 const struct iwl_mac_cfg iwl_bz_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_BZ,
-       .base_params = &iwl_bz_base_params,
+       .base = &iwl_bz_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .integrated = true,
@@ -137,7 +137,7 @@ const struct iwl_mac_cfg iwl_bz_mac_cfg = {
 
 const struct iwl_mac_cfg iwl_gl_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_BZ,
-       .base_params = &iwl_bz_base_params,
+       .base = &iwl_bz_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .umac_prph_offset = 0x300000,
index a258f49b8325e8839d91660a982787e3561c36b4..011b299045c45753fd6daf4075c1c3f2d6a4f459 100644 (file)
@@ -36,7 +36,7 @@
 #define IWL_BR_A_PE_A_FW_MODULE_FIRMWARE(api) \
        IWL_BR_A_PE_A_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl_dr_base_params = {
+static const struct iwl_family_base_params iwl_dr_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
        .max_tfd_queue_size = 65536,
@@ -121,7 +121,7 @@ static const struct iwl_base_params iwl_dr_base_params = {
 
 const struct iwl_mac_cfg iwl_dr_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_DR,
-       .base_params = &iwl_dr_base_params,
+       .base = &iwl_dr_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .integrated = true,
@@ -139,7 +139,7 @@ const struct iwl_cfg iwl_cfg_dr = {
 
 const struct iwl_mac_cfg iwl_br_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_DR,
-       .base_params = &iwl_dr_base_params,
+       .base = &iwl_dr_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .umac_prph_offset = 0x300000,
index 4786a7714f6e5c7612a3bd03f01f5b7d5ab57d1f..e5f780f4e73de7e8498ce4053796b343d3dbd47c 100644 (file)
@@ -43,7 +43,7 @@
 #define IWL_SC_A_HR_B_FW_MODULE_FIRMWARE(api) \
        IWL_SC_A_HR_B_FW_PRE "-" __stringify(api) ".ucode"
 
-static const struct iwl_base_params iwl_sc_base_params = {
+static const struct iwl_family_base_params iwl_sc_base = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
        .max_tfd_queue_size = 65536,
@@ -125,7 +125,7 @@ static const struct iwl_base_params iwl_sc_base_params = {
 
 const struct iwl_mac_cfg iwl_sc_mac_cfg = {
        .device_family = IWL_DEVICE_FAMILY_SC,
-       .base_params = &iwl_sc_base_params,
+       .base = &iwl_sc_base,
        .mq_rx_supported = true,
        .gen2 = true,
        .integrated = true,
index 509b4d71e66065ac8edccf039749cf05b119b5b5..998f3053b3b02ae51c12232b7742a2b9e4f1961b 100644 (file)
@@ -781,7 +781,7 @@ static int iwl_init_otp_access(struct iwl_trans *trans)
         * CSR auto clock gate disable bit -
         * this is only applicable for HW with OTP shadow RAM
         */
-       if (trans->mac_cfg->base_params->shadow_ram_support)
+       if (trans->mac_cfg->base->shadow_ram_support)
                iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG,
                            CSR_RESET_LINK_PWR_MGMT_DISABLED);
 
@@ -902,7 +902,7 @@ static int iwl_find_otp_image(struct iwl_trans *trans,
                }
                /* more in the link list, continue */
                usedblocks++;
-       } while (usedblocks <= trans->mac_cfg->base_params->max_ll_items);
+       } while (usedblocks <= trans->mac_cfg->base->max_ll_items);
 
        /* OTP has no valid blocks */
        IWL_DEBUG_EEPROM(trans->dev, "OTP has no valid blocks\n");
@@ -935,7 +935,7 @@ int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size)
        if (nvm_is_otp < 0)
                return nvm_is_otp;
 
-       sz = trans->mac_cfg->base_params->eeprom_size;
+       sz = trans->mac_cfg->base->eeprom_size;
        IWL_DEBUG_EEPROM(trans->dev, "NVM size = %d\n", sz);
 
        e = kmalloc(sz, GFP_KERNEL);
@@ -970,7 +970,7 @@ int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size)
                            CSR_OTP_GP_REG_ECC_CORR_STATUS_MSK |
                            CSR_OTP_GP_REG_ECC_UNCORR_STATUS_MSK);
                /* traversing the linked list if no shadow ram supported */
-               if (!trans->mac_cfg->base_params->shadow_ram_support) {
+               if (!trans->mac_cfg->base->shadow_ram_support) {
                        ret = iwl_find_otp_image(trans, &validblockaddr);
                        if (ret)
                                goto err_unlock;
index 2b02c717173edad555a09b529cc1f691f622031c..cec2ebdfd6519d1716917bd6262ab031803ed589 100644 (file)
@@ -116,9 +116,9 @@ static int iwl_led_cmd(struct iwl_priv *priv,
        }
 
        led_cmd.on = iwl_blink_compensation(priv, on,
-                               priv->trans->mac_cfg->base_params->led_compensation);
+                               priv->trans->mac_cfg->base->led_compensation);
        led_cmd.off = iwl_blink_compensation(priv, off,
-                               priv->trans->mac_cfg->base_params->led_compensation);
+                               priv->trans->mac_cfg->base->led_compensation);
 
        ret = iwl_send_led_cmd(priv, &led_cmd);
        if (!ret) {
index 7e5c8df678505805cc4113a4fa2dcca0cf5108f5..0771a46bd55206f39c286fa147e6a39ff04ef7cf 100644 (file)
@@ -1091,7 +1091,7 @@ static void iwlagn_mac_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
                goto done;
        }
 
-       scd_queues = BIT(priv->trans->mac_cfg->base_params->num_of_queues) - 1;
+       scd_queues = BIT(priv->trans->mac_cfg->base->num_of_queues) - 1;
        scd_queues &= ~(BIT(IWL_IPAN_CMD_QUEUE_NUM) |
                        BIT(IWL_DEFAULT_CMD_QUEUE_NUM));
 
index 44c6946f1c2003114c8411d8a369523e1b747060..68656706ce34cf0f881edeef6fa2dde0a3d8f0b8 100644 (file)
@@ -1339,7 +1339,7 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
                                            driver_data[2]);
 
        WARN_ON(sizeof(priv->transport_queue_stop) * BITS_PER_BYTE <
-               priv->trans->mac_cfg->base_params->num_of_queues);
+               priv->trans->mac_cfg->base->num_of_queues);
 
        ucode_flags = fw->ucode_capa.flags;
 
index 8cd3931af2ec1c8ec10bb04fdfcd75d8c421f320..6b42d6e5f30fb8a8e9f580f62c3217ad4dfae91d 100644 (file)
@@ -196,7 +196,7 @@ static void iwl_static_sleep_cmd(struct iwl_priv *priv,
        else
                cmd->flags &= ~IWL_POWER_SLEEP_OVER_DTIM_MSK;
 
-       if (priv->trans->mac_cfg->base_params->shadow_reg_enable)
+       if (priv->trans->mac_cfg->base->shadow_reg_enable)
                cmd->flags |= IWL_POWER_SHADOW_REG_ENA;
        else
                cmd->flags &= ~IWL_POWER_SHADOW_REG_ENA;
index e6f6b22bf2598f9905a4f46818526a2c8309d17c..24fefa0e81488968d7203a3ac1a6c2e25eace09b 100644 (file)
@@ -463,7 +463,7 @@ static int iwlagn_alloc_agg_txq(struct iwl_priv *priv, int mq)
        int q;
 
        for (q = IWLAGN_FIRST_AMPDU_QUEUE;
-            q < priv->trans->mac_cfg->base_params->num_of_queues; q++) {
+            q < priv->trans->mac_cfg->base->num_of_queues; q++) {
                if (!test_and_set_bit(q, priv->agg_q_alloc)) {
                        priv->queue_to_mac80211[q] = mq;
                        return q;
@@ -1277,7 +1277,7 @@ void iwlagn_rx_reply_compressed_ba(struct iwl_priv *priv,
         * (in Tx queue's circular buffer) of first TFD/frame in window */
        u16 ba_resp_scd_ssn = le16_to_cpu(ba_resp->scd_ssn);
 
-       if (scd_flow >= priv->trans->mac_cfg->base_params->num_of_queues) {
+       if (scd_flow >= priv->trans->mac_cfg->base->num_of_queues) {
                IWL_ERR(priv,
                        "BUG_ON scd_flow is bigger than number of queues\n");
                return;
index dfbca1ac34a478aaaf9d5982f07140a1817ac8df..9e62df8a7e169d16f02d73127acce2fd80b06db1 100644 (file)
@@ -115,7 +115,7 @@ static inline u8 num_of_ant(u8 mask)
 }
 
 /**
- * struct iwl_base_params - params not likely to change within a device family
+ * struct iwl_family_base_params - base parameters for an entire family
  * @max_ll_items: max number of OTP blocks
  * @shadow_ram_support: shadow support for OTP memory
  * @led_compensation: compensate on the led on/off time per HW according
@@ -128,8 +128,12 @@ static inline u8 num_of_ant(u8 mask)
  *     is in flight. This is due to a HW bug in 7260, 3160 and 7265.
  * @scd_chain_ext_wa: should the chain extension feature in SCD be disabled.
  * @max_tfd_queue_size: max number of entries in tfd queue.
+ * @eeprom_size: EEPROM size
+ * @num_of_queues: number of HW TX queues supported
+ * @pcie_l1_allowed: PCIe L1 state is allowed
+ * @pll_cfg: PLL configuration needed
  */
-struct iwl_base_params {
+struct iwl_family_base_params {
        unsigned int wd_timeout;
 
        u16 eeprom_size;
@@ -253,7 +257,7 @@ enum iwl_mac_cfg_ltr_delay {
  * used, among other things, to boot the NIC so that the HW REV or
  * RFID can be read before deciding the remaining parameters to use.
  *
- * @base_params: pointer to basic parameters
+ * @base: pointer to basic parameters
  * @device_family: the device family
  * @umac_prph_offset: offset to add to UMAC periphery address
  * @xtal_latency: power up latency to get the xtal stabilized
@@ -267,7 +271,7 @@ enum iwl_mac_cfg_ltr_delay {
  * @imr_enabled: use the IMR if supported.
  */
 struct iwl_mac_cfg {
-       const struct iwl_base_params *base_params;
+       const struct iwl_family_base_params *base;
        enum iwl_device_family device_family;
        u32 umac_prph_offset;
        u32 xtal_latency;
index 186c0a2d47728b016cb07d9a60ebe54bff9eadcb..d300b7a12ed74efe39431fcc7e6d54504a8f42ff 100644 (file)
@@ -1755,14 +1755,14 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
                fw->init_evtlog_size = (pieces->init_evtlog_size - 16)/12;
        else
                fw->init_evtlog_size =
-                       drv->trans->mac_cfg->base_params->max_event_log_size;
+                       drv->trans->mac_cfg->base->max_event_log_size;
        fw->init_errlog_ptr = pieces->init_errlog_ptr;
        fw->inst_evtlog_ptr = pieces->inst_evtlog_ptr;
        if (pieces->inst_evtlog_size)
                fw->inst_evtlog_size = (pieces->inst_evtlog_size - 16)/12;
        else
                fw->inst_evtlog_size =
-                       drv->trans->mac_cfg->base_params->max_event_log_size;
+                       drv->trans->mac_cfg->base->max_event_log_size;
        fw->inst_errlog_ptr = pieces->inst_errlog_ptr;
 
        /*
index 41b465ace6faeb009fb9da712e52c52a7bbb1cb2..b72fa6498c526d81413ef2726f2fa15e128a9600 100644 (file)
@@ -76,7 +76,7 @@ static int iwl_mld_allocate_txq(struct iwl_mld *mld, struct ieee80211_txq *txq)
         */
        unsigned int watchdog_timeout = txq->vif->type == NL80211_IFTYPE_AP ?
                                IWL_WATCHDOG_DISABLED :
-                               mld->trans->mac_cfg->base_params->wd_timeout;
+                               mld->trans->mac_cfg->base->wd_timeout;
        int queue, size;
 
        lockdep_assert_wiphy(mld->wiphy);
index b810fd1670467e66abcbb81ec2604cd4e68c6bc5..e1010521c3ea6f6a97f8a21087680ffca97f9be6 100644 (file)
@@ -148,7 +148,7 @@ int iwl_mvm_mld_add_int_sta_with_queue(struct iwl_mvm *mvm,
 {
        int ret, txq;
        unsigned int wdg_timeout = _wdg_timeout ? *_wdg_timeout :
-               mvm->trans->mac_cfg->base_params->wd_timeout;
+               mvm->trans->mac_cfg->base->wd_timeout;
 
        if (WARN_ON_ONCE(sta->sta_id == IWL_INVALID_STA))
                return -ENOSPC;
index 96eb29698a6bc94e077700404be922c587d34cee..434d34b219287aec7f3a38c33aac1ba548d8b1c9 100644 (file)
@@ -2457,7 +2457,7 @@ void iwl_mvm_vif_set_low_latency(struct iwl_mvm_vif *mvmvif, bool set,
  */
 static inline u32 iwl_mvm_flushable_queues(struct iwl_mvm *mvm)
 {
-       return ((BIT(mvm->trans->mac_cfg->base_params->num_of_queues) - 1) &
+       return ((BIT(mvm->trans->mac_cfg->base->num_of_queues) - 1) &
                ~BIT(IWL_MVM_DQA_CMD_QUEUE));
 }
 
index 9e4a70a21f47e737a33b2eb5d8ef1effe92fc169..74ee15f77bafd38a84bd554862723936098e06db 100644 (file)
@@ -191,7 +191,7 @@ static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
        while (ret == length) {
                /* Check no memory assumptions fail and cause an overflow */
                if ((size_read + offset + length) >
-                   mvm->trans->mac_cfg->base_params->eeprom_size) {
+                   mvm->trans->mac_cfg->base->eeprom_size) {
                        IWL_ERR(mvm, "EEPROM size is too small for NVM\n");
                        return -ENOBUFS;
                }
@@ -316,7 +316,7 @@ int iwl_nvm_init(struct iwl_mvm *mvm)
        /* Read From FW NVM */
        IWL_DEBUG_EEPROM(mvm->trans->dev, "Read from NVM\n");
 
-       nvm_buffer = kmalloc(mvm->trans->mac_cfg->base_params->eeprom_size,
+       nvm_buffer = kmalloc(mvm->trans->mac_cfg->base->eeprom_size,
                             GFP_KERNEL);
        if (!nvm_buffer)
                return -ENOMEM;
index 5393e98d2a08d6776442cab18fc6ff7e6a59fb6f..a5190e091bad9102a2d6686de145c09251f8d857 100644 (file)
@@ -791,10 +791,10 @@ static int iwl_mvm_find_free_queue(struct iwl_mvm *mvm, u8 sta_id,
 
        lockdep_assert_held(&mvm->mutex);
 
-       if (WARN(maxq >= mvm->trans->mac_cfg->base_params->num_of_queues,
+       if (WARN(maxq >= mvm->trans->mac_cfg->base->num_of_queues,
                 "max queue %d >= num_of_queues (%d)", maxq,
-                mvm->trans->mac_cfg->base_params->num_of_queues))
-               maxq = mvm->trans->mac_cfg->base_params->num_of_queues - 1;
+                mvm->trans->mac_cfg->base->num_of_queues))
+               maxq = mvm->trans->mac_cfg->base->num_of_queues - 1;
 
        /* This should not be hit with new TX path */
        if (WARN_ON(iwl_mvm_has_new_tx_api(mvm)))
@@ -2189,7 +2189,7 @@ static void iwl_mvm_enable_aux_snif_queue(struct iwl_mvm *mvm, u16 queue,
                                          u8 sta_id, u8 fifo)
 {
        unsigned int wdg_timeout =
-               mvm->trans->mac_cfg->base_params->wd_timeout;
+               mvm->trans->mac_cfg->base->wd_timeout;
        struct iwl_trans_txq_scd_cfg cfg = {
                .fifo = fifo,
                .sta_id = sta_id,
@@ -2206,7 +2206,7 @@ static void iwl_mvm_enable_aux_snif_queue(struct iwl_mvm *mvm, u16 queue,
 static int iwl_mvm_enable_aux_snif_queue_tvqm(struct iwl_mvm *mvm, u8 sta_id)
 {
        unsigned int wdg_timeout =
-               mvm->trans->mac_cfg->base_params->wd_timeout;
+               mvm->trans->mac_cfg->base->wd_timeout;
 
        WARN_ON(!iwl_mvm_has_new_tx_api(mvm));
 
index 2deda1dbd64f973fa7f2771270d2f5b230453afe..9e0db3a750aad0fe133056e0a4e25f1b74672d97 100644 (file)
@@ -742,7 +742,7 @@ unsigned int iwl_mvm_get_wd_timeout(struct iwl_mvm *mvm,
                                    struct ieee80211_vif *vif)
 {
        unsigned int default_timeout =
-               mvm->trans->mac_cfg->base_params->wd_timeout;
+               mvm->trans->mac_cfg->base->wd_timeout;
 
        /*
         * We can't know when the station is asleep or awake, so we
index 9eb80b014cee33c34595a1bc10cc4715cbb9448d..56b4042edbc2a20b00418ad79728ccc27d25c336 100644 (file)
@@ -702,7 +702,7 @@ static inline void iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq)
 static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index)
 {
        return ++index &
-               (trans->mac_cfg->base_params->max_tfd_queue_size - 1);
+               (trans->mac_cfg->base->max_tfd_queue_size - 1);
 }
 
 /**
@@ -713,7 +713,7 @@ static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index)
 static inline int iwl_txq_dec_wrap(struct iwl_trans *trans, int index)
 {
        return --index &
-               (trans->mac_cfg->base_params->max_tfd_queue_size - 1);
+               (trans->mac_cfg->base->max_tfd_queue_size - 1);
 }
 
 void iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq);
index 919e4c3b188098a23b1ee62d9d669d74faf53fd5..0f408b94f14527b64bdbb85bb3e50a29a9e9e6b2 100644 (file)
@@ -176,7 +176,7 @@ static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans,
         * 1. shadow registers aren't enabled
         * 2. there is a chance that the NIC is asleep
         */
-       if (!trans->mac_cfg->base_params->shadow_reg_enable &&
+       if (!trans->mac_cfg->base->shadow_reg_enable &&
            test_bit(STATUS_TPOWER_PMI, &trans->status)) {
                reg = iwl_read32(trans, CSR_UCODE_DRV_GP1);
 
@@ -1694,7 +1694,7 @@ static void iwl_pcie_irq_handle_error(struct iwl_trans *trans)
                return;
        }
 
-       for (i = 0; i < trans->mac_cfg->base_params->num_of_queues; i++) {
+       for (i = 0; i < trans->mac_cfg->base->num_of_queues; i++) {
                if (!trans_pcie->txqs.txq[i])
                        continue;
                timer_delete(&trans_pcie->txqs.txq[i]->stuck_timer);
index 945cd2455be18adc6caf75863e1effa6ca0e2d18..850952461b2b289386e809849de3a2ca0fb17e62 100644 (file)
@@ -317,7 +317,7 @@ static int iwl_pcie_apm_init(struct iwl_trans *trans)
        iwl_pcie_apm_config(trans);
 
        /* Configure analog phase-lock-loop before activating to D0A */
-       if (trans->mac_cfg->base_params->pll_cfg)
+       if (trans->mac_cfg->base->pll_cfg)
                iwl_set_bit(trans, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL);
 
        ret = iwl_finish_nic_init(trans);
@@ -565,7 +565,7 @@ static int iwl_pcie_nic_init(struct iwl_trans *trans)
                return -ENOMEM;
        }
 
-       if (trans->mac_cfg->base_params->shadow_reg_enable) {
+       if (trans->mac_cfg->base->shadow_reg_enable) {
                /* enable shadow regs in HW */
                iwl_set_bit(trans, CSR_MAC_SHADOW_REG_CTRL, 0x800FFFFF);
                IWL_DEBUG_INFO(trans, "Enabling shadow registers in device\n");
@@ -2672,7 +2672,7 @@ int iwl_trans_pcie_wait_txqs_empty(struct iwl_trans *trans, u32 txq_bm)
 
        /* waiting for all the tx frames complete might take a while */
        for (cnt = 0;
-            cnt < trans->mac_cfg->base_params->num_of_queues;
+            cnt < trans->mac_cfg->base->num_of_queues;
             cnt++) {
 
                if (cnt == trans->conf.cmd_queue)
@@ -2816,7 +2816,7 @@ static void *iwl_dbgfs_tx_queue_seq_start(struct seq_file *seq, loff_t *pos)
        struct iwl_dbgfs_tx_queue_priv *priv = seq->private;
        struct iwl_dbgfs_tx_queue_state *state;
 
-       if (*pos >= priv->trans->mac_cfg->base_params->num_of_queues)
+       if (*pos >= priv->trans->mac_cfg->base->num_of_queues)
                return NULL;
 
        state = kmalloc(sizeof(*state), GFP_KERNEL);
@@ -2834,7 +2834,7 @@ static void *iwl_dbgfs_tx_queue_seq_next(struct seq_file *seq,
 
        *pos = ++state->pos;
 
-       if (*pos >= priv->trans->mac_cfg->base_params->num_of_queues)
+       if (*pos >= priv->trans->mac_cfg->base->num_of_queues)
                return NULL;
 
        return state;
@@ -3892,7 +3892,7 @@ iwl_trans_pcie_alloc(struct pci_dev *pdev,
 
        trans_pcie->debug_rfkill = -1;
 
-       if (!mac_cfg->base_params->pcie_l1_allowed) {
+       if (!mac_cfg->base->pcie_l1_allowed) {
                /*
                 * W/A - seems to solve weird behavior. We need to remove this
                 * if we don't want to stay in L1 all the time. This wastes a
index 3fbb7dcee7c6eb4be02fa63f44accc215d35833a..ceb730baa494fb3830f84019503e47cc4a6869f5 100644 (file)
@@ -535,17 +535,17 @@ int iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q)
         * If q->n_window is smaller than max_tfd_queue_size, there is no need
         * to reserve any queue entries for this purpose.
         */
-       if (q->n_window < trans->mac_cfg->base_params->max_tfd_queue_size)
+       if (q->n_window < trans->mac_cfg->base->max_tfd_queue_size)
                max = q->n_window;
        else
-               max = trans->mac_cfg->base_params->max_tfd_queue_size - 1;
+               max = trans->mac_cfg->base->max_tfd_queue_size - 1;
 
        /*
         * max_tfd_queue_size is a power of 2, so the following is equivalent to
         * modulo by max_tfd_queue_size and is well defined.
         */
        used = (q->write_ptr - q->read_ptr) &
-               (trans->mac_cfg->base_params->max_tfd_queue_size - 1);
+               (trans->mac_cfg->base->max_tfd_queue_size - 1);
 
        if (WARN_ON(used > max))
                return 0;
@@ -1002,7 +1002,7 @@ static int iwl_pcie_txq_alloc_response(struct iwl_trans *trans,
 
        txq->id = qid;
        trans_pcie->txqs.txq[qid] = txq;
-       wr_ptr &= (trans->mac_cfg->base_params->max_tfd_queue_size - 1);
+       wr_ptr &= (trans->mac_cfg->base->max_tfd_queue_size - 1);
 
        /* Place first TFD at index corresponding to start sequence number */
        txq->read_ptr = wr_ptr;
index 3cc47e648492f7d7968db006caea2623e103b561..b6d48fff9c0e829828f481f38e9732e0729a1d0c 100644 (file)
@@ -89,7 +89,7 @@ static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans,
         * 2. NIC is woken up for CMD regardless of shadow outside this function
         * 3. there is a chance that the NIC is asleep
         */
-       if (!trans->mac_cfg->base_params->shadow_reg_enable &&
+       if (!trans->mac_cfg->base->shadow_reg_enable &&
            txq_id != trans->conf.cmd_queue &&
            test_bit(STATUS_TPOWER_PMI, &trans->status)) {
                /*
@@ -124,7 +124,7 @@ void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans)
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        int i;
 
-       for (i = 0; i < trans->mac_cfg->base_params->num_of_queues; i++) {
+       for (i = 0; i < trans->mac_cfg->base->num_of_queues; i++) {
                struct iwl_txq *txq = trans_pcie->txqs.txq[i];
 
                if (!test_bit(i, trans_pcie->txqs.queue_used))
@@ -192,7 +192,7 @@ static void iwl_pcie_clear_cmd_in_flight(struct iwl_trans *trans)
 {
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
 
-       if (!trans->mac_cfg->base_params->apmg_wake_up_wa)
+       if (!trans->mac_cfg->base->apmg_wake_up_wa)
                return;
 
        spin_lock(&trans_pcie->reg_lock);
@@ -456,7 +456,7 @@ static void iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id)
        if (txq->tfds) {
                dma_free_coherent(dev,
                                  trans_pcie->txqs.tfd.size *
-                                 trans->mac_cfg->base_params->max_tfd_queue_size,
+                                 trans->mac_cfg->base->max_tfd_queue_size,
                                  txq->tfds, txq->dma_addr);
                txq->dma_addr = 0;
                txq->tfds = NULL;
@@ -478,7 +478,7 @@ static void iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id)
 void iwl_pcie_tx_start(struct iwl_trans *trans)
 {
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
-       int nq = trans->mac_cfg->base_params->num_of_queues;
+       int nq = trans->mac_cfg->base->num_of_queues;
        int chan;
        u32 reg_val;
        int clear_dwords = (SCD_TRANS_TBL_OFFSET_QUEUE(nq) -
@@ -504,7 +504,7 @@ void iwl_pcie_tx_start(struct iwl_trans *trans)
        /* The chain extension of the SCD doesn't work well. This feature is
         * enabled by default by the HW, so we need to disable it manually.
         */
-       if (trans->mac_cfg->base_params->scd_chain_ext_wa)
+       if (trans->mac_cfg->base->scd_chain_ext_wa)
                iwl_write_prph(trans, SCD_CHAINEXT_EN, 0);
 
        iwl_trans_ac_txq_enable(trans, trans->conf.cmd_queue,
@@ -543,7 +543,7 @@ void iwl_trans_pcie_tx_reset(struct iwl_trans *trans)
        if (WARN_ON_ONCE(trans->mac_cfg->gen2))
                return;
 
-       for (txq_id = 0; txq_id < trans->mac_cfg->base_params->num_of_queues;
+       for (txq_id = 0; txq_id < trans->mac_cfg->base->num_of_queues;
             txq_id++) {
                struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id];
                if (trans->mac_cfg->gen2)
@@ -630,7 +630,7 @@ int iwl_pcie_tx_stop(struct iwl_trans *trans)
                return 0;
 
        /* Unmap DMA from host system and free skb's */
-       for (txq_id = 0; txq_id < trans->mac_cfg->base_params->num_of_queues;
+       for (txq_id = 0; txq_id < trans->mac_cfg->base->num_of_queues;
             txq_id++)
                iwl_pcie_txq_unmap(trans, txq_id);
 
@@ -653,7 +653,7 @@ void iwl_pcie_tx_free(struct iwl_trans *trans)
        /* Tx queues */
        if (trans_pcie->txq_memory) {
                for (txq_id = 0;
-                    txq_id < trans->mac_cfg->base_params->num_of_queues;
+                    txq_id < trans->mac_cfg->base->num_of_queues;
                     txq_id++) {
                        iwl_pcie_txq_free(trans, txq_id);
                        trans_pcie->txqs.txq[txq_id] = NULL;
@@ -692,9 +692,9 @@ void iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq)
                jiffies_to_msecs(txq->wd_timeout),
                txq->read_ptr, txq->write_ptr,
                iwl_read_prph(trans, SCD_QUEUE_RDPTR(txq_id)) &
-                       (trans->mac_cfg->base_params->max_tfd_queue_size - 1),
+                       (trans->mac_cfg->base->max_tfd_queue_size - 1),
                        iwl_read_prph(trans, SCD_QUEUE_WRPTR(txq_id)) &
-                       (trans->mac_cfg->base_params->max_tfd_queue_size - 1),
+                       (trans->mac_cfg->base->max_tfd_queue_size - 1),
                        iwl_read_direct32(trans, FH_TX_TRB_REG(fifo)));
 }
 
@@ -721,7 +721,7 @@ int iwl_pcie_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq,
 {
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        size_t num_entries = trans->mac_cfg->gen2 ?
-               slots_num : trans->mac_cfg->base_params->max_tfd_queue_size;
+               slots_num : trans->mac_cfg->base->max_tfd_queue_size;
        size_t tfd_sz;
        size_t tb0_buf_sz;
        int i;
@@ -805,7 +805,7 @@ static int iwl_pcie_tx_alloc(struct iwl_trans *trans)
        int ret;
        int txq_id, slots_num;
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
-       u16 bc_tbls_size = trans->mac_cfg->base_params->num_of_queues;
+       u16 bc_tbls_size = trans->mac_cfg->base->num_of_queues;
 
        if (WARN_ON(trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_AX210))
                return -EINVAL;
@@ -834,7 +834,7 @@ static int iwl_pcie_tx_alloc(struct iwl_trans *trans)
        }
 
        trans_pcie->txq_memory =
-               kcalloc(trans->mac_cfg->base_params->num_of_queues,
+               kcalloc(trans->mac_cfg->base->num_of_queues,
                        sizeof(struct iwl_txq), GFP_KERNEL);
        if (!trans_pcie->txq_memory) {
                IWL_ERR(trans, "Not enough memory for txq\n");
@@ -843,7 +843,7 @@ static int iwl_pcie_tx_alloc(struct iwl_trans *trans)
        }
 
        /* Alloc and init all Tx queues, including the command queue (#4/#9) */
-       for (txq_id = 0; txq_id < trans->mac_cfg->base_params->num_of_queues;
+       for (txq_id = 0; txq_id < trans->mac_cfg->base->num_of_queues;
             txq_id++) {
                bool cmd_queue = (txq_id == trans->conf.cmd_queue);
 
@@ -902,7 +902,7 @@ int iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq,
                 int slots_num, bool cmd_queue)
 {
        u32 tfd_queue_max_size =
-               trans->mac_cfg->base_params->max_tfd_queue_size;
+               trans->mac_cfg->base->max_tfd_queue_size;
        int ret;
 
        txq->need_update = false;
@@ -960,7 +960,7 @@ int iwl_pcie_tx_init(struct iwl_trans *trans)
        spin_unlock_bh(&trans_pcie->irq_lock);
 
        /* Alloc and init all Tx queues, including the command queue (#4/#9) */
-       for (txq_id = 0; txq_id < trans->mac_cfg->base_params->num_of_queues;
+       for (txq_id = 0; txq_id < trans->mac_cfg->base->num_of_queues;
             txq_id++) {
                bool cmd_queue = (txq_id == trans->conf.cmd_queue);
 
@@ -988,7 +988,7 @@ int iwl_pcie_tx_init(struct iwl_trans *trans)
        }
 
        iwl_set_bits_prph(trans, SCD_GP_CTRL, SCD_GP_CTRL_AUTO_ACTIVE_MODE);
-       if (trans->mac_cfg->base_params->num_of_queues > 20)
+       if (trans->mac_cfg->base->num_of_queues > 20)
                iwl_set_bits_prph(trans, SCD_GP_CTRL,
                                  SCD_GP_CTRL_ENABLE_31_QUEUES);
 
@@ -1009,7 +1009,7 @@ static int iwl_pcie_set_cmd_in_flight(struct iwl_trans *trans,
        if (test_bit(STATUS_TRANS_DEAD, &trans->status))
                return -ENODEV;
 
-       if (!trans->mac_cfg->base_params->apmg_wake_up_wa)
+       if (!trans->mac_cfg->base->apmg_wake_up_wa)
                return 0;
 
        /*
@@ -1087,12 +1087,12 @@ static void iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx)
        idx = iwl_txq_get_cmd_index(txq, idx);
        r = iwl_txq_get_cmd_index(txq, txq->read_ptr);
 
-       if (idx >= trans->mac_cfg->base_params->max_tfd_queue_size ||
+       if (idx >= trans->mac_cfg->base->max_tfd_queue_size ||
            (!iwl_txq_used(txq, idx, txq->read_ptr, txq->write_ptr))) {
                WARN_ONCE(test_bit(txq_id, trans_pcie->txqs.queue_used),
                          "%s: Read index for DMA queue txq id (%d), index %d is out of range [0-%d] %d %d.\n",
                          __func__, txq_id, idx,
-                         trans->mac_cfg->base_params->max_tfd_queue_size,
+                         trans->mac_cfg->base->max_tfd_queue_size,
                          txq->write_ptr, txq->read_ptr);
                return;
        }
@@ -1308,7 +1308,7 @@ static void iwl_trans_pcie_block_txq_ptrs(struct iwl_trans *trans, bool block)
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        int i;
 
-       for (i = 0; i < trans->mac_cfg->base_params->num_of_queues; i++) {
+       for (i = 0; i < trans->mac_cfg->base->num_of_queues; i++) {
                struct iwl_txq *txq = trans_pcie->txqs.txq[i];
 
                if (i == trans->conf.cmd_queue)
@@ -2385,7 +2385,7 @@ void iwl_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
                IWL_ERR(trans,
                        "%s: Read index for txq id (%d), last_to_free %d is out of range [0-%d] %d %d.\n",
                        __func__, txq_id, last_to_free,
-                       trans->mac_cfg->base_params->max_tfd_queue_size,
+                       trans->mac_cfg->base->max_tfd_queue_size,
                        txq_write_ptr, txq_read_ptr);
 
                iwl_op_mode_time_point(trans->op_mode,