diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-26 16:12:52 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:32:12 -0500 |
commit | 51e9bf5d795b8e01e54391f1790974c7b166d286 (patch) | |
tree | d5fb988eac1b90456b1cd8b893a80b1c9d15026b /drivers/net/wireless/iwlwifi | |
parent | 10ec4f1d0851eb97cd53db66150835dd7f64829d (diff) |
iwlwifi: remove uses of __constant_{endian} helpers
The base versions handle constant folding just fine.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-commands.h | 134 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 192 |
2 files changed, 163 insertions, 163 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h index 8772d9d7d6e7..735891a768a2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h | |||
@@ -220,7 +220,7 @@ struct iwl3945_power_per_rate { | |||
220 | * | 220 | * |
221 | *****************************************************************************/ | 221 | *****************************************************************************/ |
222 | 222 | ||
223 | #define UCODE_VALID_OK __constant_cpu_to_le32(0x1) | 223 | #define UCODE_VALID_OK cpu_to_le32(0x1) |
224 | #define INITIALIZE_SUBTYPE (9) | 224 | #define INITIALIZE_SUBTYPE (9) |
225 | 225 | ||
226 | /* | 226 | /* |
@@ -322,42 +322,42 @@ enum { | |||
322 | 322 | ||
323 | /* rx_config flags */ | 323 | /* rx_config flags */ |
324 | /* band & modulation selection */ | 324 | /* band & modulation selection */ |
325 | #define RXON_FLG_BAND_24G_MSK __constant_cpu_to_le32(1 << 0) | 325 | #define RXON_FLG_BAND_24G_MSK cpu_to_le32(1 << 0) |
326 | #define RXON_FLG_CCK_MSK __constant_cpu_to_le32(1 << 1) | 326 | #define RXON_FLG_CCK_MSK cpu_to_le32(1 << 1) |
327 | /* auto detection enable */ | 327 | /* auto detection enable */ |
328 | #define RXON_FLG_AUTO_DETECT_MSK __constant_cpu_to_le32(1 << 2) | 328 | #define RXON_FLG_AUTO_DETECT_MSK cpu_to_le32(1 << 2) |
329 | /* TGg protection when tx */ | 329 | /* TGg protection when tx */ |
330 | #define RXON_FLG_TGG_PROTECT_MSK __constant_cpu_to_le32(1 << 3) | 330 | #define RXON_FLG_TGG_PROTECT_MSK cpu_to_le32(1 << 3) |
331 | /* cck short slot & preamble */ | 331 | /* cck short slot & preamble */ |
332 | #define RXON_FLG_SHORT_SLOT_MSK __constant_cpu_to_le32(1 << 4) | 332 | #define RXON_FLG_SHORT_SLOT_MSK cpu_to_le32(1 << 4) |
333 | #define RXON_FLG_SHORT_PREAMBLE_MSK __constant_cpu_to_le32(1 << 5) | 333 | #define RXON_FLG_SHORT_PREAMBLE_MSK cpu_to_le32(1 << 5) |
334 | /* antenna selection */ | 334 | /* antenna selection */ |
335 | #define RXON_FLG_DIS_DIV_MSK __constant_cpu_to_le32(1 << 7) | 335 | #define RXON_FLG_DIS_DIV_MSK cpu_to_le32(1 << 7) |
336 | #define RXON_FLG_ANT_SEL_MSK __constant_cpu_to_le32(0x0f00) | 336 | #define RXON_FLG_ANT_SEL_MSK cpu_to_le32(0x0f00) |
337 | #define RXON_FLG_ANT_A_MSK __constant_cpu_to_le32(1 << 8) | 337 | #define RXON_FLG_ANT_A_MSK cpu_to_le32(1 << 8) |
338 | #define RXON_FLG_ANT_B_MSK __constant_cpu_to_le32(1 << 9) | 338 | #define RXON_FLG_ANT_B_MSK cpu_to_le32(1 << 9) |
339 | /* radar detection enable */ | 339 | /* radar detection enable */ |
340 | #define RXON_FLG_RADAR_DETECT_MSK __constant_cpu_to_le32(1 << 12) | 340 | #define RXON_FLG_RADAR_DETECT_MSK cpu_to_le32(1 << 12) |
341 | #define RXON_FLG_TGJ_NARROW_BAND_MSK __constant_cpu_to_le32(1 << 13) | 341 | #define RXON_FLG_TGJ_NARROW_BAND_MSK cpu_to_le32(1 << 13) |
342 | /* rx response to host with 8-byte TSF | 342 | /* rx response to host with 8-byte TSF |
343 | * (according to ON_AIR deassertion) */ | 343 | * (according to ON_AIR deassertion) */ |
344 | #define RXON_FLG_TSF2HOST_MSK __constant_cpu_to_le32(1 << 15) | 344 | #define RXON_FLG_TSF2HOST_MSK cpu_to_le32(1 << 15) |
345 | 345 | ||
346 | /* rx_config filter flags */ | 346 | /* rx_config filter flags */ |
347 | /* accept all data frames */ | 347 | /* accept all data frames */ |
348 | #define RXON_FILTER_PROMISC_MSK __constant_cpu_to_le32(1 << 0) | 348 | #define RXON_FILTER_PROMISC_MSK cpu_to_le32(1 << 0) |
349 | /* pass control & management to host */ | 349 | /* pass control & management to host */ |
350 | #define RXON_FILTER_CTL2HOST_MSK __constant_cpu_to_le32(1 << 1) | 350 | #define RXON_FILTER_CTL2HOST_MSK cpu_to_le32(1 << 1) |
351 | /* accept multi-cast */ | 351 | /* accept multi-cast */ |
352 | #define RXON_FILTER_ACCEPT_GRP_MSK __constant_cpu_to_le32(1 << 2) | 352 | #define RXON_FILTER_ACCEPT_GRP_MSK cpu_to_le32(1 << 2) |
353 | /* don't decrypt uni-cast frames */ | 353 | /* don't decrypt uni-cast frames */ |
354 | #define RXON_FILTER_DIS_DECRYPT_MSK __constant_cpu_to_le32(1 << 3) | 354 | #define RXON_FILTER_DIS_DECRYPT_MSK cpu_to_le32(1 << 3) |
355 | /* don't decrypt multi-cast frames */ | 355 | /* don't decrypt multi-cast frames */ |
356 | #define RXON_FILTER_DIS_GRP_DECRYPT_MSK __constant_cpu_to_le32(1 << 4) | 356 | #define RXON_FILTER_DIS_GRP_DECRYPT_MSK cpu_to_le32(1 << 4) |
357 | /* STA is associated */ | 357 | /* STA is associated */ |
358 | #define RXON_FILTER_ASSOC_MSK __constant_cpu_to_le32(1 << 5) | 358 | #define RXON_FILTER_ASSOC_MSK cpu_to_le32(1 << 5) |
359 | /* transfer to host non bssid beacons in associated state */ | 359 | /* transfer to host non bssid beacons in associated state */ |
360 | #define RXON_FILTER_BCON_AWARE_MSK __constant_cpu_to_le32(1 << 6) | 360 | #define RXON_FILTER_BCON_AWARE_MSK cpu_to_le32(1 << 6) |
361 | 361 | ||
362 | /** | 362 | /** |
363 | * REPLY_RXON = 0x10 (command, has simple generic response) | 363 | * REPLY_RXON = 0x10 (command, has simple generic response) |
@@ -471,9 +471,9 @@ struct iwl3945_ac_qos { | |||
471 | } __attribute__ ((packed)); | 471 | } __attribute__ ((packed)); |
472 | 472 | ||
473 | /* QoS flags defines */ | 473 | /* QoS flags defines */ |
474 | #define QOS_PARAM_FLG_UPDATE_EDCA_MSK __constant_cpu_to_le32(0x01) | 474 | #define QOS_PARAM_FLG_UPDATE_EDCA_MSK cpu_to_le32(0x01) |
475 | #define QOS_PARAM_FLG_TGN_MSK __constant_cpu_to_le32(0x02) | 475 | #define QOS_PARAM_FLG_TGN_MSK cpu_to_le32(0x02) |
476 | #define QOS_PARAM_FLG_TXOP_TYPE_MSK __constant_cpu_to_le32(0x10) | 476 | #define QOS_PARAM_FLG_TXOP_TYPE_MSK cpu_to_le32(0x10) |
477 | 477 | ||
478 | /* Number of Access Categories (AC) (EDCA), queues 0..3 */ | 478 | /* Number of Access Categories (AC) (EDCA), queues 0..3 */ |
479 | #define AC_NUM 4 | 479 | #define AC_NUM 4 |
@@ -508,27 +508,27 @@ struct iwl3945_qosparam_cmd { | |||
508 | #define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/ | 508 | #define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/ |
509 | #define IWL_INVALID_STATION 255 | 509 | #define IWL_INVALID_STATION 255 |
510 | 510 | ||
511 | #define STA_FLG_TX_RATE_MSK __constant_cpu_to_le32(1 << 2); | 511 | #define STA_FLG_TX_RATE_MSK cpu_to_le32(1 << 2); |
512 | #define STA_FLG_PWR_SAVE_MSK __constant_cpu_to_le32(1 << 8); | 512 | #define STA_FLG_PWR_SAVE_MSK cpu_to_le32(1 << 8); |
513 | 513 | ||
514 | /* Use in mode field. 1: modify existing entry, 0: add new station entry */ | 514 | /* Use in mode field. 1: modify existing entry, 0: add new station entry */ |
515 | #define STA_CONTROL_MODIFY_MSK 0x01 | 515 | #define STA_CONTROL_MODIFY_MSK 0x01 |
516 | 516 | ||
517 | /* key flags __le16*/ | 517 | /* key flags __le16*/ |
518 | #define STA_KEY_FLG_ENCRYPT_MSK __constant_cpu_to_le16(0x0007) | 518 | #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007) |
519 | #define STA_KEY_FLG_NO_ENC __constant_cpu_to_le16(0x0000) | 519 | #define STA_KEY_FLG_NO_ENC cpu_to_le16(0x0000) |
520 | #define STA_KEY_FLG_WEP __constant_cpu_to_le16(0x0001) | 520 | #define STA_KEY_FLG_WEP cpu_to_le16(0x0001) |
521 | #define STA_KEY_FLG_CCMP __constant_cpu_to_le16(0x0002) | 521 | #define STA_KEY_FLG_CCMP cpu_to_le16(0x0002) |
522 | #define STA_KEY_FLG_TKIP __constant_cpu_to_le16(0x0003) | 522 | #define STA_KEY_FLG_TKIP cpu_to_le16(0x0003) |
523 | 523 | ||
524 | #define STA_KEY_FLG_KEYID_POS 8 | 524 | #define STA_KEY_FLG_KEYID_POS 8 |
525 | #define STA_KEY_FLG_INVALID __constant_cpu_to_le16(0x0800) | 525 | #define STA_KEY_FLG_INVALID cpu_to_le16(0x0800) |
526 | /* wep key is either from global key (0) or from station info array (1) */ | 526 | /* wep key is either from global key (0) or from station info array (1) */ |
527 | #define STA_KEY_FLG_WEP_KEY_MAP_MSK __constant_cpu_to_le16(0x0008) | 527 | #define STA_KEY_FLG_WEP_KEY_MAP_MSK cpu_to_le16(0x0008) |
528 | 528 | ||
529 | /* wep key in STA: 5-bytes (0) or 13-bytes (1) */ | 529 | /* wep key in STA: 5-bytes (0) or 13-bytes (1) */ |
530 | #define STA_KEY_FLG_KEY_SIZE_MSK __constant_cpu_to_le16(0x1000) | 530 | #define STA_KEY_FLG_KEY_SIZE_MSK cpu_to_le16(0x1000) |
531 | #define STA_KEY_MULTICAST_MSK __constant_cpu_to_le16(0x4000) | 531 | #define STA_KEY_MULTICAST_MSK cpu_to_le16(0x4000) |
532 | 532 | ||
533 | /* Flags indicate whether to modify vs. don't change various station params */ | 533 | /* Flags indicate whether to modify vs. don't change various station params */ |
534 | #define STA_MODIFY_KEY_MASK 0x01 | 534 | #define STA_MODIFY_KEY_MASK 0x01 |
@@ -666,14 +666,14 @@ struct iwl3945_rx_frame_hdr { | |||
666 | u8 payload[0]; | 666 | u8 payload[0]; |
667 | } __attribute__ ((packed)); | 667 | } __attribute__ ((packed)); |
668 | 668 | ||
669 | #define RX_RES_STATUS_NO_CRC32_ERROR __constant_cpu_to_le32(1 << 0) | 669 | #define RX_RES_STATUS_NO_CRC32_ERROR cpu_to_le32(1 << 0) |
670 | #define RX_RES_STATUS_NO_RXE_OVERFLOW __constant_cpu_to_le32(1 << 1) | 670 | #define RX_RES_STATUS_NO_RXE_OVERFLOW cpu_to_le32(1 << 1) |
671 | 671 | ||
672 | #define RX_RES_PHY_FLAGS_BAND_24_MSK __constant_cpu_to_le16(1 << 0) | 672 | #define RX_RES_PHY_FLAGS_BAND_24_MSK cpu_to_le16(1 << 0) |
673 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK __constant_cpu_to_le16(1 << 1) | 673 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK cpu_to_le16(1 << 1) |
674 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK __constant_cpu_to_le16(1 << 2) | 674 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK cpu_to_le16(1 << 2) |
675 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK __constant_cpu_to_le16(1 << 3) | 675 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK cpu_to_le16(1 << 3) |
676 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK __constant_cpu_to_le16(0xf0) | 676 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK cpu_to_le16(0xf0) |
677 | 677 | ||
678 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) | 678 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) |
679 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) | 679 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) |
@@ -733,57 +733,57 @@ struct iwl3945_rx_frame { | |||
733 | 733 | ||
734 | /* 1: Use Request-To-Send protocol before this frame. | 734 | /* 1: Use Request-To-Send protocol before this frame. |
735 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. */ | 735 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. */ |
736 | #define TX_CMD_FLG_RTS_MSK __constant_cpu_to_le32(1 << 1) | 736 | #define TX_CMD_FLG_RTS_MSK cpu_to_le32(1 << 1) |
737 | 737 | ||
738 | /* 1: Transmit Clear-To-Send to self before this frame. | 738 | /* 1: Transmit Clear-To-Send to self before this frame. |
739 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. | 739 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. |
740 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. */ | 740 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. */ |
741 | #define TX_CMD_FLG_CTS_MSK __constant_cpu_to_le32(1 << 2) | 741 | #define TX_CMD_FLG_CTS_MSK cpu_to_le32(1 << 2) |
742 | 742 | ||
743 | /* 1: Expect ACK from receiving station | 743 | /* 1: Expect ACK from receiving station |
744 | * 0: Don't expect ACK (MAC header's duration field s/b 0) | 744 | * 0: Don't expect ACK (MAC header's duration field s/b 0) |
745 | * Set this for unicast frames, but not broadcast/multicast. */ | 745 | * Set this for unicast frames, but not broadcast/multicast. */ |
746 | #define TX_CMD_FLG_ACK_MSK __constant_cpu_to_le32(1 << 3) | 746 | #define TX_CMD_FLG_ACK_MSK cpu_to_le32(1 << 3) |
747 | 747 | ||
748 | /* 1: Use rate scale table (see REPLY_TX_LINK_QUALITY_CMD). | 748 | /* 1: Use rate scale table (see REPLY_TX_LINK_QUALITY_CMD). |
749 | * Tx command's initial_rate_index indicates first rate to try; | 749 | * Tx command's initial_rate_index indicates first rate to try; |
750 | * uCode walks through table for additional Tx attempts. | 750 | * uCode walks through table for additional Tx attempts. |
751 | * 0: Use Tx rate/MCS from Tx command's rate_n_flags field. | 751 | * 0: Use Tx rate/MCS from Tx command's rate_n_flags field. |
752 | * This rate will be used for all Tx attempts; it will not be scaled. */ | 752 | * This rate will be used for all Tx attempts; it will not be scaled. */ |
753 | #define TX_CMD_FLG_STA_RATE_MSK __constant_cpu_to_le32(1 << 4) | 753 | #define TX_CMD_FLG_STA_RATE_MSK cpu_to_le32(1 << 4) |
754 | 754 | ||
755 | /* 1: Expect immediate block-ack. | 755 | /* 1: Expect immediate block-ack. |
756 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ | 756 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ |
757 | #define TX_CMD_FLG_IMM_BA_RSP_MASK __constant_cpu_to_le32(1 << 6) | 757 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) |
758 | 758 | ||
759 | /* 1: Frame requires full Tx-Op protection. | 759 | /* 1: Frame requires full Tx-Op protection. |
760 | * Set this if either RTS or CTS Tx Flag gets set. */ | 760 | * Set this if either RTS or CTS Tx Flag gets set. */ |
761 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK __constant_cpu_to_le32(1 << 7) | 761 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK cpu_to_le32(1 << 7) |
762 | 762 | ||
763 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. | 763 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. |
764 | * Set field to "0" to allow 3945 uCode to select antenna (normal usage). */ | 764 | * Set field to "0" to allow 3945 uCode to select antenna (normal usage). */ |
765 | #define TX_CMD_FLG_ANT_SEL_MSK __constant_cpu_to_le32(0xf00) | 765 | #define TX_CMD_FLG_ANT_SEL_MSK cpu_to_le32(0xf00) |
766 | #define TX_CMD_FLG_ANT_A_MSK __constant_cpu_to_le32(1 << 8) | 766 | #define TX_CMD_FLG_ANT_A_MSK cpu_to_le32(1 << 8) |
767 | #define TX_CMD_FLG_ANT_B_MSK __constant_cpu_to_le32(1 << 9) | 767 | #define TX_CMD_FLG_ANT_B_MSK cpu_to_le32(1 << 9) |
768 | 768 | ||
769 | /* 1: Ignore Bluetooth priority for this frame. | 769 | /* 1: Ignore Bluetooth priority for this frame. |
770 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ | 770 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ |
771 | #define TX_CMD_FLG_BT_DIS_MSK __constant_cpu_to_le32(1 << 12) | 771 | #define TX_CMD_FLG_BT_DIS_MSK cpu_to_le32(1 << 12) |
772 | 772 | ||
773 | /* 1: uCode overrides sequence control field in MAC header. | 773 | /* 1: uCode overrides sequence control field in MAC header. |
774 | * 0: Driver provides sequence control field in MAC header. | 774 | * 0: Driver provides sequence control field in MAC header. |
775 | * Set this for management frames, non-QOS data frames, non-unicast frames, | 775 | * Set this for management frames, non-QOS data frames, non-unicast frames, |
776 | * and also in Tx command embedded in REPLY_SCAN_CMD for active scans. */ | 776 | * and also in Tx command embedded in REPLY_SCAN_CMD for active scans. */ |
777 | #define TX_CMD_FLG_SEQ_CTL_MSK __constant_cpu_to_le32(1 << 13) | 777 | #define TX_CMD_FLG_SEQ_CTL_MSK cpu_to_le32(1 << 13) |
778 | 778 | ||
779 | /* 1: This frame is non-last MPDU; more fragments are coming. | 779 | /* 1: This frame is non-last MPDU; more fragments are coming. |
780 | * 0: Last fragment, or not using fragmentation. */ | 780 | * 0: Last fragment, or not using fragmentation. */ |
781 | #define TX_CMD_FLG_MORE_FRAG_MSK __constant_cpu_to_le32(1 << 14) | 781 | #define TX_CMD_FLG_MORE_FRAG_MSK cpu_to_le32(1 << 14) |
782 | 782 | ||
783 | /* 1: uCode calculates and inserts Timestamp Function (TSF) in outgoing frame. | 783 | /* 1: uCode calculates and inserts Timestamp Function (TSF) in outgoing frame. |
784 | * 0: No TSF required in outgoing frame. | 784 | * 0: No TSF required in outgoing frame. |
785 | * Set this for transmitting beacons and probe responses. */ | 785 | * Set this for transmitting beacons and probe responses. */ |
786 | #define TX_CMD_FLG_TSF_MSK __constant_cpu_to_le32(1 << 16) | 786 | #define TX_CMD_FLG_TSF_MSK cpu_to_le32(1 << 16) |
787 | 787 | ||
788 | /* 1: Driver inserted 2 bytes pad after the MAC header, for (required) dword | 788 | /* 1: Driver inserted 2 bytes pad after the MAC header, for (required) dword |
789 | * alignment of frame's payload data field. | 789 | * alignment of frame's payload data field. |
@@ -791,10 +791,10 @@ struct iwl3945_rx_frame { | |||
791 | * Set this for MAC headers with 26 or 30 bytes, i.e. those with QOS or ADDR4 | 791 | * Set this for MAC headers with 26 or 30 bytes, i.e. those with QOS or ADDR4 |
792 | * field (but not both). Driver must align frame data (i.e. data following | 792 | * field (but not both). Driver must align frame data (i.e. data following |
793 | * MAC header) to DWORD boundary. */ | 793 | * MAC header) to DWORD boundary. */ |
794 | #define TX_CMD_FLG_MH_PAD_MSK __constant_cpu_to_le32(1 << 20) | 794 | #define TX_CMD_FLG_MH_PAD_MSK cpu_to_le32(1 << 20) |
795 | 795 | ||
796 | /* HCCA-AP - disable duration overwriting. */ | 796 | /* HCCA-AP - disable duration overwriting. */ |
797 | #define TX_CMD_FLG_DUR_MSK __constant_cpu_to_le32(1 << 25) | 797 | #define TX_CMD_FLG_DUR_MSK cpu_to_le32(1 << 25) |
798 | 798 | ||
799 | /* | 799 | /* |
800 | * TX command security control | 800 | * TX command security control |
@@ -1158,9 +1158,9 @@ struct iwl3945_spectrum_notification { | |||
1158 | */ | 1158 | */ |
1159 | #define IWL_POWER_VEC_SIZE 5 | 1159 | #define IWL_POWER_VEC_SIZE 5 |
1160 | 1160 | ||
1161 | #define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK __constant_cpu_to_le32(1 << 0) | 1161 | #define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le32(1 << 0) |
1162 | #define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le32(1 << 2) | 1162 | #define IWL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le32(1 << 2) |
1163 | #define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le32(1 << 3) | 1163 | #define IWL_POWER_PCI_PM_MSK cpu_to_le32(1 << 3) |
1164 | struct iwl3945_powertable_cmd { | 1164 | struct iwl3945_powertable_cmd { |
1165 | __le32 flags; | 1165 | __le32 flags; |
1166 | __le32 rx_data_timeout; | 1166 | __le32 rx_data_timeout; |
@@ -1278,8 +1278,8 @@ struct iwl3945_ssid_ie { | |||
1278 | } __attribute__ ((packed)); | 1278 | } __attribute__ ((packed)); |
1279 | 1279 | ||
1280 | #define PROBE_OPTION_MAX 0x4 | 1280 | #define PROBE_OPTION_MAX 0x4 |
1281 | #define TX_CMD_LIFE_TIME_INFINITE __constant_cpu_to_le32(0xFFFFFFFF) | 1281 | #define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF) |
1282 | #define IWL_GOOD_CRC_TH __constant_cpu_to_le16(1) | 1282 | #define IWL_GOOD_CRC_TH cpu_to_le16(1) |
1283 | #define IWL_MAX_SCAN_SIZE 1024 | 1283 | #define IWL_MAX_SCAN_SIZE 1024 |
1284 | 1284 | ||
1285 | /* | 1285 | /* |
@@ -1379,7 +1379,7 @@ struct iwl3945_scan_cmd { | |||
1379 | } __attribute__ ((packed)); | 1379 | } __attribute__ ((packed)); |
1380 | 1380 | ||
1381 | /* Can abort will notify by complete notification with abort status. */ | 1381 | /* Can abort will notify by complete notification with abort status. */ |
1382 | #define CAN_ABORT_STATUS __constant_cpu_to_le32(0x1) | 1382 | #define CAN_ABORT_STATUS cpu_to_le32(0x1) |
1383 | /* complete notification statuses */ | 1383 | /* complete notification statuses */ |
1384 | #define ABORT_STATUS 0x2 | 1384 | #define ABORT_STATUS 0x2 |
1385 | 1385 | ||
@@ -1572,8 +1572,8 @@ struct statistics_general { | |||
1572 | * STATISTICS_NOTIFICATIONs after received beacons (see below). This flag | 1572 | * STATISTICS_NOTIFICATIONs after received beacons (see below). This flag |
1573 | * does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself. | 1573 | * does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself. |
1574 | */ | 1574 | */ |
1575 | #define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */ | 1575 | #define IWL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */ |
1576 | #define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */ | 1576 | #define IWL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */ |
1577 | struct iwl3945_statistics_cmd { | 1577 | struct iwl3945_statistics_cmd { |
1578 | __le32 configuration_flags; /* IWL_STATS_CONF_* */ | 1578 | __le32 configuration_flags; /* IWL_STATS_CONF_* */ |
1579 | } __attribute__ ((packed)); | 1579 | } __attribute__ ((packed)); |
@@ -1593,8 +1593,8 @@ struct iwl3945_statistics_cmd { | |||
1593 | * appropriately so that each notification contains statistics for only the | 1593 | * appropriately so that each notification contains statistics for only the |
1594 | * one channel that has just been scanned. | 1594 | * one channel that has just been scanned. |
1595 | */ | 1595 | */ |
1596 | #define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2) | 1596 | #define STATISTICS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2) |
1597 | #define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8) | 1597 | #define STATISTICS_REPLY_FLG_FAT_MODE_MSK cpu_to_le32(0x8) |
1598 | struct iwl3945_notif_statistics { | 1598 | struct iwl3945_notif_statistics { |
1599 | __le32 flag; | 1599 | __le32 flag; |
1600 | struct statistics_rx rx; | 1600 | struct statistics_rx rx; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 77615045de69..0591aec89dd0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -172,8 +172,8 @@ enum { | |||
172 | #define QUEUE_TO_SEQ(q) (((q) & 0x1f) << 8) | 172 | #define QUEUE_TO_SEQ(q) (((q) & 0x1f) << 8) |
173 | #define SEQ_TO_INDEX(s) ((s) & 0xff) | 173 | #define SEQ_TO_INDEX(s) ((s) & 0xff) |
174 | #define INDEX_TO_SEQ(i) ((i) & 0xff) | 174 | #define INDEX_TO_SEQ(i) ((i) & 0xff) |
175 | #define SEQ_HUGE_FRAME __constant_cpu_to_le16(0x4000) | 175 | #define SEQ_HUGE_FRAME cpu_to_le16(0x4000) |
176 | #define SEQ_RX_FRAME __constant_cpu_to_le16(0x8000) | 176 | #define SEQ_RX_FRAME cpu_to_le16(0x8000) |
177 | 177 | ||
178 | /** | 178 | /** |
179 | * struct iwl_cmd_header | 179 | * struct iwl_cmd_header |
@@ -368,7 +368,7 @@ struct iwl5000_tx_power_dbm_cmd { | |||
368 | * | 368 | * |
369 | *****************************************************************************/ | 369 | *****************************************************************************/ |
370 | 370 | ||
371 | #define UCODE_VALID_OK __constant_cpu_to_le32(0x1) | 371 | #define UCODE_VALID_OK cpu_to_le32(0x1) |
372 | #define INITIALIZE_SUBTYPE (9) | 372 | #define INITIALIZE_SUBTYPE (9) |
373 | 373 | ||
374 | /* | 374 | /* |
@@ -517,75 +517,75 @@ enum { | |||
517 | }; | 517 | }; |
518 | 518 | ||
519 | 519 | ||
520 | #define RXON_RX_CHAIN_DRIVER_FORCE_MSK __constant_cpu_to_le16(0x1 << 0) | 520 | #define RXON_RX_CHAIN_DRIVER_FORCE_MSK cpu_to_le16(0x1 << 0) |
521 | #define RXON_RX_CHAIN_VALID_MSK __constant_cpu_to_le16(0x7 << 1) | 521 | #define RXON_RX_CHAIN_VALID_MSK cpu_to_le16(0x7 << 1) |
522 | #define RXON_RX_CHAIN_VALID_POS (1) | 522 | #define RXON_RX_CHAIN_VALID_POS (1) |
523 | #define RXON_RX_CHAIN_FORCE_SEL_MSK __constant_cpu_to_le16(0x7 << 4) | 523 | #define RXON_RX_CHAIN_FORCE_SEL_MSK cpu_to_le16(0x7 << 4) |
524 | #define RXON_RX_CHAIN_FORCE_SEL_POS (4) | 524 | #define RXON_RX_CHAIN_FORCE_SEL_POS (4) |
525 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK __constant_cpu_to_le16(0x7 << 7) | 525 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK cpu_to_le16(0x7 << 7) |
526 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_POS (7) | 526 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_POS (7) |
527 | #define RXON_RX_CHAIN_CNT_MSK __constant_cpu_to_le16(0x3 << 10) | 527 | #define RXON_RX_CHAIN_CNT_MSK cpu_to_le16(0x3 << 10) |
528 | #define RXON_RX_CHAIN_CNT_POS (10) | 528 | #define RXON_RX_CHAIN_CNT_POS (10) |
529 | #define RXON_RX_CHAIN_MIMO_CNT_MSK __constant_cpu_to_le16(0x3 << 12) | 529 | #define RXON_RX_CHAIN_MIMO_CNT_MSK cpu_to_le16(0x3 << 12) |
530 | #define RXON_RX_CHAIN_MIMO_CNT_POS (12) | 530 | #define RXON_RX_CHAIN_MIMO_CNT_POS (12) |
531 | #define RXON_RX_CHAIN_MIMO_FORCE_MSK __constant_cpu_to_le16(0x1 << 14) | 531 | #define RXON_RX_CHAIN_MIMO_FORCE_MSK cpu_to_le16(0x1 << 14) |
532 | #define RXON_RX_CHAIN_MIMO_FORCE_POS (14) | 532 | #define RXON_RX_CHAIN_MIMO_FORCE_POS (14) |
533 | 533 | ||
534 | /* rx_config flags */ | 534 | /* rx_config flags */ |
535 | /* band & modulation selection */ | 535 | /* band & modulation selection */ |
536 | #define RXON_FLG_BAND_24G_MSK __constant_cpu_to_le32(1 << 0) | 536 | #define RXON_FLG_BAND_24G_MSK cpu_to_le32(1 << 0) |
537 | #define RXON_FLG_CCK_MSK __constant_cpu_to_le32(1 << 1) | 537 | #define RXON_FLG_CCK_MSK cpu_to_le32(1 << 1) |
538 | /* auto detection enable */ | 538 | /* auto detection enable */ |
539 | #define RXON_FLG_AUTO_DETECT_MSK __constant_cpu_to_le32(1 << 2) | 539 | #define RXON_FLG_AUTO_DETECT_MSK cpu_to_le32(1 << 2) |
540 | /* TGg protection when tx */ | 540 | /* TGg protection when tx */ |
541 | #define RXON_FLG_TGG_PROTECT_MSK __constant_cpu_to_le32(1 << 3) | 541 | #define RXON_FLG_TGG_PROTECT_MSK cpu_to_le32(1 << 3) |
542 | /* cck short slot & preamble */ | 542 | /* cck short slot & preamble */ |
543 | #define RXON_FLG_SHORT_SLOT_MSK __constant_cpu_to_le32(1 << 4) | 543 | #define RXON_FLG_SHORT_SLOT_MSK cpu_to_le32(1 << 4) |
544 | #define RXON_FLG_SHORT_PREAMBLE_MSK __constant_cpu_to_le32(1 << 5) | 544 | #define RXON_FLG_SHORT_PREAMBLE_MSK cpu_to_le32(1 << 5) |
545 | /* antenna selection */ | 545 | /* antenna selection */ |
546 | #define RXON_FLG_DIS_DIV_MSK __constant_cpu_to_le32(1 << 7) | 546 | #define RXON_FLG_DIS_DIV_MSK cpu_to_le32(1 << 7) |
547 | #define RXON_FLG_ANT_SEL_MSK __constant_cpu_to_le32(0x0f00) | 547 | #define RXON_FLG_ANT_SEL_MSK cpu_to_le32(0x0f00) |
548 | #define RXON_FLG_ANT_A_MSK __constant_cpu_to_le32(1 << 8) | 548 | #define RXON_FLG_ANT_A_MSK cpu_to_le32(1 << 8) |
549 | #define RXON_FLG_ANT_B_MSK __constant_cpu_to_le32(1 << 9) | 549 | #define RXON_FLG_ANT_B_MSK cpu_to_le32(1 << 9) |
550 | /* radar detection enable */ | 550 | /* radar detection enable */ |
551 | #define RXON_FLG_RADAR_DETECT_MSK __constant_cpu_to_le32(1 << 12) | 551 | #define RXON_FLG_RADAR_DETECT_MSK cpu_to_le32(1 << 12) |
552 | #define RXON_FLG_TGJ_NARROW_BAND_MSK __constant_cpu_to_le32(1 << 13) | 552 | #define RXON_FLG_TGJ_NARROW_BAND_MSK cpu_to_le32(1 << 13) |
553 | /* rx response to host with 8-byte TSF | 553 | /* rx response to host with 8-byte TSF |
554 | * (according to ON_AIR deassertion) */ | 554 | * (according to ON_AIR deassertion) */ |
555 | #define RXON_FLG_TSF2HOST_MSK __constant_cpu_to_le32(1 << 15) | 555 | #define RXON_FLG_TSF2HOST_MSK cpu_to_le32(1 << 15) |
556 | 556 | ||
557 | 557 | ||
558 | /* HT flags */ | 558 | /* HT flags */ |
559 | #define RXON_FLG_CTRL_CHANNEL_LOC_POS (22) | 559 | #define RXON_FLG_CTRL_CHANNEL_LOC_POS (22) |
560 | #define RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK __constant_cpu_to_le32(0x1 << 22) | 560 | #define RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK cpu_to_le32(0x1 << 22) |
561 | 561 | ||
562 | #define RXON_FLG_HT_OPERATING_MODE_POS (23) | 562 | #define RXON_FLG_HT_OPERATING_MODE_POS (23) |
563 | 563 | ||
564 | #define RXON_FLG_HT_PROT_MSK __constant_cpu_to_le32(0x1 << 23) | 564 | #define RXON_FLG_HT_PROT_MSK cpu_to_le32(0x1 << 23) |
565 | #define RXON_FLG_FAT_PROT_MSK __constant_cpu_to_le32(0x2 << 23) | 565 | #define RXON_FLG_FAT_PROT_MSK cpu_to_le32(0x2 << 23) |
566 | 566 | ||
567 | #define RXON_FLG_CHANNEL_MODE_POS (25) | 567 | #define RXON_FLG_CHANNEL_MODE_POS (25) |
568 | #define RXON_FLG_CHANNEL_MODE_MSK __constant_cpu_to_le32(0x3 << 25) | 568 | #define RXON_FLG_CHANNEL_MODE_MSK cpu_to_le32(0x3 << 25) |
569 | #define RXON_FLG_CHANNEL_MODE_PURE_40_MSK __constant_cpu_to_le32(0x1 << 25) | 569 | #define RXON_FLG_CHANNEL_MODE_PURE_40_MSK cpu_to_le32(0x1 << 25) |
570 | #define RXON_FLG_CHANNEL_MODE_MIXED_MSK __constant_cpu_to_le32(0x2 << 25) | 570 | #define RXON_FLG_CHANNEL_MODE_MIXED_MSK cpu_to_le32(0x2 << 25) |
571 | /* CTS to self (if spec allows) flag */ | 571 | /* CTS to self (if spec allows) flag */ |
572 | #define RXON_FLG_SELF_CTS_EN __constant_cpu_to_le32(0x1<<30) | 572 | #define RXON_FLG_SELF_CTS_EN cpu_to_le32(0x1<<30) |
573 | 573 | ||
574 | /* rx_config filter flags */ | 574 | /* rx_config filter flags */ |
575 | /* accept all data frames */ | 575 | /* accept all data frames */ |
576 | #define RXON_FILTER_PROMISC_MSK __constant_cpu_to_le32(1 << 0) | 576 | #define RXON_FILTER_PROMISC_MSK cpu_to_le32(1 << 0) |
577 | /* pass control & management to host */ | 577 | /* pass control & management to host */ |
578 | #define RXON_FILTER_CTL2HOST_MSK __constant_cpu_to_le32(1 << 1) | 578 | #define RXON_FILTER_CTL2HOST_MSK cpu_to_le32(1 << 1) |
579 | /* accept multi-cast */ | 579 | /* accept multi-cast */ |
580 | #define RXON_FILTER_ACCEPT_GRP_MSK __constant_cpu_to_le32(1 << 2) | 580 | #define RXON_FILTER_ACCEPT_GRP_MSK cpu_to_le32(1 << 2) |
581 | /* don't decrypt uni-cast frames */ | 581 | /* don't decrypt uni-cast frames */ |
582 | #define RXON_FILTER_DIS_DECRYPT_MSK __constant_cpu_to_le32(1 << 3) | 582 | #define RXON_FILTER_DIS_DECRYPT_MSK cpu_to_le32(1 << 3) |
583 | /* don't decrypt multi-cast frames */ | 583 | /* don't decrypt multi-cast frames */ |
584 | #define RXON_FILTER_DIS_GRP_DECRYPT_MSK __constant_cpu_to_le32(1 << 4) | 584 | #define RXON_FILTER_DIS_GRP_DECRYPT_MSK cpu_to_le32(1 << 4) |
585 | /* STA is associated */ | 585 | /* STA is associated */ |
586 | #define RXON_FILTER_ASSOC_MSK __constant_cpu_to_le32(1 << 5) | 586 | #define RXON_FILTER_ASSOC_MSK cpu_to_le32(1 << 5) |
587 | /* transfer to host non bssid beacons in associated state */ | 587 | /* transfer to host non bssid beacons in associated state */ |
588 | #define RXON_FILTER_BCON_AWARE_MSK __constant_cpu_to_le32(1 << 6) | 588 | #define RXON_FILTER_BCON_AWARE_MSK cpu_to_le32(1 << 6) |
589 | 589 | ||
590 | /** | 590 | /** |
591 | * REPLY_RXON = 0x10 (command, has simple generic response) | 591 | * REPLY_RXON = 0x10 (command, has simple generic response) |
@@ -745,9 +745,9 @@ struct iwl_ac_qos { | |||
745 | } __attribute__ ((packed)); | 745 | } __attribute__ ((packed)); |
746 | 746 | ||
747 | /* QoS flags defines */ | 747 | /* QoS flags defines */ |
748 | #define QOS_PARAM_FLG_UPDATE_EDCA_MSK __constant_cpu_to_le32(0x01) | 748 | #define QOS_PARAM_FLG_UPDATE_EDCA_MSK cpu_to_le32(0x01) |
749 | #define QOS_PARAM_FLG_TGN_MSK __constant_cpu_to_le32(0x02) | 749 | #define QOS_PARAM_FLG_TGN_MSK cpu_to_le32(0x02) |
750 | #define QOS_PARAM_FLG_TXOP_TYPE_MSK __constant_cpu_to_le32(0x10) | 750 | #define QOS_PARAM_FLG_TXOP_TYPE_MSK cpu_to_le32(0x10) |
751 | 751 | ||
752 | /* Number of Access Categories (AC) (EDCA), queues 0..3 */ | 752 | /* Number of Access Categories (AC) (EDCA), queues 0..3 */ |
753 | #define AC_NUM 4 | 753 | #define AC_NUM 4 |
@@ -784,34 +784,34 @@ struct iwl_qosparam_cmd { | |||
784 | #define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/ | 784 | #define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/ |
785 | #define IWL_INVALID_STATION 255 | 785 | #define IWL_INVALID_STATION 255 |
786 | 786 | ||
787 | #define STA_FLG_PWR_SAVE_MSK __constant_cpu_to_le32(1 << 8); | 787 | #define STA_FLG_PWR_SAVE_MSK cpu_to_le32(1 << 8); |
788 | #define STA_FLG_RTS_MIMO_PROT_MSK __constant_cpu_to_le32(1 << 17) | 788 | #define STA_FLG_RTS_MIMO_PROT_MSK cpu_to_le32(1 << 17) |
789 | #define STA_FLG_AGG_MPDU_8US_MSK __constant_cpu_to_le32(1 << 18) | 789 | #define STA_FLG_AGG_MPDU_8US_MSK cpu_to_le32(1 << 18) |
790 | #define STA_FLG_MAX_AGG_SIZE_POS (19) | 790 | #define STA_FLG_MAX_AGG_SIZE_POS (19) |
791 | #define STA_FLG_MAX_AGG_SIZE_MSK __constant_cpu_to_le32(3 << 19) | 791 | #define STA_FLG_MAX_AGG_SIZE_MSK cpu_to_le32(3 << 19) |
792 | #define STA_FLG_FAT_EN_MSK __constant_cpu_to_le32(1 << 21) | 792 | #define STA_FLG_FAT_EN_MSK cpu_to_le32(1 << 21) |
793 | #define STA_FLG_MIMO_DIS_MSK __constant_cpu_to_le32(1 << 22) | 793 | #define STA_FLG_MIMO_DIS_MSK cpu_to_le32(1 << 22) |
794 | #define STA_FLG_AGG_MPDU_DENSITY_POS (23) | 794 | #define STA_FLG_AGG_MPDU_DENSITY_POS (23) |
795 | #define STA_FLG_AGG_MPDU_DENSITY_MSK __constant_cpu_to_le32(7 << 23) | 795 | #define STA_FLG_AGG_MPDU_DENSITY_MSK cpu_to_le32(7 << 23) |
796 | 796 | ||
797 | /* Use in mode field. 1: modify existing entry, 0: add new station entry */ | 797 | /* Use in mode field. 1: modify existing entry, 0: add new station entry */ |
798 | #define STA_CONTROL_MODIFY_MSK 0x01 | 798 | #define STA_CONTROL_MODIFY_MSK 0x01 |
799 | 799 | ||
800 | /* key flags __le16*/ | 800 | /* key flags __le16*/ |
801 | #define STA_KEY_FLG_ENCRYPT_MSK __constant_cpu_to_le16(0x0007) | 801 | #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007) |
802 | #define STA_KEY_FLG_NO_ENC __constant_cpu_to_le16(0x0000) | 802 | #define STA_KEY_FLG_NO_ENC cpu_to_le16(0x0000) |
803 | #define STA_KEY_FLG_WEP __constant_cpu_to_le16(0x0001) | 803 | #define STA_KEY_FLG_WEP cpu_to_le16(0x0001) |
804 | #define STA_KEY_FLG_CCMP __constant_cpu_to_le16(0x0002) | 804 | #define STA_KEY_FLG_CCMP cpu_to_le16(0x0002) |
805 | #define STA_KEY_FLG_TKIP __constant_cpu_to_le16(0x0003) | 805 | #define STA_KEY_FLG_TKIP cpu_to_le16(0x0003) |
806 | 806 | ||
807 | #define STA_KEY_FLG_KEYID_POS 8 | 807 | #define STA_KEY_FLG_KEYID_POS 8 |
808 | #define STA_KEY_FLG_INVALID __constant_cpu_to_le16(0x0800) | 808 | #define STA_KEY_FLG_INVALID cpu_to_le16(0x0800) |
809 | /* wep key is either from global key (0) or from station info array (1) */ | 809 | /* wep key is either from global key (0) or from station info array (1) */ |
810 | #define STA_KEY_FLG_MAP_KEY_MSK __constant_cpu_to_le16(0x0008) | 810 | #define STA_KEY_FLG_MAP_KEY_MSK cpu_to_le16(0x0008) |
811 | 811 | ||
812 | /* wep key in STA: 5-bytes (0) or 13-bytes (1) */ | 812 | /* wep key in STA: 5-bytes (0) or 13-bytes (1) */ |
813 | #define STA_KEY_FLG_KEY_SIZE_MSK __constant_cpu_to_le16(0x1000) | 813 | #define STA_KEY_FLG_KEY_SIZE_MSK cpu_to_le16(0x1000) |
814 | #define STA_KEY_MULTICAST_MSK __constant_cpu_to_le16(0x4000) | 814 | #define STA_KEY_MULTICAST_MSK cpu_to_le16(0x4000) |
815 | #define STA_KEY_MAX_NUM 8 | 815 | #define STA_KEY_MAX_NUM 8 |
816 | 816 | ||
817 | /* Flags indicate whether to modify vs. don't change various station params */ | 817 | /* Flags indicate whether to modify vs. don't change various station params */ |
@@ -1036,14 +1036,14 @@ struct iwl4965_rx_frame_hdr { | |||
1036 | u8 payload[0]; | 1036 | u8 payload[0]; |
1037 | } __attribute__ ((packed)); | 1037 | } __attribute__ ((packed)); |
1038 | 1038 | ||
1039 | #define RX_RES_STATUS_NO_CRC32_ERROR __constant_cpu_to_le32(1 << 0) | 1039 | #define RX_RES_STATUS_NO_CRC32_ERROR cpu_to_le32(1 << 0) |
1040 | #define RX_RES_STATUS_NO_RXE_OVERFLOW __constant_cpu_to_le32(1 << 1) | 1040 | #define RX_RES_STATUS_NO_RXE_OVERFLOW cpu_to_le32(1 << 1) |
1041 | 1041 | ||
1042 | #define RX_RES_PHY_FLAGS_BAND_24_MSK __constant_cpu_to_le16(1 << 0) | 1042 | #define RX_RES_PHY_FLAGS_BAND_24_MSK cpu_to_le16(1 << 0) |
1043 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK __constant_cpu_to_le16(1 << 1) | 1043 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK cpu_to_le16(1 << 1) |
1044 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK __constant_cpu_to_le16(1 << 2) | 1044 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK cpu_to_le16(1 << 2) |
1045 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK __constant_cpu_to_le16(1 << 3) | 1045 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK cpu_to_le16(1 << 3) |
1046 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK __constant_cpu_to_le16(0xf0) | 1046 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK cpu_to_le16(0xf0) |
1047 | 1047 | ||
1048 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) | 1048 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) |
1049 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) | 1049 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) |
@@ -1174,21 +1174,21 @@ struct iwl4965_rx_mpdu_res_start { | |||
1174 | /* 1: Use RTS/CTS protocol or CTS-to-self if spec allows it | 1174 | /* 1: Use RTS/CTS protocol or CTS-to-self if spec allows it |
1175 | * before this frame. if CTS-to-self required check | 1175 | * before this frame. if CTS-to-self required check |
1176 | * RXON_FLG_SELF_CTS_EN status. */ | 1176 | * RXON_FLG_SELF_CTS_EN status. */ |
1177 | #define TX_CMD_FLG_RTS_CTS_MSK __constant_cpu_to_le32(1 << 0) | 1177 | #define TX_CMD_FLG_RTS_CTS_MSK cpu_to_le32(1 << 0) |
1178 | 1178 | ||
1179 | /* 1: Use Request-To-Send protocol before this frame. | 1179 | /* 1: Use Request-To-Send protocol before this frame. |
1180 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. */ | 1180 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. */ |
1181 | #define TX_CMD_FLG_RTS_MSK __constant_cpu_to_le32(1 << 1) | 1181 | #define TX_CMD_FLG_RTS_MSK cpu_to_le32(1 << 1) |
1182 | 1182 | ||
1183 | /* 1: Transmit Clear-To-Send to self before this frame. | 1183 | /* 1: Transmit Clear-To-Send to self before this frame. |
1184 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. | 1184 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. |
1185 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. */ | 1185 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. */ |
1186 | #define TX_CMD_FLG_CTS_MSK __constant_cpu_to_le32(1 << 2) | 1186 | #define TX_CMD_FLG_CTS_MSK cpu_to_le32(1 << 2) |
1187 | 1187 | ||
1188 | /* 1: Expect ACK from receiving station | 1188 | /* 1: Expect ACK from receiving station |
1189 | * 0: Don't expect ACK (MAC header's duration field s/b 0) | 1189 | * 0: Don't expect ACK (MAC header's duration field s/b 0) |
1190 | * Set this for unicast frames, but not broadcast/multicast. */ | 1190 | * Set this for unicast frames, but not broadcast/multicast. */ |
1191 | #define TX_CMD_FLG_ACK_MSK __constant_cpu_to_le32(1 << 3) | 1191 | #define TX_CMD_FLG_ACK_MSK cpu_to_le32(1 << 3) |
1192 | 1192 | ||
1193 | /* For 4965: | 1193 | /* For 4965: |
1194 | * 1: Use rate scale table (see REPLY_TX_LINK_QUALITY_CMD). | 1194 | * 1: Use rate scale table (see REPLY_TX_LINK_QUALITY_CMD). |
@@ -1196,40 +1196,40 @@ struct iwl4965_rx_mpdu_res_start { | |||
1196 | * uCode walks through table for additional Tx attempts. | 1196 | * uCode walks through table for additional Tx attempts. |
1197 | * 0: Use Tx rate/MCS from Tx command's rate_n_flags field. | 1197 | * 0: Use Tx rate/MCS from Tx command's rate_n_flags field. |
1198 | * This rate will be used for all Tx attempts; it will not be scaled. */ | 1198 | * This rate will be used for all Tx attempts; it will not be scaled. */ |
1199 | #define TX_CMD_FLG_STA_RATE_MSK __constant_cpu_to_le32(1 << 4) | 1199 | #define TX_CMD_FLG_STA_RATE_MSK cpu_to_le32(1 << 4) |
1200 | 1200 | ||
1201 | /* 1: Expect immediate block-ack. | 1201 | /* 1: Expect immediate block-ack. |
1202 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ | 1202 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ |
1203 | #define TX_CMD_FLG_IMM_BA_RSP_MASK __constant_cpu_to_le32(1 << 6) | 1203 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) |
1204 | 1204 | ||
1205 | /* 1: Frame requires full Tx-Op protection. | 1205 | /* 1: Frame requires full Tx-Op protection. |
1206 | * Set this if either RTS or CTS Tx Flag gets set. */ | 1206 | * Set this if either RTS or CTS Tx Flag gets set. */ |
1207 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK __constant_cpu_to_le32(1 << 7) | 1207 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK cpu_to_le32(1 << 7) |
1208 | 1208 | ||
1209 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. | 1209 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. |
1210 | * Set field to "0" to allow 3945 uCode to select antenna (normal usage). */ | 1210 | * Set field to "0" to allow 3945 uCode to select antenna (normal usage). */ |
1211 | #define TX_CMD_FLG_ANT_SEL_MSK __constant_cpu_to_le32(0xf00) | 1211 | #define TX_CMD_FLG_ANT_SEL_MSK cpu_to_le32(0xf00) |
1212 | #define TX_CMD_FLG_ANT_A_MSK __constant_cpu_to_le32(1 << 8) | 1212 | #define TX_CMD_FLG_ANT_A_MSK cpu_to_le32(1 << 8) |
1213 | #define TX_CMD_FLG_ANT_B_MSK __constant_cpu_to_le32(1 << 9) | 1213 | #define TX_CMD_FLG_ANT_B_MSK cpu_to_le32(1 << 9) |
1214 | 1214 | ||
1215 | /* 1: Ignore Bluetooth priority for this frame. | 1215 | /* 1: Ignore Bluetooth priority for this frame. |
1216 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ | 1216 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ |
1217 | #define TX_CMD_FLG_BT_DIS_MSK __constant_cpu_to_le32(1 << 12) | 1217 | #define TX_CMD_FLG_BT_DIS_MSK cpu_to_le32(1 << 12) |
1218 | 1218 | ||
1219 | /* 1: uCode overrides sequence control field in MAC header. | 1219 | /* 1: uCode overrides sequence control field in MAC header. |
1220 | * 0: Driver provides sequence control field in MAC header. | 1220 | * 0: Driver provides sequence control field in MAC header. |
1221 | * Set this for management frames, non-QOS data frames, non-unicast frames, | 1221 | * Set this for management frames, non-QOS data frames, non-unicast frames, |
1222 | * and also in Tx command embedded in REPLY_SCAN_CMD for active scans. */ | 1222 | * and also in Tx command embedded in REPLY_SCAN_CMD for active scans. */ |
1223 | #define TX_CMD_FLG_SEQ_CTL_MSK __constant_cpu_to_le32(1 << 13) | 1223 | #define TX_CMD_FLG_SEQ_CTL_MSK cpu_to_le32(1 << 13) |
1224 | 1224 | ||
1225 | /* 1: This frame is non-last MPDU; more fragments are coming. | 1225 | /* 1: This frame is non-last MPDU; more fragments are coming. |
1226 | * 0: Last fragment, or not using fragmentation. */ | 1226 | * 0: Last fragment, or not using fragmentation. */ |
1227 | #define TX_CMD_FLG_MORE_FRAG_MSK __constant_cpu_to_le32(1 << 14) | 1227 | #define TX_CMD_FLG_MORE_FRAG_MSK cpu_to_le32(1 << 14) |
1228 | 1228 | ||
1229 | /* 1: uCode calculates and inserts Timestamp Function (TSF) in outgoing frame. | 1229 | /* 1: uCode calculates and inserts Timestamp Function (TSF) in outgoing frame. |
1230 | * 0: No TSF required in outgoing frame. | 1230 | * 0: No TSF required in outgoing frame. |
1231 | * Set this for transmitting beacons and probe responses. */ | 1231 | * Set this for transmitting beacons and probe responses. */ |
1232 | #define TX_CMD_FLG_TSF_MSK __constant_cpu_to_le32(1 << 16) | 1232 | #define TX_CMD_FLG_TSF_MSK cpu_to_le32(1 << 16) |
1233 | 1233 | ||
1234 | /* 1: Driver inserted 2 bytes pad after the MAC header, for (required) dword | 1234 | /* 1: Driver inserted 2 bytes pad after the MAC header, for (required) dword |
1235 | * alignment of frame's payload data field. | 1235 | * alignment of frame's payload data field. |
@@ -1237,14 +1237,14 @@ struct iwl4965_rx_mpdu_res_start { | |||
1237 | * Set this for MAC headers with 26 or 30 bytes, i.e. those with QOS or ADDR4 | 1237 | * Set this for MAC headers with 26 or 30 bytes, i.e. those with QOS or ADDR4 |
1238 | * field (but not both). Driver must align frame data (i.e. data following | 1238 | * field (but not both). Driver must align frame data (i.e. data following |
1239 | * MAC header) to DWORD boundary. */ | 1239 | * MAC header) to DWORD boundary. */ |
1240 | #define TX_CMD_FLG_MH_PAD_MSK __constant_cpu_to_le32(1 << 20) | 1240 | #define TX_CMD_FLG_MH_PAD_MSK cpu_to_le32(1 << 20) |
1241 | 1241 | ||
1242 | /* accelerate aggregation support | 1242 | /* accelerate aggregation support |
1243 | * 0 - no CCMP encryption; 1 - CCMP encryption */ | 1243 | * 0 - no CCMP encryption; 1 - CCMP encryption */ |
1244 | #define TX_CMD_FLG_AGG_CCMP_MSK __constant_cpu_to_le32(1 << 22) | 1244 | #define TX_CMD_FLG_AGG_CCMP_MSK cpu_to_le32(1 << 22) |
1245 | 1245 | ||
1246 | /* HCCA-AP - disable duration overwriting. */ | 1246 | /* HCCA-AP - disable duration overwriting. */ |
1247 | #define TX_CMD_FLG_DUR_MSK __constant_cpu_to_le32(1 << 25) | 1247 | #define TX_CMD_FLG_DUR_MSK cpu_to_le32(1 << 25) |
1248 | 1248 | ||
1249 | 1249 | ||
1250 | /* | 1250 | /* |
@@ -2076,10 +2076,10 @@ struct iwl4965_spectrum_notification { | |||
2076 | */ | 2076 | */ |
2077 | #define IWL_POWER_VEC_SIZE 5 | 2077 | #define IWL_POWER_VEC_SIZE 5 |
2078 | 2078 | ||
2079 | #define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK __constant_cpu_to_le16(1 << 0) | 2079 | #define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(1 << 0) |
2080 | #define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le16(1 << 2) | 2080 | #define IWL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le16(1 << 2) |
2081 | #define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le16(1 << 3) | 2081 | #define IWL_POWER_PCI_PM_MSK cpu_to_le16(1 << 3) |
2082 | #define IWL_POWER_FAST_PD __constant_cpu_to_le16(1 << 4) | 2082 | #define IWL_POWER_FAST_PD cpu_to_le16(1 << 4) |
2083 | 2083 | ||
2084 | struct iwl_powertable_cmd { | 2084 | struct iwl_powertable_cmd { |
2085 | __le16 flags; | 2085 | __le16 flags; |
@@ -2153,8 +2153,8 @@ struct iwl_ct_kill_config { | |||
2153 | * | 2153 | * |
2154 | *****************************************************************************/ | 2154 | *****************************************************************************/ |
2155 | 2155 | ||
2156 | #define SCAN_CHANNEL_TYPE_PASSIVE __constant_cpu_to_le32(0) | 2156 | #define SCAN_CHANNEL_TYPE_PASSIVE cpu_to_le32(0) |
2157 | #define SCAN_CHANNEL_TYPE_ACTIVE __constant_cpu_to_le32(1) | 2157 | #define SCAN_CHANNEL_TYPE_ACTIVE cpu_to_le32(1) |
2158 | 2158 | ||
2159 | /** | 2159 | /** |
2160 | * struct iwl_scan_channel - entry in REPLY_SCAN_CMD channel table | 2160 | * struct iwl_scan_channel - entry in REPLY_SCAN_CMD channel table |
@@ -2205,8 +2205,8 @@ struct iwl_ssid_ie { | |||
2205 | } __attribute__ ((packed)); | 2205 | } __attribute__ ((packed)); |
2206 | 2206 | ||
2207 | #define PROBE_OPTION_MAX 0x14 | 2207 | #define PROBE_OPTION_MAX 0x14 |
2208 | #define TX_CMD_LIFE_TIME_INFINITE __constant_cpu_to_le32(0xFFFFFFFF) | 2208 | #define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF) |
2209 | #define IWL_GOOD_CRC_TH __constant_cpu_to_le16(1) | 2209 | #define IWL_GOOD_CRC_TH cpu_to_le16(1) |
2210 | #define IWL_MAX_SCAN_SIZE 1024 | 2210 | #define IWL_MAX_SCAN_SIZE 1024 |
2211 | 2211 | ||
2212 | /* | 2212 | /* |
@@ -2306,7 +2306,7 @@ struct iwl_scan_cmd { | |||
2306 | } __attribute__ ((packed)); | 2306 | } __attribute__ ((packed)); |
2307 | 2307 | ||
2308 | /* Can abort will notify by complete notification with abort status. */ | 2308 | /* Can abort will notify by complete notification with abort status. */ |
2309 | #define CAN_ABORT_STATUS __constant_cpu_to_le32(0x1) | 2309 | #define CAN_ABORT_STATUS cpu_to_le32(0x1) |
2310 | /* complete notification statuses */ | 2310 | /* complete notification statuses */ |
2311 | #define ABORT_STATUS 0x2 | 2311 | #define ABORT_STATUS 0x2 |
2312 | 2312 | ||
@@ -2568,8 +2568,8 @@ struct statistics_general { | |||
2568 | * STATISTICS_NOTIFICATIONs after received beacons (see below). This flag | 2568 | * STATISTICS_NOTIFICATIONs after received beacons (see below). This flag |
2569 | * does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself. | 2569 | * does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself. |
2570 | */ | 2570 | */ |
2571 | #define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */ | 2571 | #define IWL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */ |
2572 | #define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */ | 2572 | #define IWL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */ |
2573 | struct iwl_statistics_cmd { | 2573 | struct iwl_statistics_cmd { |
2574 | __le32 configuration_flags; /* IWL_STATS_CONF_* */ | 2574 | __le32 configuration_flags; /* IWL_STATS_CONF_* */ |
2575 | } __attribute__ ((packed)); | 2575 | } __attribute__ ((packed)); |
@@ -2589,8 +2589,8 @@ struct iwl_statistics_cmd { | |||
2589 | * appropriately so that each notification contains statistics for only the | 2589 | * appropriately so that each notification contains statistics for only the |
2590 | * one channel that has just been scanned. | 2590 | * one channel that has just been scanned. |
2591 | */ | 2591 | */ |
2592 | #define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2) | 2592 | #define STATISTICS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2) |
2593 | #define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8) | 2593 | #define STATISTICS_REPLY_FLG_FAT_MODE_MSK cpu_to_le32(0x8) |
2594 | struct iwl_notif_statistics { | 2594 | struct iwl_notif_statistics { |
2595 | __le32 flag; | 2595 | __le32 flag; |
2596 | struct statistics_rx rx; | 2596 | struct statistics_rx rx; |
@@ -2806,8 +2806,8 @@ struct iwl4965_missed_beacon_notif { | |||
2806 | #define HD_OFDM_ENERGY_TH_IN_INDEX (10) | 2806 | #define HD_OFDM_ENERGY_TH_IN_INDEX (10) |
2807 | 2807 | ||
2808 | /* Control field in struct iwl_sensitivity_cmd */ | 2808 | /* Control field in struct iwl_sensitivity_cmd */ |
2809 | #define SENSITIVITY_CMD_CONTROL_DEFAULT_TABLE __constant_cpu_to_le16(0) | 2809 | #define SENSITIVITY_CMD_CONTROL_DEFAULT_TABLE cpu_to_le16(0) |
2810 | #define SENSITIVITY_CMD_CONTROL_WORK_TABLE __constant_cpu_to_le16(1) | 2810 | #define SENSITIVITY_CMD_CONTROL_WORK_TABLE cpu_to_le16(1) |
2811 | 2811 | ||
2812 | /** | 2812 | /** |
2813 | * struct iwl_sensitivity_cmd | 2813 | * struct iwl_sensitivity_cmd |
@@ -2896,7 +2896,7 @@ enum { | |||
2896 | }; | 2896 | }; |
2897 | 2897 | ||
2898 | 2898 | ||
2899 | #define IWL_CALIB_INIT_CFG_ALL __constant_cpu_to_le32(0xffffffff) | 2899 | #define IWL_CALIB_INIT_CFG_ALL cpu_to_le32(0xffffffff) |
2900 | 2900 | ||
2901 | struct iwl_calib_cfg_elmnt_s { | 2901 | struct iwl_calib_cfg_elmnt_s { |
2902 | __le32 is_enable; | 2902 | __le32 is_enable; |