Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlegacy: rename remaining IWLs to ILs

Also rename config names IWLWIFI_LEGACY to IWLEGACY

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>

+299 -302
+1 -1
drivers/net/wireless/Makefile
··· 42 42 obj-$(CONFIG_MWL8K) += mwl8k.o 43 43 44 44 obj-$(CONFIG_IWLWIFI) += iwlwifi/ 45 - obj-$(CONFIG_IWLWIFI_LEGACY) += iwlegacy/ 45 + obj-$(CONFIG_IWLEGACY) += iwlegacy/ 46 46 obj-$(CONFIG_RT2X00) += rt2x00/ 47 47 48 48 obj-$(CONFIG_P54_COMMON) += p54/
+13 -13
drivers/net/wireless/iwlegacy/Kconfig
··· 1 - config IWLWIFI_LEGACY 1 + config IWLEGACY 2 2 tristate 3 3 select FW_LOADER 4 4 select NEW_LEDS ··· 7 7 select MAC80211_LEDS 8 8 9 9 menu "Debugging Options" 10 - depends on IWLWIFI_LEGACY 10 + depends on IWLEGACY 11 11 12 - config IWLWIFI_LEGACY_DEBUG 13 - bool "Enable full debugging output in 4965 and 3945 drivers" 14 - depends on IWLWIFI_LEGACY 12 + config IWLEGACY_DEBUG 13 + bool "Enable full debugging output in iwlegacy (iwl 3945/4965) drivers" 14 + depends on IWLEGACY 15 15 ---help--- 16 - This option will enable debug tracing output for the iwlwifilegacy 16 + This option will enable debug tracing output for the iwlegacy 17 17 drivers. 18 18 19 19 This will result in the kernel module being ~100k larger. You can ··· 29 29 % echo 0x43fff > /sys/class/net/wlan0/device/debug_level 30 30 31 31 You can find the list of debug mask values in: 32 - drivers/net/wireless/iwlwifilegacy/iwl-debug.h 32 + drivers/net/wireless/iwlegacy/iwl-debug.h 33 33 34 34 If this is your first time using this driver, you should say Y here 35 35 as the debug information can assist others in helping you resolve 36 36 any problems you may encounter. 37 37 38 - config IWLWIFI_LEGACY_DEBUGFS 39 - bool "4965 and 3945 debugfs support" 40 - depends on IWLWIFI_LEGACY && MAC80211_DEBUGFS 38 + config IWLEGACY_DEBUGFS 39 + bool "iwlegacy (iwl 3945/4965) debugfs support" 40 + depends on IWLEGACY && MAC80211_DEBUGFS 41 41 ---help--- 42 - Enable creation of debugfs files for the iwlwifilegacy drivers. This 42 + Enable creation of debugfs files for the iwlegacy drivers. This 43 43 is a low-impact option that allows getting insight into the 44 44 driver's state at runtime. 45 45 ··· 48 48 config IWL4965 49 49 tristate "Intel Wireless WiFi 4965AGN (iwl4965)" 50 50 depends on PCI && MAC80211 51 - select IWLWIFI_LEGACY 51 + select IWLEGACY 52 52 ---help--- 53 53 This option enables support for 54 54 ··· 76 76 config IWL3945 77 77 tristate "Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)" 78 78 depends on PCI && MAC80211 79 - select IWLWIFI_LEGACY 79 + select IWLEGACY 80 80 ---help--- 81 81 Select to build the driver supporting the: 82 82
+4 -4
drivers/net/wireless/iwlegacy/Makefile
··· 1 - obj-$(CONFIG_IWLWIFI_LEGACY) += iwl-legacy.o 1 + obj-$(CONFIG_IWLEGACY) += iwl-legacy.o 2 2 iwl-legacy-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o 3 3 iwl-legacy-objs += iwl-rx.o iwl-tx.o iwl-sta.o 4 4 iwl-legacy-objs += iwl-scan.o iwl-led.o 5 - iwl-legacy-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-debugfs.o 5 + iwl-legacy-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-debugfs.o 6 6 7 7 iwl-legacy-objs += $(iwl-legacy-m) 8 8 ··· 12 12 iwl4965-objs += iwl-4965-ucode.o iwl-4965-tx.o 13 13 iwl4965-objs += iwl-4965-lib.o iwl-4965-rx.o iwl-4965-calib.o 14 14 iwl4965-objs += iwl-4965-sta.o iwl-4965-eeprom.o 15 - iwl4965-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-4965-debugfs.o 15 + iwl4965-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-4965-debugfs.o 16 16 17 17 # 3945 18 18 obj-$(CONFIG_IWL3945) += iwl3945.o 19 19 iwl3945-objs := iwl3945-base.o iwl-3945.o iwl-3945-rs.o iwl-3945-led.o 20 - iwl3945-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-3945-debugfs.o 20 + iwl3945-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-3945-debugfs.o 21 21 22 22 ccflags-y += -D__CHECK_ENDIAN__
+1 -1
drivers/net/wireless/iwlegacy/iwl-3945-debugfs.h
··· 30 30 #include "iwl-core.h" 31 31 #include "iwl-debug.h" 32 32 33 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 33 + #ifdef CONFIG_IWLEGACY_DEBUGFS 34 34 ssize_t il3945_ucode_rx_stats_read(struct file *file, char __user *user_buf, 35 35 size_t count, loff_t *ppos); 36 36 ssize_t il3945_ucode_tx_stats_read(struct file *file, char __user *user_buf,
+17 -17
drivers/net/wireless/iwlegacy/iwl-3945-hw.h
··· 72 72 #include "iwl-eeprom.h" 73 73 74 74 /* RSSI to dBm */ 75 - #define IWL39_RSSI_OFFSET 95 75 + #define IL39_RSSI_OFFSET 95 76 76 77 77 /* 78 78 * EEPROM related constants, enums, and structures. ··· 214 214 u8 reserved16[172]; /* fill out to full 1024 byte block */ 215 215 } __packed; 216 216 217 - #define IWL3945_EEPROM_IMG_SIZE 1024 217 + #define IL3945_EEPROM_IMG_SIZE 1024 218 218 219 219 /* End of EEPROM */ 220 220 ··· 222 222 #define PCI_CFG_REV_ID_BIT_RTP (0x80) /* bit 7 */ 223 223 224 224 /* 4 DATA + 1 CMD. There are 2 HCCA queues that are not used. */ 225 - #define IWL39_NUM_QUEUES 5 226 - #define IWL39_CMD_QUEUE_NUM 4 225 + #define IL39_NUM_QUEUES 5 226 + #define IL39_CMD_QUEUE_NUM 4 227 227 228 228 #define IL_DEFAULT_TX_RETRY 15 229 229 ··· 245 245 246 246 /* Sizes and addresses for instruction and data memory (SRAM) in 247 247 * 3945's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ 248 - #define IWL39_RTC_INST_LOWER_BOUND (0x000000) 249 - #define IWL39_RTC_INST_UPPER_BOUND (0x014000) 248 + #define IL39_RTC_INST_LOWER_BOUND (0x000000) 249 + #define IL39_RTC_INST_UPPER_BOUND (0x014000) 250 250 251 - #define IWL39_RTC_DATA_LOWER_BOUND (0x800000) 252 - #define IWL39_RTC_DATA_UPPER_BOUND (0x808000) 251 + #define IL39_RTC_DATA_LOWER_BOUND (0x800000) 252 + #define IL39_RTC_DATA_UPPER_BOUND (0x808000) 253 253 254 - #define IWL39_RTC_INST_SIZE (IWL39_RTC_INST_UPPER_BOUND - \ 255 - IWL39_RTC_INST_LOWER_BOUND) 256 - #define IWL39_RTC_DATA_SIZE (IWL39_RTC_DATA_UPPER_BOUND - \ 257 - IWL39_RTC_DATA_LOWER_BOUND) 254 + #define IL39_RTC_INST_SIZE (IL39_RTC_INST_UPPER_BOUND - \ 255 + IL39_RTC_INST_LOWER_BOUND) 256 + #define IL39_RTC_DATA_SIZE (IL39_RTC_DATA_UPPER_BOUND - \ 257 + IL39_RTC_DATA_LOWER_BOUND) 258 258 259 - #define IWL39_MAX_INST_SIZE IWL39_RTC_INST_SIZE 260 - #define IWL39_MAX_DATA_SIZE IWL39_RTC_DATA_SIZE 259 + #define IL39_MAX_INST_SIZE IL39_RTC_INST_SIZE 260 + #define IL39_MAX_DATA_SIZE IL39_RTC_DATA_SIZE 261 261 262 262 /* Size of uCode instruction memory in bootstrap state machine */ 263 - #define IWL39_MAX_BSM_SIZE IWL39_RTC_INST_SIZE 263 + #define IL39_MAX_BSM_SIZE IL39_RTC_INST_SIZE 264 264 265 265 static inline int il3945_hw_valid_rtc_data_addr(u32 addr) 266 266 { 267 - return (addr >= IWL39_RTC_DATA_LOWER_BOUND && 268 - addr < IWL39_RTC_DATA_UPPER_BOUND); 267 + return (addr >= IL39_RTC_DATA_LOWER_BOUND && 268 + addr < IL39_RTC_DATA_UPPER_BOUND); 269 269 } 270 270 271 271 /* Base physical address of il3945_shared is provided to FH_TSSR_CBB_BASE
+1 -1
drivers/net/wireless/iwlegacy/iwl-3945-rs.c
··· 90 90 #define IL_RATE_MAX_WINDOW 62 91 91 #define IL_RATE_FLUSH (3*HZ) 92 92 #define IL_RATE_WIN_FLUSH (HZ/2) 93 - #define IWL39_RATE_HIGH_TH 11520 93 + #define IL39_RATE_HIGH_TH 11520 94 94 #define IL_SUCCESS_UP_TH 8960 95 95 #define IL_SUCCESS_DOWN_TH 10880 96 96 #define IL_RATE_MIN_FAILURE_TH 6
+26 -26
drivers/net/wireless/iwlegacy/iwl-3945.c
··· 200 200 return -1; 201 201 } 202 202 203 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 203 + #ifdef CONFIG_IWLEGACY_DEBUG 204 204 #define TX_STATUS_ENTRY(x) case TX_3945_STATUS_FAIL_ ## x: return #x 205 205 206 206 static const char *il3945_get_tx_fail_reason(u32 status) ··· 281 281 struct il_queue *q = &txq->q; 282 282 struct il_tx_info *tx_info; 283 283 284 - BUG_ON(txq_id == IWL39_CMD_QUEUE_NUM); 284 + BUG_ON(txq_id == IL39_CMD_QUEUE_NUM); 285 285 286 286 for (index = il_queue_inc_wrap(index, q->n_bd); 287 287 q->read_ptr != index; ··· 294 294 } 295 295 296 296 if (il_queue_space(q) > q->low_mark && txq_id >= 0 && 297 - txq_id != IWL39_CMD_QUEUE_NUM && il->mac80211_registered) 297 + txq_id != IL39_CMD_QUEUE_NUM && il->mac80211_registered) 298 298 il_wake_queue(il, txq); 299 299 } 300 300 ··· 361 361 * RX handler implementations 362 362 * 363 363 *****************************************************************************/ 364 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 364 + #ifdef CONFIG_IWLEGACY_DEBUGFS 365 365 static void il3945_accumulative_statistics(struct il_priv *il, 366 366 __le32 *stats) 367 367 { ··· 403 403 D_RX("Statistics notification received (%d vs %d).\n", 404 404 (int)sizeof(struct il3945_notif_statistics), 405 405 le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK); 406 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 406 + #ifdef CONFIG_IWLEGACY_DEBUGFS 407 407 il3945_accumulative_statistics(il, (__le32 *)&pkt->u.raw); 408 408 #endif 409 409 ··· 417 417 __le32 *flag = (__le32 *)&pkt->u.raw; 418 418 419 419 if (le32_to_cpu(*flag) & UCODE_STATISTICS_CLEAR_MSK) { 420 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 420 + #ifdef CONFIG_IWLEGACY_DEBUGFS 421 421 memset(&il->_3945.accum_statistics, 0, 422 422 sizeof(struct il3945_notif_statistics)); 423 423 memset(&il->_3945.delta_statistics, 0, ··· 468 468 __le16 fc = hdr->frame_control; 469 469 470 470 /* We received data from the HW, so stop the watchdog */ 471 - if (unlikely(len + IWL39_RX_FRAME_SIZE > 471 + if (unlikely(len + IL39_RX_FRAME_SIZE > 472 472 PAGE_SIZE << il->hw_params.rx_page_order)) { 473 473 D_DROP("Corruption detected!\n"); 474 474 return; ··· 552 552 553 553 554 554 /* Convert 3945's rssi indicator to dBm */ 555 - rx_status.signal = rx_stats->rssi - IWL39_RSSI_OFFSET; 555 + rx_status.signal = rx_stats->rssi - IL39_RSSI_OFFSET; 556 556 557 557 D_STATS("Rssi %d sig_avg %d noise_diff %d\n", 558 558 rx_status.signal, rx_stats_sig_avg, ··· 698 698 data_retry_limit = IL_DEFAULT_TX_RETRY; 699 699 tx_cmd->data_retry_limit = data_retry_limit; 700 700 701 - if (tx_id >= IWL39_CMD_QUEUE_NUM) 701 + if (tx_id >= IL39_CMD_QUEUE_NUM) 702 702 rts_retry_limit = 3; 703 703 else 704 704 rts_retry_limit = 7; ··· 849 849 850 850 /* Tx queue(s) */ 851 851 for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) { 852 - slots_num = (txq_id == IWL39_CMD_QUEUE_NUM) ? 852 + slots_num = (txq_id == IL39_CMD_QUEUE_NUM) ? 853 853 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; 854 854 rc = il_tx_queue_init(il, &il->txq[txq_id], 855 855 slots_num, txq_id); ··· 1010 1010 if (il->txq) 1011 1011 for (txq_id = 0; txq_id < il->hw_params.max_txq_num; 1012 1012 txq_id++) 1013 - if (txq_id == IWL39_CMD_QUEUE_NUM) 1013 + if (txq_id == IL39_CMD_QUEUE_NUM) 1014 1014 il_cmd_queue_free(il); 1015 1015 else 1016 1016 il_tx_queue_free(il, txq_id); ··· 1402 1402 /* fill cmd with power settings for all rates for current channel */ 1403 1403 /* Fill OFDM rate */ 1404 1404 for (rate_idx = IL_FIRST_OFDM_RATE, i = 0; 1405 - rate_idx <= IWL39_LAST_OFDM_RATE; rate_idx++, i++) { 1405 + rate_idx <= IL39_LAST_OFDM_RATE; rate_idx++, i++) { 1406 1406 1407 1407 txpower.power[i].tpc = ch_info->power_info[i].tpc; 1408 1408 txpower.power[i].rate = il3945_rates[rate_idx].plcp; ··· 2400 2400 il->hw_params.rx_page_order = get_order(IL_RX_BUF_SIZE_3K); 2401 2401 il->hw_params.max_rxq_size = RX_QUEUE_SIZE; 2402 2402 il->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; 2403 - il->hw_params.max_stations = IWL3945_STATION_COUNT; 2404 - il->contexts[IL_RXON_CTX_BSS].bcast_sta_id = IWL3945_BROADCAST_ID; 2403 + il->hw_params.max_stations = IL3945_STATION_COUNT; 2404 + il->contexts[IL_RXON_CTX_BSS].bcast_sta_id = IL3945_BROADCAST_ID; 2405 2405 2406 2406 il->sta_key_max_num = STA_KEY_MAX_NUM; 2407 2407 2408 2408 il->hw_params.rx_wrt_ptr_reg = FH39_RSCSR_CHNL0_WPTR; 2409 - il->hw_params.max_beacon_itrvl = IWL39_MAX_UCODE_BEACON_INTERVAL; 2410 - il->hw_params.beacon_time_tsf_bits = IWL3945_EXT_BEACON_TIME_POS; 2409 + il->hw_params.max_beacon_itrvl = IL39_MAX_UCODE_BEACON_INTERVAL; 2410 + il->hw_params.beacon_time_tsf_bits = IL3945_EXT_BEACON_TIME_POS; 2411 2411 2412 2412 return 0; 2413 2413 } ··· 2569 2569 D_INFO("Begin load bsm\n"); 2570 2570 2571 2571 /* make sure bootstrap program is no larger than BSM's SRAM size */ 2572 - if (len > IWL39_MAX_BSM_SIZE) 2572 + if (len > IL39_MAX_BSM_SIZE) 2573 2573 return -EINVAL; 2574 2574 2575 2575 /* Tell bootstrap uCode where to find the "Initialize" uCode ··· 2601 2601 /* Tell BSM to copy from BSM SRAM into instruction SRAM, when asked */ 2602 2602 il_wr_prph(il, BSM_WR_MEM_SRC_REG, 0x0); 2603 2603 il_wr_prph(il, BSM_WR_MEM_DST_REG, 2604 - IWL39_RTC_INST_LOWER_BOUND); 2604 + IL39_RTC_INST_LOWER_BOUND); 2605 2605 il_wr_prph(il, BSM_WR_DWCOUNT_REG, len / sizeof(u32)); 2606 2606 2607 2607 /* Load bootstrap code into instruction SRAM now, ··· 2692 2692 }; 2693 2693 2694 2694 static struct il_base_params il3945_base_params = { 2695 - .eeprom_size = IWL3945_EEPROM_IMG_SIZE, 2696 - .num_of_queues = IWL39_NUM_QUEUES, 2695 + .eeprom_size = IL3945_EEPROM_IMG_SIZE, 2696 + .num_of_queues = IL39_NUM_QUEUES, 2697 2697 .pll_cfg_val = CSR39_ANA_PLL_CFG_VAL, 2698 2698 .set_l0s = false, 2699 2699 .use_bsm = true, ··· 2703 2703 2704 2704 static struct il_cfg il3945_bg_cfg = { 2705 2705 .name = "3945BG", 2706 - .fw_name_pre = IWL3945_FW_PRE, 2707 - .ucode_api_max = IWL3945_UCODE_API_MAX, 2708 - .ucode_api_min = IWL3945_UCODE_API_MIN, 2706 + .fw_name_pre = IL3945_FW_PRE, 2707 + .ucode_api_max = IL3945_UCODE_API_MAX, 2708 + .ucode_api_min = IL3945_UCODE_API_MIN, 2709 2709 .sku = IL_SKU_G, 2710 2710 .eeprom_ver = EEPROM_3945_EEPROM_VERSION, 2711 2711 .ops = &il3945_ops, ··· 2716 2716 2717 2717 static struct il_cfg il3945_abg_cfg = { 2718 2718 .name = "3945ABG", 2719 - .fw_name_pre = IWL3945_FW_PRE, 2720 - .ucode_api_max = IWL3945_UCODE_API_MAX, 2721 - .ucode_api_min = IWL3945_UCODE_API_MIN, 2719 + .fw_name_pre = IL3945_FW_PRE, 2720 + .ucode_api_max = IL3945_UCODE_API_MAX, 2721 + .ucode_api_min = IL3945_UCODE_API_MIN, 2722 2722 .sku = IL_SKU_A|IL_SKU_G, 2723 2723 .eeprom_ver = EEPROM_3945_EEPROM_VERSION, 2724 2724 .ops = &il3945_ops,
+5 -5
drivers/net/wireless/iwlegacy/iwl-3945.h
··· 49 49 #include "iwl-led.h" 50 50 51 51 /* Highest firmware API version supported */ 52 - #define IWL3945_UCODE_API_MAX 2 52 + #define IL3945_UCODE_API_MAX 2 53 53 54 54 /* Lowest firmware API version supported */ 55 - #define IWL3945_UCODE_API_MIN 1 55 + #define IL3945_UCODE_API_MIN 1 56 56 57 - #define IWL3945_FW_PRE "iwlwifi-3945-" 58 - #define _IWL3945_MODULE_FIRMWARE(api) IWL3945_FW_PRE #api ".ucode" 59 - #define IWL3945_MODULE_FIRMWARE(api) _IWL3945_MODULE_FIRMWARE(api) 57 + #define IL3945_FW_PRE "iwlwifi-3945-" 58 + #define _IL3945_MODULE_FIRMWARE(api) IL3945_FW_PRE #api ".ucode" 59 + #define IL3945_MODULE_FIRMWARE(api) _IL3945_MODULE_FIRMWARE(api) 60 60 61 61 /* Default noise level to report when noise measurement is not available. 62 62 * This may be because we're:
+1 -1
drivers/net/wireless/iwlegacy/iwl-4965-debugfs.h
··· 30 30 #include "iwl-core.h" 31 31 #include "iwl-debug.h" 32 32 33 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 33 + #ifdef CONFIG_IWLEGACY_DEBUGFS 34 34 ssize_t il4965_ucode_rx_stats_read(struct file *file, char __user *user_buf, 35 35 size_t count, loff_t *ppos); 36 36 ssize_t il4965_ucode_tx_stats_read(struct file *file, char __user *user_buf,
+23 -23
drivers/net/wireless/iwlegacy/iwl-4965-hw.h
··· 72 72 #include "iwl-fh.h" 73 73 74 74 /* EEPROM */ 75 - #define IWL4965_EEPROM_IMG_SIZE 1024 75 + #define IL4965_EEPROM_IMG_SIZE 1024 76 76 77 77 /* 78 78 * uCode queue management definitions ... 79 79 * The first queue used for block-ack aggregation is #7 (4965 only). 80 80 * All block-ack aggregation queues should map to Tx DMA/FIFO channel 7. 81 81 */ 82 - #define IWL49_FIRST_AMPDU_QUEUE 7 82 + #define IL49_FIRST_AMPDU_QUEUE 7 83 83 84 84 /* Sizes and addresses for instruction and data memory (SRAM) in 85 85 * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ 86 - #define IWL49_RTC_INST_LOWER_BOUND (0x000000) 87 - #define IWL49_RTC_INST_UPPER_BOUND (0x018000) 86 + #define IL49_RTC_INST_LOWER_BOUND (0x000000) 87 + #define IL49_RTC_INST_UPPER_BOUND (0x018000) 88 88 89 - #define IWL49_RTC_DATA_LOWER_BOUND (0x800000) 90 - #define IWL49_RTC_DATA_UPPER_BOUND (0x80A000) 89 + #define IL49_RTC_DATA_LOWER_BOUND (0x800000) 90 + #define IL49_RTC_DATA_UPPER_BOUND (0x80A000) 91 91 92 - #define IWL49_RTC_INST_SIZE (IWL49_RTC_INST_UPPER_BOUND - \ 93 - IWL49_RTC_INST_LOWER_BOUND) 94 - #define IWL49_RTC_DATA_SIZE (IWL49_RTC_DATA_UPPER_BOUND - \ 95 - IWL49_RTC_DATA_LOWER_BOUND) 92 + #define IL49_RTC_INST_SIZE (IL49_RTC_INST_UPPER_BOUND - \ 93 + IL49_RTC_INST_LOWER_BOUND) 94 + #define IL49_RTC_DATA_SIZE (IL49_RTC_DATA_UPPER_BOUND - \ 95 + IL49_RTC_DATA_LOWER_BOUND) 96 96 97 - #define IWL49_MAX_INST_SIZE IWL49_RTC_INST_SIZE 98 - #define IWL49_MAX_DATA_SIZE IWL49_RTC_DATA_SIZE 97 + #define IL49_MAX_INST_SIZE IL49_RTC_INST_SIZE 98 + #define IL49_MAX_DATA_SIZE IL49_RTC_DATA_SIZE 99 99 100 100 /* Size of uCode instruction memory in bootstrap state machine */ 101 - #define IWL49_MAX_BSM_SIZE BSM_SRAM_SIZE 101 + #define IL49_MAX_BSM_SIZE BSM_SRAM_SIZE 102 102 103 103 static inline int il4965_hw_valid_rtc_data_addr(u32 addr) 104 104 { 105 - return (addr >= IWL49_RTC_DATA_LOWER_BOUND && 106 - addr < IWL49_RTC_DATA_UPPER_BOUND); 105 + return (addr >= IL49_RTC_DATA_LOWER_BOUND && 106 + addr < IL49_RTC_DATA_UPPER_BOUND); 107 107 } 108 108 109 109 /********************* START TEMPERATURE *************************************/ ··· 760 760 * up to 7 DMA channels (FIFOs). Each Tx queue is supported by a circular array 761 761 * in DRAM containing 256 Transmit Frame Descriptors (TFDs). 762 762 */ 763 - #define IWL49_NUM_FIFOS 7 764 - #define IWL49_CMD_FIFO_NUM 4 765 - #define IWL49_NUM_QUEUES 16 766 - #define IWL49_NUM_AMPDU_QUEUES 8 763 + #define IL49_NUM_FIFOS 7 764 + #define IL49_CMD_FIFO_NUM 4 765 + #define IL49_NUM_QUEUES 16 766 + #define IL49_NUM_AMPDU_QUEUES 8 767 767 768 768 769 769 /** ··· 790 790 } __packed; 791 791 792 792 793 - #define IWL4965_RTC_INST_LOWER_BOUND (0x000000) 793 + #define IL4965_RTC_INST_LOWER_BOUND (0x000000) 794 794 795 795 /* RSSI to dBm */ 796 - #define IWL4965_RSSI_OFFSET 44 796 + #define IL4965_RSSI_OFFSET 44 797 797 798 798 /* PCI registers */ 799 799 #define PCI_CFG_RETRY_TIMEOUT 0x041 ··· 802 802 #define PCI_CFG_LINK_CTRL_VAL_L0S_EN 0x01 803 803 #define PCI_CFG_LINK_CTRL_VAL_L1_EN 0x02 804 804 805 - #define IWL4965_DEFAULT_TX_RETRY 15 805 + #define IL4965_DEFAULT_TX_RETRY 15 806 806 807 807 /* EEPROM */ 808 - #define IWL4965_FIRST_AMPDU_QUEUE 10 808 + #define IL4965_FIRST_AMPDU_QUEUE 10 809 809 810 810 811 811 #endif /* !__il_4965_hw_h__ */
+7 -7
drivers/net/wireless/iwlegacy/iwl-4965-lib.c
··· 438 438 * contents are always there, not configurable by host. */ 439 439 struct il4965_rx_non_cfg_phy *ncphy = 440 440 (struct il4965_rx_non_cfg_phy *)rx_resp->non_cfg_phy_buf; 441 - u32 agc = (le16_to_cpu(ncphy->agc_info) & IWL49_AGC_DB_MASK) 442 - >> IWL49_AGC_DB_POS; 441 + u32 agc = (le16_to_cpu(ncphy->agc_info) & IL49_AGC_DB_MASK) 442 + >> IL49_AGC_DB_POS; 443 443 444 444 u32 valid_antennae = 445 - (le16_to_cpu(rx_resp->phy_flags) & IWL49_RX_PHY_FLAGS_ANTENNAE_MASK) 446 - >> IWL49_RX_PHY_FLAGS_ANTENNAE_OFFSET; 445 + (le16_to_cpu(rx_resp->phy_flags) & IL49_RX_PHY_FLAGS_ANTENNAE_MASK) 446 + >> IL49_RX_PHY_FLAGS_ANTENNAE_OFFSET; 447 447 u8 max_rssi = 0; 448 448 u32 i; 449 449 ··· 462 462 463 463 /* dBm = max_rssi dB - agc dB - constant. 464 464 * Higher AGC (higher radio gain) means lower signal. */ 465 - return max_rssi - agc - IWL4965_RSSI_OFFSET; 465 + return max_rssi - agc - IL4965_RSSI_OFFSET; 466 466 } 467 467 468 468 ··· 1152 1152 int il4965_dump_fh(struct il_priv *il, char **buf, bool display) 1153 1153 { 1154 1154 int i; 1155 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1155 + #ifdef CONFIG_IWLEGACY_DEBUG 1156 1156 int pos = 0; 1157 1157 size_t bufsz = 0; 1158 1158 #endif ··· 1167 1167 FH_TSSR_TX_STATUS_REG, 1168 1168 FH_TSSR_TX_ERROR_REG 1169 1169 }; 1170 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1170 + #ifdef CONFIG_IWLEGACY_DEBUG 1171 1171 if (display) { 1172 1172 bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; 1173 1173 *buf = kmalloc(bufsz, GFP_KERNEL);
+2 -2
drivers/net/wireless/iwlegacy/iwl-4965-rs.c
··· 40 40 #include "iwl-core.h" 41 41 #include "iwl-4965.h" 42 42 43 - #define IWL4965_RS_NAME "iwl-4965-rs" 43 + #define IL4965_RS_NAME "iwl-4965-rs" 44 44 45 45 #define NUM_TRY_BEFORE_ANT_TOGGLE 1 46 46 #define IL_NUMBER_TRY 1 ··· 2837 2837 } 2838 2838 static struct rate_control_ops rs_4965_ops = { 2839 2839 .module = NULL, 2840 - .name = IWL4965_RS_NAME, 2840 + .name = IL4965_RS_NAME, 2841 2841 .tx_status = il4965_rs_tx_status, 2842 2842 .get_rate = il4965_rs_get_rate, 2843 2843 .rate_init = il4965_rs_rate_init_stub,
+3 -3
drivers/net/wireless/iwlegacy/iwl-4965-rx.c
··· 105 105 last_rx_noise); 106 106 } 107 107 108 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 108 + #ifdef CONFIG_IWLEGACY_DEBUGFS 109 109 /* 110 110 * based on the assumption of all statistics counter are in DWORD 111 111 * FIXME: This function is for debugging, do not deal with ··· 169 169 STATISTICS_REPLY_FLG_HT40_MODE_MSK) != 170 170 (pkt->u.stats.flag & 171 171 STATISTICS_REPLY_FLG_HT40_MODE_MSK))); 172 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 172 + #ifdef CONFIG_IWLEGACY_DEBUGFS 173 173 il4965_accumulative_statistics(il, (__le32 *)&pkt->u.stats); 174 174 #endif 175 175 ··· 201 201 struct il_rx_packet *pkt = rxb_addr(rxb); 202 202 203 203 if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) { 204 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 204 + #ifdef CONFIG_IWLEGACY_DEBUGFS 205 205 memset(&il->_4965.accum_statistics, 0, 206 206 sizeof(struct il_notif_statistics)); 207 207 memset(&il->_4965.delta_statistics, 0,
+29 -29
drivers/net/wireless/iwlegacy/iwl-4965-tx.c
··· 171 171 if (ieee80211_is_probe_resp(fc)) 172 172 data_retry_limit = 3; 173 173 else 174 - data_retry_limit = IWL4965_DEFAULT_TX_RETRY; 174 + data_retry_limit = IL4965_DEFAULT_TX_RETRY; 175 175 tx_cmd->data_retry_limit = data_retry_limit; 176 176 177 177 /* Set retry limit on RTS packets */ ··· 304 304 305 305 fc = hdr->frame_control; 306 306 307 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 307 + #ifdef CONFIG_IWLEGACY_DEBUG 308 308 if (ieee80211_is_auth(fc)) 309 309 D_TX("Sending AUTH frame\n"); 310 310 else if (ieee80211_is_assoc_req(fc)) ··· 754 754 /* Simply stop the queue, but don't change any configuration; 755 755 * the SCD_ACT_EN bit is the write-enable mask for the ACTIVE bit. */ 756 756 il_wr_prph(il, 757 - IWL49_SCD_QUEUE_STATUS_BITS(txq_id), 758 - (0 << IWL49_SCD_QUEUE_STTS_REG_POS_ACTIVE)| 759 - (1 << IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN)); 757 + IL49_SCD_QUEUE_STATUS_BITS(txq_id), 758 + (0 << IL49_SCD_QUEUE_STTS_REG_POS_ACTIVE)| 759 + (1 << IL49_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN)); 760 760 } 761 761 762 762 /** ··· 772 772 scd_q2ratid = ra_tid & IL_SCD_QUEUE_RA_TID_MAP_RATID_MSK; 773 773 774 774 tbl_dw_addr = il->scd_base_addr + 775 - IWL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(txq_id); 775 + IL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(txq_id); 776 776 777 777 tbl_dw = il_read_targ_mem(il, tbl_dw_addr); 778 778 ··· 789 789 /** 790 790 * il4965_tx_queue_agg_enable - Set up & enable aggregation for selected queue 791 791 * 792 - * NOTE: txq_id must be greater than IWL49_FIRST_AMPDU_QUEUE, 792 + * NOTE: txq_id must be greater than IL49_FIRST_AMPDU_QUEUE, 793 793 * i.e. it must be one of the higher queues used for aggregation 794 794 */ 795 795 static int il4965_txq_agg_enable(struct il_priv *il, int txq_id, ··· 799 799 u16 ra_tid; 800 800 int ret; 801 801 802 - if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) || 803 - (IWL49_FIRST_AMPDU_QUEUE + 802 + if ((IL49_FIRST_AMPDU_QUEUE > txq_id) || 803 + (IL49_FIRST_AMPDU_QUEUE + 804 804 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) { 805 805 IL_WARN( 806 806 "queue number out of range: %d, must be %d to %d\n", 807 - txq_id, IWL49_FIRST_AMPDU_QUEUE, 808 - IWL49_FIRST_AMPDU_QUEUE + 807 + txq_id, IL49_FIRST_AMPDU_QUEUE, 808 + IL49_FIRST_AMPDU_QUEUE + 809 809 il->cfg->base_params->num_of_ampdu_queues - 1); 810 810 return -EINVAL; 811 811 } ··· 826 826 il4965_tx_queue_set_q2ratid(il, ra_tid, txq_id); 827 827 828 828 /* Set this queue as a chain-building queue */ 829 - il_set_bits_prph(il, IWL49_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 829 + il_set_bits_prph(il, IL49_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 830 830 831 831 /* Place first TFD at index corresponding to start sequence number. 832 832 * Assumes that ssn_idx is valid (!= 0xFFF) */ ··· 836 836 837 837 /* Set up Tx window size and frame limit for this queue */ 838 838 il_write_targ_mem(il, 839 - il->scd_base_addr + IWL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id), 840 - (SCD_WIN_SIZE << IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & 841 - IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); 839 + il->scd_base_addr + IL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id), 840 + (SCD_WIN_SIZE << IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & 841 + IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); 842 842 843 843 il_write_targ_mem(il, il->scd_base_addr + 844 - IWL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id) + sizeof(u32), 845 - (SCD_FRAME_LIMIT << IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) 846 - & IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 844 + IL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id) + sizeof(u32), 845 + (SCD_FRAME_LIMIT << IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) 846 + & IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 847 847 848 - il_set_bits_prph(il, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id)); 848 + il_set_bits_prph(il, IL49_SCD_INTERRUPT_MASK, (1 << txq_id)); 849 849 850 850 /* Set up Status area in SRAM, map to Tx DMA/FIFO, activate the queue */ 851 851 il4965_tx_queue_set_status(il, &il->txq[txq_id], tx_fifo, 1); ··· 922 922 } 923 923 924 924 /** 925 - * txq_id must be greater than IWL49_FIRST_AMPDU_QUEUE 925 + * txq_id must be greater than IL49_FIRST_AMPDU_QUEUE 926 926 * il->lock must be held by the caller 927 927 */ 928 928 static int il4965_txq_agg_disable(struct il_priv *il, u16 txq_id, 929 929 u16 ssn_idx, u8 tx_fifo) 930 930 { 931 - if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) || 932 - (IWL49_FIRST_AMPDU_QUEUE + 931 + if ((IL49_FIRST_AMPDU_QUEUE > txq_id) || 932 + (IL49_FIRST_AMPDU_QUEUE + 933 933 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) { 934 934 IL_WARN( 935 935 "queue number out of range: %d, must be %d to %d\n", 936 - txq_id, IWL49_FIRST_AMPDU_QUEUE, 937 - IWL49_FIRST_AMPDU_QUEUE + 936 + txq_id, IL49_FIRST_AMPDU_QUEUE, 937 + IL49_FIRST_AMPDU_QUEUE + 938 938 il->cfg->base_params->num_of_ampdu_queues - 1); 939 939 return -EINVAL; 940 940 } ··· 942 942 il4965_tx_queue_stop_scheduler(il, txq_id); 943 943 944 944 il_clear_bits_prph(il, 945 - IWL49_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 945 + IL49_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 946 946 947 947 il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); 948 948 il->txq[txq_id].q.write_ptr = (ssn_idx & 0xff); ··· 950 950 il4965_set_wr_ptrs(il, txq_id, ssn_idx); 951 951 952 952 il_clear_bits_prph(il, 953 - IWL49_SCD_INTERRUPT_MASK, (1 << txq_id)); 953 + IL49_SCD_INTERRUPT_MASK, (1 << txq_id)); 954 954 il_txq_ctx_deactivate(il, txq_id); 955 955 il4965_tx_queue_set_status(il, &il->txq[txq_id], tx_fifo, 0); 956 956 ··· 1134 1134 nfreed++; 1135 1135 1136 1136 il4965_tx_status(il, tx_info, 1137 - txq_id >= IWL4965_FIRST_AMPDU_QUEUE); 1137 + txq_id >= IL4965_FIRST_AMPDU_QUEUE); 1138 1138 tx_info->skb = NULL; 1139 1139 1140 1140 il->cfg->ops->lib->txq_free_tfd(il, txq); ··· 1331 1331 spin_unlock_irqrestore(&il->sta_lock, flags); 1332 1332 } 1333 1333 1334 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1334 + #ifdef CONFIG_IWLEGACY_DEBUG 1335 1335 const char *il4965_get_tx_fail_reason(u32 status) 1336 1336 { 1337 1337 #define TX_STATUS_FAIL(x) case TX_STATUS_FAIL_ ## x: return #x ··· 1368 1368 #undef TX_STATUS_FAIL 1369 1369 #undef TX_STATUS_POSTPONE 1370 1370 } 1371 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 1371 + #endif /* CONFIG_IWLEGACY_DEBUG */
+2 -2
drivers/net/wireless/iwlegacy/iwl-4965-ucode.c
··· 62 62 /* NOTE: Use the debugless read so we don't flood kernel log 63 63 * if IL_DL_IO is set */ 64 64 il_wr(il, HBUS_TARG_MEM_RADDR, 65 - i + IWL4965_RTC_INST_LOWER_BOUND); 65 + i + IL4965_RTC_INST_LOWER_BOUND); 66 66 val = _il_rd(il, HBUS_TARG_MEM_RDAT); 67 67 if (val != le32_to_cpu(*image)) { 68 68 ret = -EIO; ··· 90 90 D_INFO("ucode inst image size is %u\n", len); 91 91 92 92 il_wr(il, HBUS_TARG_MEM_RADDR, 93 - IWL4965_RTC_INST_LOWER_BOUND); 93 + IL4965_RTC_INST_LOWER_BOUND); 94 94 95 95 errcnt = 0; 96 96 for (; len > 0; len -= sizeof(u32), image++) {
+21 -21
drivers/net/wireless/iwlegacy/iwl-4965.c
··· 52 52 static int il4965_hw_get_temperature(struct il_priv *il); 53 53 54 54 /* Highest firmware API version supported */ 55 - #define IWL4965_UCODE_API_MAX 2 55 + #define IL4965_UCODE_API_MAX 2 56 56 57 57 /* Lowest firmware API version supported */ 58 - #define IWL4965_UCODE_API_MIN 2 58 + #define IL4965_UCODE_API_MIN 2 59 59 60 - #define IWL4965_FW_PRE "iwlwifi-4965-" 61 - #define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode" 62 - #define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api) 60 + #define IL4965_FW_PRE "iwlwifi-4965-" 61 + #define _IL4965_MODULE_FIRMWARE(api) IL4965_FW_PRE #api ".ucode" 62 + #define IL4965_MODULE_FIRMWARE(api) _IL4965_MODULE_FIRMWARE(api) 63 63 64 64 /* check contents of special bootstrap uCode SRAM */ 65 65 static int il4965_verify_bsm(struct il_priv *il) ··· 142 142 il->ucode_type = UCODE_RT; 143 143 144 144 /* make sure bootstrap program is no larger than BSM's SRAM size */ 145 - if (len > IWL49_MAX_BSM_SIZE) 145 + if (len > IL49_MAX_BSM_SIZE) 146 146 return -EINVAL; 147 147 148 148 /* Tell bootstrap uCode where to find the "Initialize" uCode ··· 174 174 /* Tell BSM to copy from BSM SRAM into instruction SRAM, when asked */ 175 175 il_wr_prph(il, BSM_WR_MEM_SRC_REG, 0x0); 176 176 il_wr_prph(il, 177 - BSM_WR_MEM_DST_REG, IWL49_RTC_INST_LOWER_BOUND); 177 + BSM_WR_MEM_DST_REG, IL49_RTC_INST_LOWER_BOUND); 178 178 il_wr_prph(il, BSM_WR_DWCOUNT_REG, len / sizeof(u32)); 179 179 180 180 /* Load bootstrap code into instruction SRAM now, ··· 392 392 static int il4965_hw_set_hw_params(struct il_priv *il) 393 393 { 394 394 if (il->cfg->mod_params->num_of_queues >= IL_MIN_NUM_QUEUES && 395 - il->cfg->mod_params->num_of_queues <= IWL49_NUM_QUEUES) 395 + il->cfg->mod_params->num_of_queues <= IL49_NUM_QUEUES) 396 396 il->cfg->base_params->num_of_queues = 397 397 il->cfg->mod_params->num_of_queues; 398 398 ··· 402 402 il->cfg->base_params->num_of_queues * 403 403 sizeof(struct il4965_scd_bc_tbl); 404 404 il->hw_params.tfd_size = sizeof(struct il_tfd); 405 - il->hw_params.max_stations = IWL4965_STATION_COUNT; 406 - il->contexts[IL_RXON_CTX_BSS].bcast_sta_id = IWL4965_BROADCAST_ID; 407 - il->hw_params.max_data_size = IWL49_RTC_DATA_SIZE; 408 - il->hw_params.max_inst_size = IWL49_RTC_INST_SIZE; 405 + il->hw_params.max_stations = IL4965_STATION_COUNT; 406 + il->contexts[IL_RXON_CTX_BSS].bcast_sta_id = IL4965_BROADCAST_ID; 407 + il->hw_params.max_data_size = IL49_RTC_DATA_SIZE; 408 + il->hw_params.max_inst_size = IL49_RTC_INST_SIZE; 409 409 il->hw_params.max_bsm_size = BSM_SRAM_SIZE; 410 410 il->hw_params.ht40_channel = BIT(IEEE80211_BAND_5GHZ); 411 411 ··· 419 419 il4965_set_ct_threshold(il); 420 420 421 421 il->hw_params.sens = &il4965_sensitivity; 422 - il->hw_params.beacon_time_tsf_bits = IWL4965_EXT_BEACON_TIME_POS; 422 + il->hw_params.beacon_time_tsf_bits = IL4965_EXT_BEACON_TIME_POS; 423 423 424 424 return 0; 425 425 } ··· 2143 2143 }; 2144 2144 2145 2145 static struct il_base_params il4965_base_params = { 2146 - .eeprom_size = IWL4965_EEPROM_IMG_SIZE, 2147 - .num_of_queues = IWL49_NUM_QUEUES, 2148 - .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, 2146 + .eeprom_size = IL4965_EEPROM_IMG_SIZE, 2147 + .num_of_queues = IL49_NUM_QUEUES, 2148 + .num_of_ampdu_queues = IL49_NUM_AMPDU_QUEUES, 2149 2149 .pll_cfg_val = 0, 2150 2150 .set_l0s = true, 2151 2151 .use_bsm = true, 2152 2152 .led_compensation = 61, 2153 - .chain_noise_num_beacons = IWL4965_CAL_NUM_BEACONS, 2153 + .chain_noise_num_beacons = IL4965_CAL_NUM_BEACONS, 2154 2154 .wd_timeout = IL_DEF_WD_TIMEOUT, 2155 2155 .temperature_kelvin = true, 2156 2156 .ucode_tracing = true, ··· 2160 2160 2161 2161 struct il_cfg il4965_cfg = { 2162 2162 .name = "Intel(R) Wireless WiFi Link 4965AGN", 2163 - .fw_name_pre = IWL4965_FW_PRE, 2164 - .ucode_api_max = IWL4965_UCODE_API_MAX, 2165 - .ucode_api_min = IWL4965_UCODE_API_MIN, 2163 + .fw_name_pre = IL4965_FW_PRE, 2164 + .ucode_api_max = IL4965_UCODE_API_MAX, 2165 + .ucode_api_min = IL4965_UCODE_API_MIN, 2166 2166 .sku = IL_SKU_A|IL_SKU_G|IL_SKU_N, 2167 2167 .valid_tx_ant = ANT_AB, 2168 2168 .valid_rx_ant = ANT_ABC, ··· 2180 2180 }; 2181 2181 2182 2182 /* Module firmware */ 2183 - MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); 2183 + MODULE_FIRMWARE(IL4965_MODULE_FIRMWARE(IL4965_UCODE_API_MAX));
+1 -1
drivers/net/wireless/iwlegacy/iwl-4965.h
··· 189 189 /* hcmd */ 190 190 int il4965_send_beacon_cmd(struct il_priv *il); 191 191 192 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 192 + #ifdef CONFIG_IWLEGACY_DEBUG 193 193 const char *il4965_get_tx_fail_reason(u32 status); 194 194 #else 195 195 static inline const char *
+12 -12
drivers/net/wireless/iwlegacy/iwl-commands.h
··· 746 746 747 747 #define IL_CONN_MAX_LISTEN_INTERVAL 10 748 748 #define IL_MAX_UCODE_BEACON_INTERVAL 4 /* 4096 */ 749 - #define IWL39_MAX_UCODE_BEACON_INTERVAL 1 /* 1024 */ 749 + #define IL39_MAX_UCODE_BEACON_INTERVAL 1 /* 1024 */ 750 750 751 751 /* 752 752 * REPLY_RXON_TIMING = 0x14 (command, has simple generic response) ··· 854 854 /* Special, dedicated locations within device's station table */ 855 855 #define IL_AP_ID 0 856 856 #define IL_STA_ID 2 857 - #define IWL3945_BROADCAST_ID 24 858 - #define IWL3945_STATION_COUNT 25 859 - #define IWL4965_BROADCAST_ID 31 860 - #define IWL4965_STATION_COUNT 32 857 + #define IL3945_BROADCAST_ID 24 858 + #define IL3945_STATION_COUNT 25 859 + #define IL4965_BROADCAST_ID 31 860 + #define IL4965_STATION_COUNT 32 861 861 862 862 #define IL_STATION_COUNT 32 /* MAX(3945,4965)*/ 863 863 #define IL_INVALID_STATION 255 ··· 1208 1208 struct il3945_rx_frame_end end; 1209 1209 } __packed; 1210 1210 1211 - #define IWL39_RX_FRAME_SIZE (4 + sizeof(struct il3945_rx_frame)) 1211 + #define IL39_RX_FRAME_SIZE (4 + sizeof(struct il3945_rx_frame)) 1212 1212 1213 1213 /* Fixed (non-configurable) rx data from phy */ 1214 1214 1215 - #define IWL49_RX_RES_PHY_CNT 14 1216 - #define IWL49_RX_PHY_FLAGS_ANTENNAE_OFFSET (4) 1217 - #define IWL49_RX_PHY_FLAGS_ANTENNAE_MASK (0x70) 1218 - #define IWL49_AGC_DB_MASK (0x3f80) /* MASK(7,13) */ 1219 - #define IWL49_AGC_DB_POS (7) 1215 + #define IL49_RX_RES_PHY_CNT 14 1216 + #define IL49_RX_PHY_FLAGS_ANTENNAE_OFFSET (4) 1217 + #define IL49_RX_PHY_FLAGS_ANTENNAE_MASK (0x70) 1218 + #define IL49_AGC_DB_MASK (0x3f80) /* MASK(7,13) */ 1219 + #define IL49_AGC_DB_POS (7) 1220 1220 struct il4965_rx_non_cfg_phy { 1221 1221 __le16 ant_selection; /* ant A bit 4, ant B bit 5, ant C bit 6 */ 1222 1222 __le16 agc_info; /* agc code 0:6, agc dB 7:13, reserved 14:15 */ ··· 2407 2407 } __packed; 2408 2408 2409 2409 /* set number of direct probes u8 type */ 2410 - #define IWL39_SCAN_PROBE_MASK(n) ((BIT(n) | (BIT(n) - BIT(1)))) 2410 + #define IL39_SCAN_PROBE_MASK(n) ((BIT(n) | (BIT(n) - BIT(1)))) 2411 2411 2412 2412 struct il_scan_channel { 2413 2413 /*
+7 -7
drivers/net/wireless/iwlegacy/iwl-core.c
··· 315 315 if (ht_cap && !ht_cap->ht_supported) 316 316 return false; 317 317 318 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 318 + #ifdef CONFIG_IWLEGACY_DEBUGFS 319 319 if (il->disable_ht40) 320 320 return false; 321 321 #endif ··· 888 888 } 889 889 EXPORT_SYMBOL(il_rx_csa); 890 890 891 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 891 + #ifdef CONFIG_IWLEGACY_DEBUG 892 892 void il_print_rx_config_cmd(struct il_priv *il, 893 893 struct il_rxon_context *ctx) 894 894 { ··· 930 930 il->cfg->ops->lib->dump_nic_error_log(il); 931 931 if (il->cfg->ops->lib->dump_fh) 932 932 il->cfg->ops->lib->dump_fh(il, NULL, false); 933 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 933 + #ifdef CONFIG_IWLEGACY_DEBUG 934 934 if (il_get_debug_level(il) & IL_DL_FW_ERRORS) 935 935 il_print_rx_config_cmd(il, 936 936 &il->contexts[IL_RXON_CTX_BSS]); ··· 1208 1208 void il_rx_pm_sleep_notif(struct il_priv *il, 1209 1209 struct il_rx_mem_buffer *rxb) 1210 1210 { 1211 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1211 + #ifdef CONFIG_IWLEGACY_DEBUG 1212 1212 struct il_rx_packet *pkt = rxb_addr(rxb); 1213 1213 struct il_sleep_notification *sleep = &(pkt->u.sleep_notif); 1214 1214 D_RX("sleep mode: %d, src: %d\n", ··· 1467 1467 } 1468 1468 EXPORT_SYMBOL(il_txq_mem); 1469 1469 1470 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 1470 + #ifdef CONFIG_IWLEGACY_DEBUGFS 1471 1471 1472 1472 #define IL_TRAFFIC_DUMP_SIZE (IL_TRAFFIC_ENTRY_SIZE * IL_TRAFFIC_ENTRIES) 1473 1473 ··· 1611 1611 } 1612 1612 1613 1613 /* 1614 - * if CONFIG_IWLWIFI_LEGACY_DEBUGFS defined, 1614 + * if CONFIG_IWLEGACY_DEBUGFS defined, 1615 1615 * il_update_stats function will 1616 1616 * record all the MGMT, CTRL and DATA pkt for both TX and Rx pass 1617 1617 * Use debugFs to display the rx/rx_statistics 1618 - * if CONFIG_IWLWIFI_LEGACY_DEBUGFS not being defined, then no MGMT and CTRL 1618 + * if CONFIG_IWLEGACY_DEBUGFS not being defined, then no MGMT and CTRL 1619 1619 * information will be recorded, but DATA pkt still will be recorded 1620 1620 * for the reason of il_led.c need to control the led blinking based on 1621 1621 * number of tx and rx data.
+2 -2
drivers/net/wireless/iwlegacy/iwl-core.h
··· 329 329 int il_alloc_txq_mem(struct il_priv *il); 330 330 void il_txq_mem(struct il_priv *il); 331 331 332 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 332 + #ifdef CONFIG_IWLEGACY_DEBUGFS 333 333 int il_alloc_traffic_mem(struct il_priv *il); 334 334 void il_free_traffic_mem(struct il_priv *il); 335 335 void il_reset_traffic_log(struct il_priv *il); ··· 513 513 * Error Handling Debugging 514 514 ******************************************************/ 515 515 void il4965_dump_nic_error_log(struct il_priv *il); 516 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 516 + #ifdef CONFIG_IWLEGACY_DEBUG 517 517 void il_print_rx_config_cmd(struct il_priv *il, 518 518 struct il_rxon_context *ctx); 519 519 #else
+5 -5
drivers/net/wireless/iwlegacy/iwl-debug.h
··· 42 42 DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \ 43 43 } while (0) 44 44 45 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 45 + #ifdef CONFIG_IWLEGACY_DEBUG 46 46 #define IL_DBG(level, fmt, args...) \ 47 47 do { \ 48 48 if (il_get_debug_level(il) & level) \ ··· 63 63 static inline void il_print_hex_dump(struct il_priv *il, int level, 64 64 const void *p, u32 len) 65 65 {} 66 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 66 + #endif /* CONFIG_IWLEGACY_DEBUG */ 67 67 68 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 68 + #ifdef CONFIG_IWLEGACY_DEBUGFS 69 69 int il_dbgfs_register(struct il_priv *il, const char *name); 70 70 void il_dbgfs_unregister(struct il_priv *il); 71 71 #else ··· 77 77 static inline void il_dbgfs_unregister(struct il_priv *il) 78 78 { 79 79 } 80 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUGFS */ 80 + #endif /* CONFIG_IWLEGACY_DEBUGFS */ 81 81 82 82 /* 83 83 * To use the debug system: ··· 99 99 * /sys/module/iwl3945/parameters/debug 100 100 * /sys/class/net/wlan0/device/debug_level 101 101 * 102 - * when CONFIG_IWLWIFI_LEGACY_DEBUG=y. 102 + * when CONFIG_IWLEGACY_DEBUG=y. 103 103 */ 104 104 105 105 /* 0x0000000F - 0x00000001 */
+1 -1
drivers/net/wireless/iwlegacy/iwl-debugfs.c
··· 535 535 "\tLast Restarting Code: 0x%X\n", 536 536 il->isr_stats.err_code); 537 537 } 538 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 538 + #ifdef CONFIG_IWLEGACY_DEBUG 539 539 pos += scnprintf(buf + pos, bufsz - pos, "Frame transmitted:\t\t %u\n", 540 540 il->isr_stats.sch); 541 541 pos += scnprintf(buf + pos, bufsz - pos, "Alive interrupt:\t\t %u\n",
+13 -13
drivers/net/wireless/iwlegacy/iwl-dev.h
··· 185 185 s64 last_radar_time; 186 186 }; 187 187 188 - #define IWL4965_MAX_RATE (33) 188 + #define IL4965_MAX_RATE (33) 189 189 190 190 struct il3945_clip_group { 191 191 /* maximum power level to prevent clipping for each rate, derived by ··· 246 246 /* Radio/DSP gain settings for each "normal" data Tx rate. 247 247 * These include, in addition to RF and DSP gain, a few fields for 248 248 * remembering/modifying gain settings (indexes). */ 249 - struct il3945_channel_power_info power_info[IWL4965_MAX_RATE]; 249 + struct il3945_channel_power_info power_info[IL4965_MAX_RATE]; 250 250 251 251 /* Radio/DSP gain settings for each scan rate, for directed scans. */ 252 252 struct il3945_scan_power_info scan_pwr_info[IL_NUM_SCAN_RATES]; ··· 670 670 671 671 /* Sensitivity and chain noise calibration */ 672 672 #define INITIALIZATION_VALUE 0xFFFF 673 - #define IWL4965_CAL_NUM_BEACONS 20 673 + #define IL4965_CAL_NUM_BEACONS 20 674 674 #define IL_CAL_NUM_BEACONS 16 675 675 #define MAXIMUM_ALLOWED_PATHLOSS 15 676 676 ··· 847 847 }; 848 848 849 849 struct traffic_stats { 850 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 850 + #ifdef CONFIG_IWLEGACY_DEBUGFS 851 851 u32 mgmt[MANAGEMENT_MAX]; 852 852 u32 ctrl[CONTROL_MAX]; 853 853 u32 data_cnt; ··· 891 891 * bits 31:24 - extended 892 892 * bits 23:0 - interval 893 893 */ 894 - #define IWL3945_EXT_BEACON_TIME_POS 24 894 + #define IL3945_EXT_BEACON_TIME_POS 24 895 895 /* 896 896 * for _4965 devices 897 897 * bits 31:22 - extended 898 898 * bits 21:0 - interval 899 899 */ 900 - #define IWL4965_EXT_BEACON_TIME_POS 22 900 + #define IL4965_EXT_BEACON_TIME_POS 22 901 901 902 902 enum il_rxon_context_id { 903 903 IL_RXON_CTX_BSS, ··· 1141 1141 struct delayed_work rfkill_poll; 1142 1142 1143 1143 struct il3945_notif_statistics statistics; 1144 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 1144 + #ifdef CONFIG_IWLEGACY_DEBUGFS 1145 1145 struct il3945_notif_statistics accum_statistics; 1146 1146 struct il3945_notif_statistics delta_statistics; 1147 1147 struct il3945_notif_statistics max_delta; ··· 1179 1179 u8 phy_calib_chain_noise_gain_cmd; 1180 1180 1181 1181 struct il_notif_statistics statistics; 1182 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 1182 + #ifdef CONFIG_IWLEGACY_DEBUGFS 1183 1183 struct il_notif_statistics accum_statistics; 1184 1184 struct il_notif_statistics delta_statistics; 1185 1185 struct il_notif_statistics max_delta; ··· 1217 1217 s8 tx_power_next; 1218 1218 1219 1219 1220 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1220 + #ifdef CONFIG_IWLEGACY_DEBUG 1221 1221 /* debugging info */ 1222 1222 u32 debug_level; /* per device debugging will override global 1223 1223 il_debug_level if set */ 1224 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 1225 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 1224 + #endif /* CONFIG_IWLEGACY_DEBUG */ 1225 + #ifdef CONFIG_IWLEGACY_DEBUGFS 1226 1226 /* debugfs */ 1227 1227 u16 tx_traffic_idx; 1228 1228 u16 rx_traffic_idx; ··· 1231 1231 struct dentry *debugfs_dir; 1232 1232 u32 dbgfs_sram_offset, dbgfs_sram_len; 1233 1233 bool disable_ht40; 1234 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUGFS */ 1234 + #endif /* CONFIG_IWLEGACY_DEBUGFS */ 1235 1235 1236 1236 struct work_struct txpower_work; 1237 1237 u32 disable_sens_cal; ··· 1257 1257 clear_bit(txq_id, &il->txq_ctx_active_msk); 1258 1258 } 1259 1259 1260 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1260 + #ifdef CONFIG_IWLEGACY_DEBUG 1261 1261 /* 1262 1262 * il_get_debug_level: Return active debug level for device 1263 1263 *
+1 -1
drivers/net/wireless/iwlegacy/iwl-hcmd.c
··· 100 100 return; 101 101 } 102 102 103 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 103 + #ifdef CONFIG_IWLEGACY_DEBUG 104 104 switch (cmd->hdr.cmd) { 105 105 case REPLY_TX_LINK_QUALITY_CMD: 106 106 case SENSITIVITY_CMD:
+1 -1
drivers/net/wireless/iwlegacy/iwl-legacy-rs.h
··· 97 97 98 98 enum { 99 99 IL_FIRST_OFDM_RATE = IL_RATE_6M_INDEX, 100 - IWL39_LAST_OFDM_RATE = IL_RATE_54M_INDEX, 100 + IL39_LAST_OFDM_RATE = IL_RATE_54M_INDEX, 101 101 IL_LAST_OFDM_RATE = IL_RATE_60M_INDEX, 102 102 IL_FIRST_CCK_RATE = IL_RATE_1M_INDEX, 103 103 IL_LAST_CCK_RATE = IL_RATE_11M_INDEX,
+29 -29
drivers/net/wireless/iwlegacy/iwl-prph.h
··· 320 320 * can keep track of at one time when creating block-ack chains of frames. 321 321 * Note that "64" matches the number of ack bits in a block-ack packet. 322 322 * Driver should use SCD_WIN_SIZE and SCD_FRAME_LIMIT values to initialize 323 - * IWL49_SCD_CONTEXT_QUEUE_OFFSET(x) values. 323 + * IL49_SCD_CONTEXT_QUEUE_OFFSET(x) values. 324 324 */ 325 325 #define SCD_WIN_SIZE 64 326 326 #define SCD_FRAME_LIMIT 64 327 327 328 328 /* SCD registers are internal, must be accessed via HBUS_TARG_PRPH regs */ 329 - #define IWL49_SCD_START_OFFSET 0xa02c00 329 + #define IL49_SCD_START_OFFSET 0xa02c00 330 330 331 331 /* 332 332 * 4965 tells driver SRAM address for internal scheduler structs via this reg. 333 333 * Value is valid only after "Alive" response from uCode. 334 334 */ 335 - #define IWL49_SCD_SRAM_BASE_ADDR (IWL49_SCD_START_OFFSET + 0x0) 335 + #define IL49_SCD_SRAM_BASE_ADDR (IL49_SCD_START_OFFSET + 0x0) 336 336 337 337 /* 338 338 * Driver may need to update queue-empty bits after changing queue's ··· 343 343 * 15-00: Empty state, one for each queue -- 1: empty, 0: non-empty 344 344 * NOTE: This register is not used by Linux driver. 345 345 */ 346 - #define IWL49_SCD_EMPTY_BITS (IWL49_SCD_START_OFFSET + 0x4) 346 + #define IL49_SCD_EMPTY_BITS (IL49_SCD_START_OFFSET + 0x4) 347 347 348 348 /* 349 349 * Physical base address of array of byte count (BC) circular buffers (CBs). ··· 355 355 * Bit fields: 356 356 * 25-00: Byte Count CB physical address [35:10], must be 1024-byte aligned. 357 357 */ 358 - #define IWL49_SCD_DRAM_BASE_ADDR (IWL49_SCD_START_OFFSET + 0x10) 358 + #define IL49_SCD_DRAM_BASE_ADDR (IL49_SCD_START_OFFSET + 0x10) 359 359 360 360 /* 361 361 * Enables any/all Tx DMA/FIFO channels. ··· 364 364 * Bit fields: 365 365 * 7- 0: Enable (1), disable (0), one bit for each channel 0-7 366 366 */ 367 - #define IWL49_SCD_TXFACT (IWL49_SCD_START_OFFSET + 0x1c) 367 + #define IL49_SCD_TXFACT (IL49_SCD_START_OFFSET + 0x1c) 368 368 /* 369 369 * Queue (x) Write Pointers (indexes, really!), one for each Tx queue. 370 370 * Initialized and updated by driver as new TFDs are added to queue. ··· 372 372 * Start Sequence Number; index = (SSN & 0xff) 373 373 * NOTE: Alternative to HBUS_TARG_WRPTR, which is what Linux driver uses? 374 374 */ 375 - #define IWL49_SCD_QUEUE_WRPTR(x) (IWL49_SCD_START_OFFSET + 0x24 + (x) * 4) 375 + #define IL49_SCD_QUEUE_WRPTR(x) (IL49_SCD_START_OFFSET + 0x24 + (x) * 4) 376 376 377 377 /* 378 378 * Queue (x) Read Pointers (indexes, really!), one for each Tx queue. ··· 380 380 * For Scheduler-ACK mode, index indicates first frame in Tx window. 381 381 * Initialized by driver, updated by scheduler. 382 382 */ 383 - #define IWL49_SCD_QUEUE_RDPTR(x) (IWL49_SCD_START_OFFSET + 0x64 + (x) * 4) 383 + #define IL49_SCD_QUEUE_RDPTR(x) (IL49_SCD_START_OFFSET + 0x64 + (x) * 4) 384 384 385 385 /* 386 386 * Select which queues work in chain mode (1) vs. not (0). ··· 391 391 * NOTE: If driver sets up queue for chain mode, it should be also set up 392 392 * Scheduler-ACK mode as well, via SCD_QUEUE_STATUS_BITS(x). 393 393 */ 394 - #define IWL49_SCD_QUEUECHAIN_SEL (IWL49_SCD_START_OFFSET + 0xd0) 394 + #define IL49_SCD_QUEUECHAIN_SEL (IL49_SCD_START_OFFSET + 0xd0) 395 395 396 396 /* 397 397 * Select which queues interrupt driver when scheduler increments ··· 402 402 * NOTE: This functionality is apparently a no-op; driver relies on interrupts 403 403 * from Rx queue to read Tx command responses and update Tx queues. 404 404 */ 405 - #define IWL49_SCD_INTERRUPT_MASK (IWL49_SCD_START_OFFSET + 0xe4) 405 + #define IL49_SCD_INTERRUPT_MASK (IL49_SCD_START_OFFSET + 0xe4) 406 406 407 407 /* 408 408 * Queue search status registers. One for each queue. ··· 423 423 * NOTE: If enabling Scheduler-ACK mode, chain mode should also be enabled 424 424 * via SCD_QUEUECHAIN_SEL. 425 425 */ 426 - #define IWL49_SCD_QUEUE_STATUS_BITS(x)\ 427 - (IWL49_SCD_START_OFFSET + 0x104 + (x) * 4) 426 + #define IL49_SCD_QUEUE_STATUS_BITS(x)\ 427 + (IL49_SCD_START_OFFSET + 0x104 + (x) * 4) 428 428 429 429 /* Bit field positions */ 430 - #define IWL49_SCD_QUEUE_STTS_REG_POS_ACTIVE (0) 431 - #define IWL49_SCD_QUEUE_STTS_REG_POS_TXF (1) 432 - #define IWL49_SCD_QUEUE_STTS_REG_POS_WSL (5) 433 - #define IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACK (8) 430 + #define IL49_SCD_QUEUE_STTS_REG_POS_ACTIVE (0) 431 + #define IL49_SCD_QUEUE_STTS_REG_POS_TXF (1) 432 + #define IL49_SCD_QUEUE_STTS_REG_POS_WSL (5) 433 + #define IL49_SCD_QUEUE_STTS_REG_POS_SCD_ACK (8) 434 434 435 435 /* Write masks */ 436 - #define IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN (10) 437 - #define IWL49_SCD_QUEUE_STTS_REG_MSK (0x0007FC00) 436 + #define IL49_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN (10) 437 + #define IL49_SCD_QUEUE_STTS_REG_MSK (0x0007FC00) 438 438 439 439 /** 440 440 * 4965 internal SRAM structures for scheduler, shared with driver ... ··· 470 470 * Init must be done after driver receives "Alive" response from 4965 uCode, 471 471 * and when setting up queue for aggregation. 472 472 */ 473 - #define IWL49_SCD_CONTEXT_DATA_OFFSET 0x380 474 - #define IWL49_SCD_CONTEXT_QUEUE_OFFSET(x) \ 475 - (IWL49_SCD_CONTEXT_DATA_OFFSET + ((x) * 8)) 473 + #define IL49_SCD_CONTEXT_DATA_OFFSET 0x380 474 + #define IL49_SCD_CONTEXT_QUEUE_OFFSET(x) \ 475 + (IL49_SCD_CONTEXT_DATA_OFFSET + ((x) * 8)) 476 476 477 - #define IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS (0) 478 - #define IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK (0x0000007F) 479 - #define IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) 480 - #define IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) 477 + #define IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS (0) 478 + #define IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK (0x0000007F) 479 + #define IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) 480 + #define IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) 481 481 482 482 /* 483 483 * Tx Status Bitmap ··· 486 486 * "Alive" notification from uCode. Area is used only by device itself; 487 487 * no other support (besides clearing) is required from driver. 488 488 */ 489 - #define IWL49_SCD_TX_STTS_BITMAP_OFFSET 0x400 489 + #define IL49_SCD_TX_STTS_BITMAP_OFFSET 0x400 490 490 491 491 /* 492 492 * RAxTID to queue translation mapping. ··· 508 508 * must read a dword-aligned value from device SRAM, replace the 16-bit map 509 509 * value of interest, and write the dword value back into device SRAM. 510 510 */ 511 - #define IWL49_SCD_TRANSLATE_TBL_OFFSET 0x500 511 + #define IL49_SCD_TRANSLATE_TBL_OFFSET 0x500 512 512 513 513 /* Find translation table dword to read/write for given queue */ 514 - #define IWL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ 515 - ((IWL49_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffffffc) 514 + #define IL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ 515 + ((IL49_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffffffc) 516 516 517 517 #define IL_SCD_TXFIFO_POS_TID (0) 518 518 #define IL_SCD_TXFIFO_POS_RA (4)
+3 -3
drivers/net/wireless/iwlegacy/iwl-scan.c
··· 185 185 static void il_rx_reply_scan(struct il_priv *il, 186 186 struct il_rx_mem_buffer *rxb) 187 187 { 188 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 188 + #ifdef CONFIG_IWLEGACY_DEBUG 189 189 struct il_rx_packet *pkt = rxb_addr(rxb); 190 190 struct il_scanreq_notification *notif = 191 191 (struct il_scanreq_notification *)pkt->u.raw; ··· 216 216 static void il_rx_scan_results_notif(struct il_priv *il, 217 217 struct il_rx_mem_buffer *rxb) 218 218 { 219 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 219 + #ifdef CONFIG_IWLEGACY_DEBUG 220 220 struct il_rx_packet *pkt = rxb_addr(rxb); 221 221 struct il_scanresults_notification *notif = 222 222 (struct il_scanresults_notification *)pkt->u.raw; ··· 239 239 struct il_rx_mem_buffer *rxb) 240 240 { 241 241 242 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 242 + #ifdef CONFIG_IWLEGACY_DEBUG 243 243 struct il_rx_packet *pkt = rxb_addr(rxb); 244 244 struct il_scancomplete_notification *scan_notif = (void *)pkt->u.raw; 245 245 #endif
+1 -1
drivers/net/wireless/iwlegacy/iwl-sta.c
··· 681 681 } 682 682 EXPORT_SYMBOL_GPL(il_dealloc_bcast_stations); 683 683 684 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 684 + #ifdef CONFIG_IWLEGACY_DEBUG 685 685 static void il_dump_lq_cmd(struct il_priv *il, 686 686 struct il_link_quality_cmd *lq) 687 687 {
+1 -1
drivers/net/wireless/iwlegacy/iwl-tx.c
··· 507 507 if (idx == TFD_CMD_SLOTS) 508 508 len = IL_MAX_CMD_SIZE; 509 509 510 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 510 + #ifdef CONFIG_IWLEGACY_DEBUG 511 511 switch (out_cmd->hdr.cmd) { 512 512 case REPLY_TX_LINK_QUALITY_CMD: 513 513 case SENSITIVITY_CMD:
+32 -32
drivers/net/wireless/iwlegacy/iwl3945-base.c
··· 68 68 #define DRV_DESCRIPTION \ 69 69 "Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux" 70 70 71 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 71 + #ifdef CONFIG_IWLEGACY_DEBUG 72 72 #define VD "d" 73 73 #else 74 74 #define VD ··· 500 500 501 501 fc = hdr->frame_control; 502 502 503 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 503 + #ifdef CONFIG_IWLEGACY_DEBUG 504 504 if (ieee80211_is_auth(fc)) 505 505 D_TX("Sending AUTH frame\n"); 506 506 else if (ieee80211_is_assoc_req(fc)) ··· 783 783 static void il3945_rx_reply_add_sta(struct il_priv *il, 784 784 struct il_rx_mem_buffer *rxb) 785 785 { 786 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 786 + #ifdef CONFIG_IWLEGACY_DEBUG 787 787 struct il_rx_packet *pkt = rxb_addr(rxb); 788 788 #endif 789 789 ··· 795 795 { 796 796 struct il_rx_packet *pkt = rxb_addr(rxb); 797 797 struct il3945_beacon_notif *beacon = &(pkt->u.beacon_status); 798 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 798 + #ifdef CONFIG_IWLEGACY_DEBUG 799 799 u8 rate = beacon->beacon_notify_hdr.rate; 800 800 801 801 D_RX("beacon status %x retries %d iss %d " ··· 1410 1410 u32 inta, handled = 0; 1411 1411 u32 inta_fh; 1412 1412 unsigned long flags; 1413 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1413 + #ifdef CONFIG_IWLEGACY_DEBUG 1414 1414 u32 inta_mask; 1415 1415 #endif 1416 1416 ··· 1428 1428 inta_fh = _il_rd(il, CSR_FH_INT_STATUS); 1429 1429 _il_wr(il, CSR_FH_INT_STATUS, inta_fh); 1430 1430 1431 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1431 + #ifdef CONFIG_IWLEGACY_DEBUG 1432 1432 if (il_get_debug_level(il) & IL_DL_ISR) { 1433 1433 /* just for debug */ 1434 1434 inta_mask = _il_rd(il, CSR_INT_MASK); ··· 1463 1463 return; 1464 1464 } 1465 1465 1466 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1466 + #ifdef CONFIG_IWLEGACY_DEBUG 1467 1467 if (il_get_debug_level(il) & (IL_DL_ISR)) { 1468 1468 /* NIC fires this, but we don't use it, redundant with WAKEUP */ 1469 1469 if (inta & CSR_INT_BIT_SCD) { ··· 1541 1541 if (test_bit(STATUS_INT_ENABLED, &il->status)) 1542 1542 il_enable_interrupts(il); 1543 1543 1544 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1544 + #ifdef CONFIG_IWLEGACY_DEBUG 1545 1545 if (il_get_debug_level(il) & (IL_DL_ISR)) { 1546 1546 inta = _il_rd(il, CSR_INT); 1547 1547 inta_mask = _il_rd(il, CSR_INT_MASK); ··· 1612 1612 * hearing clear Rx packet).*/ 1613 1613 if (IL_UCODE_API(il->ucode_ver) >= 2) { 1614 1614 if (n_probes) 1615 - scan_ch->type |= IWL39_SCAN_PROBE_MASK(n_probes); 1615 + scan_ch->type |= IL39_SCAN_PROBE_MASK(n_probes); 1616 1616 } else { 1617 1617 /* uCode v1 does not allow setting direct probe bits on 1618 1618 * passive channel. */ 1619 1619 if ((scan_ch->type & 1) && n_probes) 1620 - scan_ch->type |= IWL39_SCAN_PROBE_MASK(n_probes); 1620 + scan_ch->type |= IL39_SCAN_PROBE_MASK(n_probes); 1621 1621 } 1622 1622 1623 1623 /* Set txpower levels to defaults */ ··· 1659 1659 rates[i].hw_value = i; /* Rate scaling will work on indexes */ 1660 1660 rates[i].hw_value_short = i; 1661 1661 rates[i].flags = 0; 1662 - if (i > IWL39_LAST_OFDM_RATE || i < IL_FIRST_OFDM_RATE) { 1662 + if (i > IL39_LAST_OFDM_RATE || i < IL_FIRST_OFDM_RATE) { 1663 1663 /* 1664 1664 * If CCK != 1M then set short preamble rate flag. 1665 1665 */ ··· 1699 1699 D_INFO("ucode inst image size is %u\n", len); 1700 1700 1701 1701 il_wr(il, HBUS_TARG_MEM_RADDR, 1702 - IWL39_RTC_INST_LOWER_BOUND); 1702 + IL39_RTC_INST_LOWER_BOUND); 1703 1703 1704 1704 errcnt = 0; 1705 1705 for (; len > 0; len -= sizeof(u32), image++) { ··· 1746 1746 /* NOTE: Use the debugless read so we don't flood kernel log 1747 1747 * if IL_DL_IO is set */ 1748 1748 il_wr(il, HBUS_TARG_MEM_RADDR, 1749 - i + IWL39_RTC_INST_LOWER_BOUND); 1749 + i + IL39_RTC_INST_LOWER_BOUND); 1750 1750 val = _il_rd(il, HBUS_TARG_MEM_RDAT); 1751 1751 if (val != le32_to_cpu(*image)) { 1752 1752 #if 0 /* Enable this if you want to see details */ ··· 1820 1820 _il_wr(il, CSR_RESET, 0); 1821 1821 } 1822 1822 1823 - #define IWL3945_UCODE_GET(item) \ 1823 + #define IL3945_UCODE_GET(item) \ 1824 1824 static u32 il3945_ucode_get_##item(const struct il_ucode_header *ucode)\ 1825 1825 { \ 1826 1826 return le32_to_cpu(ucode->v1.item); \ ··· 1836 1836 return (u8 *) ucode->v1.data; 1837 1837 } 1838 1838 1839 - IWL3945_UCODE_GET(inst_size); 1840 - IWL3945_UCODE_GET(data_size); 1841 - IWL3945_UCODE_GET(init_size); 1842 - IWL3945_UCODE_GET(init_data_size); 1843 - IWL3945_UCODE_GET(boot_size); 1839 + IL3945_UCODE_GET(inst_size); 1840 + IL3945_UCODE_GET(data_size); 1841 + IL3945_UCODE_GET(init_size); 1842 + IL3945_UCODE_GET(init_data_size); 1843 + IL3945_UCODE_GET(boot_size); 1844 1844 1845 1845 /** 1846 1846 * il3945_read_ucode - Read uCode images from disk file. ··· 1967 1967 } 1968 1968 1969 1969 /* Verify that uCode images will fit in card's SRAM */ 1970 - if (inst_size > IWL39_MAX_INST_SIZE) { 1970 + if (inst_size > IL39_MAX_INST_SIZE) { 1971 1971 D_INFO("uCode instr len %d too large to fit in\n", 1972 1972 inst_size); 1973 1973 ret = -EINVAL; 1974 1974 goto err_release; 1975 1975 } 1976 1976 1977 - if (data_size > IWL39_MAX_DATA_SIZE) { 1977 + if (data_size > IL39_MAX_DATA_SIZE) { 1978 1978 D_INFO("uCode data len %d too large to fit in\n", 1979 1979 data_size); 1980 1980 ret = -EINVAL; 1981 1981 goto err_release; 1982 1982 } 1983 - if (init_size > IWL39_MAX_INST_SIZE) { 1983 + if (init_size > IL39_MAX_INST_SIZE) { 1984 1984 D_INFO( 1985 1985 "uCode init instr len %d too large to fit in\n", 1986 1986 init_size); 1987 1987 ret = -EINVAL; 1988 1988 goto err_release; 1989 1989 } 1990 - if (init_data_size > IWL39_MAX_DATA_SIZE) { 1990 + if (init_data_size > IL39_MAX_DATA_SIZE) { 1991 1991 D_INFO( 1992 1992 "uCode init data len %d too large to fit in\n", 1993 1993 init_data_size); 1994 1994 ret = -EINVAL; 1995 1995 goto err_release; 1996 1996 } 1997 - if (boot_size > IWL39_MAX_BSM_SIZE) { 1997 + if (boot_size > IL39_MAX_BSM_SIZE) { 1998 1998 D_INFO( 1999 1999 "uCode boot instr len %d too large to fit in\n", 2000 2000 boot_size); ··· 3118 3118 * 3119 3119 *****************************************************************************/ 3120 3120 3121 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 3121 + #ifdef CONFIG_IWLEGACY_DEBUG 3122 3122 3123 3123 /* 3124 3124 * The following adds a new attribute to the sysfs representation ··· 3160 3160 static DEVICE_ATTR(debug_level, S_IWUSR | S_IRUGO, 3161 3161 il3945_show_debug_level, il3945_store_debug_level); 3162 3162 3163 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 3163 + #endif /* CONFIG_IWLEGACY_DEBUG */ 3164 3164 3165 3165 static ssize_t il3945_show_temperature(struct device *d, 3166 3166 struct device_attribute *attr, char *buf) ··· 3495 3495 &dev_attr_status.attr, 3496 3496 &dev_attr_temperature.attr, 3497 3497 &dev_attr_tx_power.attr, 3498 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 3498 + #ifdef CONFIG_IWLEGACY_DEBUG 3499 3499 &dev_attr_debug_level.attr, 3500 3500 #endif 3501 3501 NULL ··· 3583 3583 return ret; 3584 3584 } 3585 3585 3586 - #define IWL3945_MAX_PROBE_REQUEST 200 3586 + #define IL3945_MAX_PROBE_REQUEST 200 3587 3587 3588 3588 static int il3945_setup_mac(struct il_priv *il) 3589 3589 { ··· 3607 3607 3608 3608 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; 3609 3609 /* we create the 802.11 header and a zero-length SSID element */ 3610 - hw->wiphy->max_scan_ie_len = IWL3945_MAX_PROBE_REQUEST - 24 - 2; 3610 + hw->wiphy->max_scan_ie_len = IL3945_MAX_PROBE_REQUEST - 24 - 2; 3611 3611 3612 3612 /* Default value; 4 EDCA QOS priorities */ 3613 3613 hw->queues = 4; ··· 3656 3656 il = hw->priv; 3657 3657 SET_IEEE80211_DEV(hw, &pdev->dev); 3658 3658 3659 - il->cmd_queue = IWL39_CMD_QUEUE_NUM; 3659 + il->cmd_queue = IL39_CMD_QUEUE_NUM; 3660 3660 3661 3661 /* 3945 has only one valid context */ 3662 3662 il->valid_contexts = BIT(IL_RXON_CTX_BSS); ··· 3992 3992 il3945_rate_control_unregister(); 3993 3993 } 3994 3994 3995 - MODULE_FIRMWARE(IWL3945_MODULE_FIRMWARE(IWL3945_UCODE_API_MAX)); 3995 + MODULE_FIRMWARE(IL3945_MODULE_FIRMWARE(IL3945_UCODE_API_MAX)); 3996 3996 3997 3997 module_param_named(antenna, il3945_mod_params.antenna, int, S_IRUGO); 3998 3998 MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); ··· 4002 4002 module_param_named(disable_hw_scan, il3945_mod_params.disable_hw_scan, 4003 4003 int, S_IRUGO); 4004 4004 MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 1)"); 4005 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 4005 + #ifdef CONFIG_IWLEGACY_DEBUG 4006 4006 module_param_named(debug, il_debug_level, uint, S_IRUGO | S_IWUSR); 4007 4007 MODULE_PARM_DESC(debug, "debug output mask"); 4008 4008 #endif
+34 -37
drivers/net/wireless/iwlegacy/iwl4965-base.c
··· 72 72 */ 73 73 #define DRV_DESCRIPTION "Intel(R) Wireless WiFi 4965 driver for Linux" 74 74 75 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 75 + #ifdef CONFIG_IWLEGACY_DEBUG 76 76 #define VD "d" 77 77 #else 78 78 #define VD ··· 493 493 struct il_rx_packet *pkt = rxb_addr(rxb); 494 494 struct il4965_beacon_notif *beacon = 495 495 (struct il4965_beacon_notif *)pkt->u.raw; 496 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 496 + #ifdef CONFIG_IWLEGACY_DEBUG 497 497 u8 rate = il4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); 498 498 499 499 D_RX("beacon status %x retries %d iss %d " ··· 778 778 u32 inta_fh; 779 779 unsigned long flags; 780 780 u32 i; 781 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 781 + #ifdef CONFIG_IWLEGACY_DEBUG 782 782 u32 inta_mask; 783 783 #endif 784 784 ··· 796 796 inta_fh = _il_rd(il, CSR_FH_INT_STATUS); 797 797 _il_wr(il, CSR_FH_INT_STATUS, inta_fh); 798 798 799 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 799 + #ifdef CONFIG_IWLEGACY_DEBUG 800 800 if (il_get_debug_level(il) & IL_DL_ISR) { 801 801 /* just for debug */ 802 802 inta_mask = _il_rd(il, CSR_INT_MASK); ··· 831 831 return; 832 832 } 833 833 834 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 834 + #ifdef CONFIG_IWLEGACY_DEBUG 835 835 if (il_get_debug_level(il) & (IL_DL_ISR)) { 836 836 /* NIC fires this, but we don't use it, redundant with WAKEUP */ 837 837 if (inta & CSR_INT_BIT_SCD) { ··· 946 946 else if (handled & CSR_INT_BIT_RF_KILL) 947 947 il_enable_rfkill_int(il); 948 948 949 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 949 + #ifdef CONFIG_IWLEGACY_DEBUG 950 950 if (il_get_debug_level(il) & (IL_DL_ISR)) { 951 951 inta = _il_rd(il, CSR_INT); 952 952 inta_mask = _il_rd(il, CSR_INT_MASK); ··· 964 964 * 965 965 *****************************************************************************/ 966 966 967 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 967 + #ifdef CONFIG_IWLEGACY_DEBUG 968 968 969 969 /* 970 970 * The following adds a new attribute to the sysfs representation ··· 1007 1007 il4965_show_debug_level, il4965_store_debug_level); 1008 1008 1009 1009 1010 - #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 1010 + #endif /* CONFIG_IWLEGACY_DEBUG */ 1011 1011 1012 1012 1013 1013 static ssize_t il4965_show_temperature(struct device *d, ··· 1062 1062 static struct attribute *il_sysfs_entries[] = { 1063 1063 &dev_attr_temperature.attr, 1064 1064 &dev_attr_tx_power.attr, 1065 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1065 + #ifdef CONFIG_IWLEGACY_DEBUG 1066 1066 &dev_attr_debug_level.attr, 1067 1067 #endif 1068 1068 NULL ··· 1607 1607 IL_TX_FIFO_VI, 1608 1608 IL_TX_FIFO_BE, 1609 1609 IL_TX_FIFO_BK, 1610 - IWL49_CMD_FIFO_NUM, 1610 + IL49_CMD_FIFO_NUM, 1611 1611 IL_TX_FIFO_UNUSED, 1612 1612 IL_TX_FIFO_UNUSED, 1613 1613 }; ··· 1623 1623 1624 1624 /* Clear 4965's internal Tx Scheduler data base */ 1625 1625 il->scd_base_addr = il_rd_prph(il, 1626 - IWL49_SCD_SRAM_BASE_ADDR); 1627 - a = il->scd_base_addr + IWL49_SCD_CONTEXT_DATA_OFFSET; 1628 - for (; a < il->scd_base_addr + IWL49_SCD_TX_STTS_BITMAP_OFFSET; a += 4) 1626 + IL49_SCD_SRAM_BASE_ADDR); 1627 + a = il->scd_base_addr + IL49_SCD_CONTEXT_DATA_OFFSET; 1628 + for (; a < il->scd_base_addr + IL49_SCD_TX_STTS_BITMAP_OFFSET; a += 4) 1629 1629 il_write_targ_mem(il, a, 0); 1630 - for (; a < il->scd_base_addr + IWL49_SCD_TRANSLATE_TBL_OFFSET; a += 4) 1630 + for (; a < il->scd_base_addr + IL49_SCD_TRANSLATE_TBL_OFFSET; a += 4) 1631 1631 il_write_targ_mem(il, a, 0); 1632 1632 for (; a < il->scd_base_addr + 1633 - IWL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(il->hw_params.max_txq_num); a += 4) 1633 + IL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(il->hw_params.max_txq_num); a += 4) 1634 1634 il_write_targ_mem(il, a, 0); 1635 1635 1636 1636 /* Tel 4965 where to find Tx byte count tables */ 1637 - il_wr_prph(il, IWL49_SCD_DRAM_BASE_ADDR, 1637 + il_wr_prph(il, IL49_SCD_DRAM_BASE_ADDR, 1638 1638 il->scd_bc_tbls.dma >> 10); 1639 1639 1640 1640 /* Enable DMA channel */ ··· 1650 1650 reg_val | FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN); 1651 1651 1652 1652 /* Disable chain mode for all queues */ 1653 - il_wr_prph(il, IWL49_SCD_QUEUECHAIN_SEL, 0); 1653 + il_wr_prph(il, IL49_SCD_QUEUECHAIN_SEL, 0); 1654 1654 1655 1655 /* Initialize each Tx queue (including the command queue) */ 1656 1656 for (i = 0; i < il->hw_params.max_txq_num; i++) { 1657 1657 1658 1658 /* TFD circular buffer read/write indexes */ 1659 - il_wr_prph(il, IWL49_SCD_QUEUE_RDPTR(i), 0); 1659 + il_wr_prph(il, IL49_SCD_QUEUE_RDPTR(i), 0); 1660 1660 il_wr(il, HBUS_TARG_WRPTR, 0 | (i << 8)); 1661 1661 1662 1662 /* Max Tx Window size for Scheduler-ACK mode */ 1663 1663 il_write_targ_mem(il, il->scd_base_addr + 1664 - IWL49_SCD_CONTEXT_QUEUE_OFFSET(i), 1664 + IL49_SCD_CONTEXT_QUEUE_OFFSET(i), 1665 1665 (SCD_WIN_SIZE << 1666 - IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & 1667 - IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); 1666 + IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & 1667 + IL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); 1668 1668 1669 1669 /* Frame limit */ 1670 1670 il_write_targ_mem(il, il->scd_base_addr + 1671 - IWL49_SCD_CONTEXT_QUEUE_OFFSET(i) + 1671 + IL49_SCD_CONTEXT_QUEUE_OFFSET(i) + 1672 1672 sizeof(u32), 1673 1673 (SCD_FRAME_LIMIT << 1674 - IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & 1675 - IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 1674 + IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & 1675 + IL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 1676 1676 1677 1677 } 1678 - il_wr_prph(il, IWL49_SCD_INTERRUPT_MASK, 1678 + il_wr_prph(il, IL49_SCD_INTERRUPT_MASK, 1679 1679 (1 << il->hw_params.max_txq_num) - 1); 1680 1680 1681 1681 /* Activate all Tx DMA/FIFO channels */ ··· 2733 2733 { 2734 2734 il_wr(il, HBUS_TARG_WRPTR, 2735 2735 (index & 0xff) | (txq_id << 8)); 2736 - il_wr_prph(il, IWL49_SCD_QUEUE_RDPTR(txq_id), index); 2736 + il_wr_prph(il, IL49_SCD_QUEUE_RDPTR(txq_id), index); 2737 2737 } 2738 2738 2739 2739 void il4965_tx_queue_set_status(struct il_priv *il, ··· 2746 2746 int active = test_bit(txq_id, &il->txq_ctx_active_msk) ? 1 : 0; 2747 2747 2748 2748 /* Set up and activate */ 2749 - il_wr_prph(il, IWL49_SCD_QUEUE_STATUS_BITS(txq_id), 2750 - (active << IWL49_SCD_QUEUE_STTS_REG_POS_ACTIVE) | 2751 - (tx_fifo_id << IWL49_SCD_QUEUE_STTS_REG_POS_TXF) | 2752 - (scd_retry << IWL49_SCD_QUEUE_STTS_REG_POS_WSL) | 2753 - (scd_retry << IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACK) | 2754 - IWL49_SCD_QUEUE_STTS_REG_MSK); 2749 + il_wr_prph(il, IL49_SCD_QUEUE_STATUS_BITS(txq_id), 2750 + (active << IL49_SCD_QUEUE_STTS_REG_POS_ACTIVE) | 2751 + (tx_fifo_id << IL49_SCD_QUEUE_STTS_REG_POS_TXF) | 2752 + (scd_retry << IL49_SCD_QUEUE_STTS_REG_POS_WSL) | 2753 + (scd_retry << IL49_SCD_QUEUE_STTS_REG_POS_SCD_ACK) | 2754 + IL49_SCD_QUEUE_STTS_REG_MSK); 2755 2755 2756 2756 txq->sched_retry = scd_retry; 2757 2757 ··· 3195 3195 */ 3196 3196 void il4965_txq_set_sched(struct il_priv *il, u32 mask) 3197 3197 { 3198 - il_wr_prph(il, IWL49_SCD_TXFACT, mask); 3198 + il_wr_prph(il, IL49_SCD_TXFACT, mask); 3199 3199 } 3200 3200 3201 3201 /***************************************************************************** ··· 3206 3206 3207 3207 /* Hardware specific file defines the PCI IDs table for that hardware module */ 3208 3208 static DEFINE_PCI_DEVICE_TABLE(il4965_hw_card_ids) = { 3209 - #if defined(CONFIG_IWL4965_MODULE) || defined(CONFIG_IWL4965) 3210 3209 {IL_PCI_DEVICE(0x4229, PCI_ANY_ID, il4965_cfg)}, 3211 3210 {IL_PCI_DEVICE(0x4230, PCI_ANY_ID, il4965_cfg)}, 3212 - #endif /* CONFIG_IWL4965 */ 3213 - 3214 3211 {0} 3215 3212 }; 3216 3213 MODULE_DEVICE_TABLE(pci, il4965_hw_card_ids); ··· 3255 3258 module_exit(il4965_exit); 3256 3259 module_init(il4965_init); 3257 3260 3258 - #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 3261 + #ifdef CONFIG_IWLEGACY_DEBUG 3259 3262 module_param_named(debug, il_debug_level, uint, S_IRUGO | S_IWUSR); 3260 3263 MODULE_PARM_DESC(debug, "debug output mask"); 3261 3264 #endif