aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-01-27 19:41:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:35 -0500
commitbb8c093bdea62f2ae371b98ebff81b0407852faf (patch)
tree7937a70c333356a85b344f883608eeaf93dd3d2b /drivers/net/wireless/iwlwifi/iwl-3945-commands.h
parent403ab56b1c2786b0e1d58c27f5ce667b529c7faa (diff)
iwlwifi: cleanup namespace
Prefix all symbols with iwl3945_ or iwl4965_ and thus allow building the driver into the kernel. Also remove all the useless default statements in Kconfig while we're at it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-commands.h190
1 files changed, 95 insertions, 95 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
index 2c71195a08e3..dc7498d5621c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
@@ -141,7 +141,7 @@ enum {
141 141
142#define IWL_CMD_FAILED_MSK 0x40 142#define IWL_CMD_FAILED_MSK 0x40
143 143
144struct iwl_cmd_header { 144struct iwl3945_cmd_header {
145 u8 cmd; 145 u8 cmd;
146 u8 flags; 146 u8 flags;
147 /* We have 15 LSB to use as we please (MSB indicates 147 /* We have 15 LSB to use as we please (MSB indicates
@@ -173,7 +173,7 @@ struct iwl_cmd_header {
173/* 173/*
174 * REPLY_ALIVE = 0x1 (response only, not a command) 174 * REPLY_ALIVE = 0x1 (response only, not a command)
175 */ 175 */
176struct iwl_alive_resp { 176struct iwl3945_alive_resp {
177 u8 ucode_minor; 177 u8 ucode_minor;
178 u8 ucode_major; 178 u8 ucode_major;
179 __le16 reserved1; 179 __le16 reserved1;
@@ -187,7 +187,7 @@ struct iwl_alive_resp {
187 __le32 is_valid; 187 __le32 is_valid;
188} __attribute__ ((packed)); 188} __attribute__ ((packed));
189 189
190struct iwl_init_alive_resp { 190struct iwl3945_init_alive_resp {
191 u8 ucode_minor; 191 u8 ucode_minor;
192 u8 ucode_major; 192 u8 ucode_major;
193 __le16 reserved1; 193 __le16 reserved1;
@@ -210,7 +210,7 @@ union tsf {
210/* 210/*
211 * REPLY_ERROR = 0x2 (response only, not a command) 211 * REPLY_ERROR = 0x2 (response only, not a command)
212 */ 212 */
213struct iwl_error_resp { 213struct iwl3945_error_resp {
214 __le32 error_type; 214 __le32 error_type;
215 u8 cmd_id; 215 u8 cmd_id;
216 u8 reserved1; 216 u8 reserved1;
@@ -279,7 +279,7 @@ enum {
279/* 279/*
280 * REPLY_RXON = 0x10 (command, has simple generic response) 280 * REPLY_RXON = 0x10 (command, has simple generic response)
281 */ 281 */
282struct iwl_rxon_cmd { 282struct iwl3945_rxon_cmd {
283 u8 node_addr[6]; 283 u8 node_addr[6];
284 __le16 reserved1; 284 __le16 reserved1;
285 u8 bssid_addr[6]; 285 u8 bssid_addr[6];
@@ -301,7 +301,7 @@ struct iwl_rxon_cmd {
301/* 301/*
302 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response) 302 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response)
303 */ 303 */
304struct iwl_rxon_assoc_cmd { 304struct iwl3945_rxon_assoc_cmd {
305 __le32 flags; 305 __le32 flags;
306 __le32 filter_flags; 306 __le32 filter_flags;
307 u8 ofdm_basic_rates; 307 u8 ofdm_basic_rates;
@@ -312,7 +312,7 @@ struct iwl_rxon_assoc_cmd {
312/* 312/*
313 * REPLY_RXON_TIMING = 0x14 (command, has simple generic response) 313 * REPLY_RXON_TIMING = 0x14 (command, has simple generic response)
314 */ 314 */
315struct iwl_rxon_time_cmd { 315struct iwl3945_rxon_time_cmd {
316 union tsf timestamp; 316 union tsf timestamp;
317 __le16 beacon_interval; 317 __le16 beacon_interval;
318 __le16 atim_window; 318 __le16 atim_window;
@@ -321,34 +321,34 @@ struct iwl_rxon_time_cmd {
321 __le16 reserved; 321 __le16 reserved;
322} __attribute__ ((packed)); 322} __attribute__ ((packed));
323 323
324struct iwl_tx_power { 324struct iwl3945_tx_power {
325 u8 tx_gain; /* gain for analog radio */ 325 u8 tx_gain; /* gain for analog radio */
326 u8 dsp_atten; /* gain for DSP */ 326 u8 dsp_atten; /* gain for DSP */
327} __attribute__ ((packed)); 327} __attribute__ ((packed));
328 328
329struct iwl_power_per_rate { 329struct iwl3945_power_per_rate {
330 u8 rate; /* plcp */ 330 u8 rate; /* plcp */
331 struct iwl_tx_power tpc; 331 struct iwl3945_tx_power tpc;
332 u8 reserved; 332 u8 reserved;
333} __attribute__ ((packed)); 333} __attribute__ ((packed));
334 334
335/* 335/*
336 * REPLY_CHANNEL_SWITCH = 0x72 (command, has simple generic response) 336 * REPLY_CHANNEL_SWITCH = 0x72 (command, has simple generic response)
337 */ 337 */
338struct iwl_channel_switch_cmd { 338struct iwl3945_channel_switch_cmd {
339 u8 band; 339 u8 band;
340 u8 expect_beacon; 340 u8 expect_beacon;
341 __le16 channel; 341 __le16 channel;
342 __le32 rxon_flags; 342 __le32 rxon_flags;
343 __le32 rxon_filter_flags; 343 __le32 rxon_filter_flags;
344 __le32 switch_time; 344 __le32 switch_time;
345 struct iwl_power_per_rate power[IWL_MAX_RATES]; 345 struct iwl3945_power_per_rate power[IWL_MAX_RATES];
346} __attribute__ ((packed)); 346} __attribute__ ((packed));
347 347
348/* 348/*
349 * CHANNEL_SWITCH_NOTIFICATION = 0x73 (notification only, not a command) 349 * CHANNEL_SWITCH_NOTIFICATION = 0x73 (notification only, not a command)
350 */ 350 */
351struct iwl_csa_notification { 351struct iwl3945_csa_notification {
352 __le16 band; 352 __le16 band;
353 __le16 channel; 353 __le16 channel;
354 __le32 status; /* 0 - OK, 1 - fail */ 354 __le32 status; /* 0 - OK, 1 - fail */
@@ -359,7 +359,7 @@ struct iwl_csa_notification {
359 * Quality-of-Service (QOS) Commands & Responses: 359 * Quality-of-Service (QOS) Commands & Responses:
360 * 360 *
361 *****************************************************************************/ 361 *****************************************************************************/
362struct iwl_ac_qos { 362struct iwl3945_ac_qos {
363 __le16 cw_min; 363 __le16 cw_min;
364 __le16 cw_max; 364 __le16 cw_max;
365 u8 aifsn; 365 u8 aifsn;
@@ -381,9 +381,9 @@ struct iwl_ac_qos {
381/* 381/*
382 * REPLY_QOS_PARAM = 0x13 (command, has simple generic response) 382 * REPLY_QOS_PARAM = 0x13 (command, has simple generic response)
383 */ 383 */
384struct iwl_qosparam_cmd { 384struct iwl3945_qosparam_cmd {
385 __le32 qos_flags; 385 __le32 qos_flags;
386 struct iwl_ac_qos ac[AC_NUM]; 386 struct iwl3945_ac_qos ac[AC_NUM];
387} __attribute__ ((packed)); 387} __attribute__ ((packed));
388 388
389/****************************************************************************** 389/******************************************************************************
@@ -442,7 +442,7 @@ struct iwl_qosparam_cmd {
442#define RATE_MCS_ANT_B_MSK 0x8000 442#define RATE_MCS_ANT_B_MSK 0x8000
443#define RATE_MCS_ANT_AB_MSK 0xc000 443#define RATE_MCS_ANT_AB_MSK 0xc000
444 444
445struct iwl_keyinfo { 445struct iwl3945_keyinfo {
446 __le16 key_flags; 446 __le16 key_flags;
447 u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */ 447 u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */
448 u8 reserved1; 448 u8 reserved1;
@@ -462,11 +462,11 @@ struct sta_id_modify {
462/* 462/*
463 * REPLY_ADD_STA = 0x18 (command) 463 * REPLY_ADD_STA = 0x18 (command)
464 */ 464 */
465struct iwl_addsta_cmd { 465struct iwl3945_addsta_cmd {
466 u8 mode; 466 u8 mode;
467 u8 reserved[3]; 467 u8 reserved[3];
468 struct sta_id_modify sta; 468 struct sta_id_modify sta;
469 struct iwl_keyinfo key; 469 struct iwl3945_keyinfo key;
470 __le32 station_flags; 470 __le32 station_flags;
471 __le32 station_flags_msk; 471 __le32 station_flags_msk;
472 __le16 tid_disable_tx; 472 __le16 tid_disable_tx;
@@ -479,7 +479,7 @@ struct iwl_addsta_cmd {
479/* 479/*
480 * REPLY_ADD_STA = 0x18 (response) 480 * REPLY_ADD_STA = 0x18 (response)
481 */ 481 */
482struct iwl_add_sta_resp { 482struct iwl3945_add_sta_resp {
483 u8 status; 483 u8 status;
484} __attribute__ ((packed)); 484} __attribute__ ((packed));
485 485
@@ -491,7 +491,7 @@ struct iwl_add_sta_resp {
491 * 491 *
492 *****************************************************************************/ 492 *****************************************************************************/
493 493
494struct iwl_rx_frame_stats { 494struct iwl3945_rx_frame_stats {
495 u8 phy_count; 495 u8 phy_count;
496 u8 id; 496 u8 id;
497 u8 rssi; 497 u8 rssi;
@@ -501,7 +501,7 @@ struct iwl_rx_frame_stats {
501 u8 payload[0]; 501 u8 payload[0];
502} __attribute__ ((packed)); 502} __attribute__ ((packed));
503 503
504struct iwl_rx_frame_hdr { 504struct iwl3945_rx_frame_hdr {
505 __le16 channel; 505 __le16 channel;
506 __le16 phy_flags; 506 __le16 phy_flags;
507 u8 reserved1; 507 u8 reserved1;
@@ -531,7 +531,7 @@ struct iwl_rx_frame_hdr {
531#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11) 531#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11)
532#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11) 532#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11)
533 533
534struct iwl_rx_frame_end { 534struct iwl3945_rx_frame_end {
535 __le32 status; 535 __le32 status;
536 __le64 timestamp; 536 __le64 timestamp;
537 __le32 beacon_timestamp; 537 __le32 beacon_timestamp;
@@ -545,10 +545,10 @@ struct iwl_rx_frame_end {
545 * The actual offsets of the hdr and end are dynamic based on 545 * The actual offsets of the hdr and end are dynamic based on
546 * stats.phy_count 546 * stats.phy_count
547 */ 547 */
548struct iwl_rx_frame { 548struct iwl3945_rx_frame {
549 struct iwl_rx_frame_stats stats; 549 struct iwl3945_rx_frame_stats stats;
550 struct iwl_rx_frame_hdr hdr; 550 struct iwl3945_rx_frame_hdr hdr;
551 struct iwl_rx_frame_end end; 551 struct iwl3945_rx_frame_end end;
552} __attribute__ ((packed)); 552} __attribute__ ((packed));
553 553
554/* Fixed (non-configurable) rx data from phy */ 554/* Fixed (non-configurable) rx data from phy */
@@ -643,7 +643,7 @@ struct iwl4965_rx_mpdu_res_start {
643 * TX command Frame life time 643 * TX command Frame life time
644 */ 644 */
645 645
646struct iwl_dram_scratch { 646struct iwl3945_dram_scratch {
647 u8 try_cnt; 647 u8 try_cnt;
648 u8 bt_kill_cnt; 648 u8 bt_kill_cnt;
649 __le16 reserved; 649 __le16 reserved;
@@ -652,7 +652,7 @@ struct iwl_dram_scratch {
652/* 652/*
653 * REPLY_TX = 0x1c (command) 653 * REPLY_TX = 0x1c (command)
654 */ 654 */
655struct iwl_tx_cmd { 655struct iwl3945_tx_cmd {
656 __le16 len; 656 __le16 len;
657 __le16 next_frame_len; 657 __le16 next_frame_len;
658 __le32 tx_flags; 658 __le32 tx_flags;
@@ -784,7 +784,7 @@ enum {
784/* 784/*
785 * REPLY_TX = 0x1c (response) 785 * REPLY_TX = 0x1c (response)
786 */ 786 */
787struct iwl_tx_resp { 787struct iwl3945_tx_resp {
788 u8 failure_rts; 788 u8 failure_rts;
789 u8 failure_frame; 789 u8 failure_frame;
790 u8 bt_kill_count; 790 u8 bt_kill_count;
@@ -796,7 +796,7 @@ struct iwl_tx_resp {
796/* 796/*
797 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command) 797 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command)
798 */ 798 */
799struct iwl_compressed_ba_resp { 799struct iwl3945_compressed_ba_resp {
800 __le32 sta_addr_lo32; 800 __le32 sta_addr_lo32;
801 __le16 sta_addr_hi16; 801 __le16 sta_addr_hi16;
802 __le16 reserved; 802 __le16 reserved;
@@ -812,21 +812,21 @@ struct iwl_compressed_ba_resp {
812/* 812/*
813 * REPLY_TX_PWR_TABLE_CMD = 0x97 (command, has simple generic response) 813 * REPLY_TX_PWR_TABLE_CMD = 0x97 (command, has simple generic response)
814 */ 814 */
815struct iwl_txpowertable_cmd { 815struct iwl3945_txpowertable_cmd {
816 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */ 816 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */
817 u8 reserved; 817 u8 reserved;
818 __le16 channel; 818 __le16 channel;
819 struct iwl_power_per_rate power[IWL_MAX_RATES]; 819 struct iwl3945_power_per_rate power[IWL_MAX_RATES];
820} __attribute__ ((packed)); 820} __attribute__ ((packed));
821 821
822struct iwl_rate_scaling_info { 822struct iwl3945_rate_scaling_info {
823 __le16 rate_n_flags; 823 __le16 rate_n_flags;
824 u8 try_cnt; 824 u8 try_cnt;
825 u8 next_rate_index; 825 u8 next_rate_index;
826} __attribute__ ((packed)); 826} __attribute__ ((packed));
827 827
828/** 828/**
829 * struct iwl_rate_scaling_cmd - Rate Scaling Command & Response 829 * struct iwl3945_rate_scaling_cmd - Rate Scaling Command & Response
830 * 830 *
831 * REPLY_RATE_SCALE = 0x47 (command, has simple generic response) 831 * REPLY_RATE_SCALE = 0x47 (command, has simple generic response)
832 * 832 *
@@ -840,16 +840,16 @@ struct iwl_rate_scaling_info {
840 * when passed through ofdm_basic_rates on the REPLY_RXON 840 * when passed through ofdm_basic_rates on the REPLY_RXON
841 * command would be bit 0 (1<<0) 841 * command would be bit 0 (1<<0)
842 */ 842 */
843struct iwl_rate_scaling_cmd { 843struct iwl3945_rate_scaling_cmd {
844 u8 table_id; 844 u8 table_id;
845 u8 reserved[3]; 845 u8 reserved[3];
846 struct iwl_rate_scaling_info table[IWL_MAX_RATES]; 846 struct iwl3945_rate_scaling_info table[IWL_MAX_RATES];
847} __attribute__ ((packed)); 847} __attribute__ ((packed));
848 848
849/* 849/*
850 * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) 850 * REPLY_BT_CONFIG = 0x9b (command, has simple generic response)
851 */ 851 */
852struct iwl_bt_cmd { 852struct iwl3945_bt_cmd {
853 u8 flags; 853 u8 flags;
854 u8 lead_time; 854 u8 lead_time;
855 u8 max_kill; 855 u8 max_kill;
@@ -875,18 +875,18 @@ struct iwl_bt_cmd {
875 RXON_FILTER_ASSOC_MSK | \ 875 RXON_FILTER_ASSOC_MSK | \
876 RXON_FILTER_BCON_AWARE_MSK) 876 RXON_FILTER_BCON_AWARE_MSK)
877 877
878struct iwl_measure_channel { 878struct iwl3945_measure_channel {
879 __le32 duration; /* measurement duration in extended beacon 879 __le32 duration; /* measurement duration in extended beacon
880 * format */ 880 * format */
881 u8 channel; /* channel to measure */ 881 u8 channel; /* channel to measure */
882 u8 type; /* see enum iwl_measure_type */ 882 u8 type; /* see enum iwl3945_measure_type */
883 __le16 reserved; 883 __le16 reserved;
884} __attribute__ ((packed)); 884} __attribute__ ((packed));
885 885
886/* 886/*
887 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (command) 887 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (command)
888 */ 888 */
889struct iwl_spectrum_cmd { 889struct iwl3945_spectrum_cmd {
890 __le16 len; /* number of bytes starting from token */ 890 __le16 len; /* number of bytes starting from token */
891 u8 token; /* token id */ 891 u8 token; /* token id */
892 u8 id; /* measurement id -- 0 or 1 */ 892 u8 id; /* measurement id -- 0 or 1 */
@@ -899,13 +899,13 @@ struct iwl_spectrum_cmd {
899 __le32 filter_flags; /* rxon filter flags */ 899 __le32 filter_flags; /* rxon filter flags */
900 __le16 channel_count; /* minimum 1, maximum 10 */ 900 __le16 channel_count; /* minimum 1, maximum 10 */
901 __le16 reserved3; 901 __le16 reserved3;
902 struct iwl_measure_channel channels[10]; 902 struct iwl3945_measure_channel channels[10];
903} __attribute__ ((packed)); 903} __attribute__ ((packed));
904 904
905/* 905/*
906 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (response) 906 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (response)
907 */ 907 */
908struct iwl_spectrum_resp { 908struct iwl3945_spectrum_resp {
909 u8 token; 909 u8 token;
910 u8 id; /* id of the prior command replaced, or 0xff */ 910 u8 id; /* id of the prior command replaced, or 0xff */
911 __le16 status; /* 0 - command will be handled 911 __le16 status; /* 0 - command will be handled
@@ -913,12 +913,12 @@ struct iwl_spectrum_resp {
913 * measurement) */ 913 * measurement) */
914} __attribute__ ((packed)); 914} __attribute__ ((packed));
915 915
916enum iwl_measurement_state { 916enum iwl3945_measurement_state {
917 IWL_MEASUREMENT_START = 0, 917 IWL_MEASUREMENT_START = 0,
918 IWL_MEASUREMENT_STOP = 1, 918 IWL_MEASUREMENT_STOP = 1,
919}; 919};
920 920
921enum iwl_measurement_status { 921enum iwl3945_measurement_status {
922 IWL_MEASUREMENT_OK = 0, 922 IWL_MEASUREMENT_OK = 0,
923 IWL_MEASUREMENT_CONCURRENT = 1, 923 IWL_MEASUREMENT_CONCURRENT = 1,
924 IWL_MEASUREMENT_CSA_CONFLICT = 2, 924 IWL_MEASUREMENT_CSA_CONFLICT = 2,
@@ -931,18 +931,18 @@ enum iwl_measurement_status {
931 931
932#define NUM_ELEMENTS_IN_HISTOGRAM 8 932#define NUM_ELEMENTS_IN_HISTOGRAM 8
933 933
934struct iwl_measurement_histogram { 934struct iwl3945_measurement_histogram {
935 __le32 ofdm[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 0.8usec counts */ 935 __le32 ofdm[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 0.8usec counts */
936 __le32 cck[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 1usec counts */ 936 __le32 cck[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 1usec counts */
937} __attribute__ ((packed)); 937} __attribute__ ((packed));
938 938
939/* clear channel availability counters */ 939/* clear channel availability counters */
940struct iwl_measurement_cca_counters { 940struct iwl3945_measurement_cca_counters {
941 __le32 ofdm; 941 __le32 ofdm;
942 __le32 cck; 942 __le32 cck;
943} __attribute__ ((packed)); 943} __attribute__ ((packed));
944 944
945enum iwl_measure_type { 945enum iwl3945_measure_type {
946 IWL_MEASURE_BASIC = (1 << 0), 946 IWL_MEASURE_BASIC = (1 << 0),
947 IWL_MEASURE_CHANNEL_LOAD = (1 << 1), 947 IWL_MEASURE_CHANNEL_LOAD = (1 << 1),
948 IWL_MEASURE_HISTOGRAM_RPI = (1 << 2), 948 IWL_MEASURE_HISTOGRAM_RPI = (1 << 2),
@@ -955,7 +955,7 @@ enum iwl_measure_type {
955/* 955/*
956 * SPECTRUM_MEASURE_NOTIFICATION = 0x75 (notification only, not a command) 956 * SPECTRUM_MEASURE_NOTIFICATION = 0x75 (notification only, not a command)
957 */ 957 */
958struct iwl_spectrum_notification { 958struct iwl3945_spectrum_notification {
959 u8 id; /* measurement id -- 0 or 1 */ 959 u8 id; /* measurement id -- 0 or 1 */
960 u8 token; 960 u8 token;
961 u8 channel_index; /* index in measurement channel list */ 961 u8 channel_index; /* index in measurement channel list */
@@ -963,7 +963,7 @@ struct iwl_spectrum_notification {
963 __le32 start_time; /* lower 32-bits of TSF */ 963 __le32 start_time; /* lower 32-bits of TSF */
964 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */ 964 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */
965 u8 channel; 965 u8 channel;
966 u8 type; /* see enum iwl_measurement_type */ 966 u8 type; /* see enum iwl3945_measurement_type */
967 u8 reserved1; 967 u8 reserved1;
968 /* NOTE: cca_ofdm, cca_cck, basic_type, and histogram are only only 968 /* NOTE: cca_ofdm, cca_cck, basic_type, and histogram are only only
969 * valid if applicable for measurement type requested. */ 969 * valid if applicable for measurement type requested. */
@@ -973,9 +973,9 @@ struct iwl_spectrum_notification {
973 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 - 973 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 -
974 * unidentified */ 974 * unidentified */
975 u8 reserved2[3]; 975 u8 reserved2[3];
976 struct iwl_measurement_histogram histogram; 976 struct iwl3945_measurement_histogram histogram;
977 __le32 stop_time; /* lower 32-bits of TSF */ 977 __le32 stop_time; /* lower 32-bits of TSF */
978 __le32 status; /* see iwl_measurement_status */ 978 __le32 status; /* see iwl3945_measurement_status */
979} __attribute__ ((packed)); 979} __attribute__ ((packed));
980 980
981/****************************************************************************** 981/******************************************************************************
@@ -985,7 +985,7 @@ struct iwl_spectrum_notification {
985 *****************************************************************************/ 985 *****************************************************************************/
986 986
987/** 987/**
988 * struct iwl_powertable_cmd - Power Table Command 988 * struct iwl3945_powertable_cmd - Power Table Command
989 * @flags: See below: 989 * @flags: See below:
990 * 990 *
991 * POWER_TABLE_CMD = 0x77 (command, has simple generic response) 991 * POWER_TABLE_CMD = 0x77 (command, has simple generic response)
@@ -1017,7 +1017,7 @@ struct iwl_spectrum_notification {
1017#define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK __constant_cpu_to_le32(1<<0) 1017#define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK __constant_cpu_to_le32(1<<0)
1018#define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le32(1<<2) 1018#define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le32(1<<2)
1019#define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le32(1<<3) 1019#define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le32(1<<3)
1020struct iwl_powertable_cmd { 1020struct iwl3945_powertable_cmd {
1021 __le32 flags; 1021 __le32 flags;
1022 __le32 rx_data_timeout; 1022 __le32 rx_data_timeout;
1023 __le32 tx_data_timeout; 1023 __le32 tx_data_timeout;
@@ -1028,7 +1028,7 @@ struct iwl_powertable_cmd {
1028 * PM_SLEEP_NOTIFICATION = 0x7A (notification only, not a command) 1028 * PM_SLEEP_NOTIFICATION = 0x7A (notification only, not a command)
1029 * 3945 and 4965 identical. 1029 * 3945 and 4965 identical.
1030 */ 1030 */
1031struct iwl_sleep_notification { 1031struct iwl3945_sleep_notification {
1032 u8 pm_sleep_mode; 1032 u8 pm_sleep_mode;
1033 u8 pm_wakeup_src; 1033 u8 pm_wakeup_src;
1034 __le16 reserved; 1034 __le16 reserved;
@@ -1058,14 +1058,14 @@ enum {
1058#define CARD_STATE_CMD_DISABLE 0x00 /* Put card to sleep */ 1058#define CARD_STATE_CMD_DISABLE 0x00 /* Put card to sleep */
1059#define CARD_STATE_CMD_ENABLE 0x01 /* Wake up card */ 1059#define CARD_STATE_CMD_ENABLE 0x01 /* Wake up card */
1060#define CARD_STATE_CMD_HALT 0x02 /* Power down permanently */ 1060#define CARD_STATE_CMD_HALT 0x02 /* Power down permanently */
1061struct iwl_card_state_cmd { 1061struct iwl3945_card_state_cmd {
1062 __le32 status; /* CARD_STATE_CMD_* request new power state */ 1062 __le32 status; /* CARD_STATE_CMD_* request new power state */
1063} __attribute__ ((packed)); 1063} __attribute__ ((packed));
1064 1064
1065/* 1065/*
1066 * CARD_STATE_NOTIFICATION = 0xa1 (notification only, not a command) 1066 * CARD_STATE_NOTIFICATION = 0xa1 (notification only, not a command)
1067 */ 1067 */
1068struct iwl_card_state_notif { 1068struct iwl3945_card_state_notif {
1069 __le32 flags; 1069 __le32 flags;
1070} __attribute__ ((packed)); 1070} __attribute__ ((packed));
1071 1071
@@ -1074,7 +1074,7 @@ struct iwl_card_state_notif {
1074#define RF_CARD_DISABLED 0x04 1074#define RF_CARD_DISABLED 0x04
1075#define RXON_CARD_DISABLED 0x10 1075#define RXON_CARD_DISABLED 0x10
1076 1076
1077struct iwl_ct_kill_config { 1077struct iwl3945_ct_kill_config {
1078 __le32 reserved; 1078 __le32 reserved;
1079 __le32 critical_temperature_M; 1079 __le32 critical_temperature_M;
1080 __le32 critical_temperature_R; 1080 __le32 critical_temperature_R;
@@ -1086,7 +1086,7 @@ struct iwl_ct_kill_config {
1086 * 1086 *
1087 *****************************************************************************/ 1087 *****************************************************************************/
1088 1088
1089struct iwl_scan_channel { 1089struct iwl3945_scan_channel {
1090 /* type is defined as: 1090 /* type is defined as:
1091 * 0:0 active (0 - passive) 1091 * 0:0 active (0 - passive)
1092 * 1:4 SSID direct 1092 * 1:4 SSID direct
@@ -1095,12 +1095,12 @@ struct iwl_scan_channel {
1095 */ 1095 */
1096 u8 type; 1096 u8 type;
1097 u8 channel; 1097 u8 channel;
1098 struct iwl_tx_power tpc; 1098 struct iwl3945_tx_power tpc;
1099 __le16 active_dwell; 1099 __le16 active_dwell;
1100 __le16 passive_dwell; 1100 __le16 passive_dwell;
1101} __attribute__ ((packed)); 1101} __attribute__ ((packed));
1102 1102
1103struct iwl_ssid_ie { 1103struct iwl3945_ssid_ie {
1104 u8 id; 1104 u8 id;
1105 u8 len; 1105 u8 len;
1106 u8 ssid[32]; 1106 u8 ssid[32];
@@ -1114,7 +1114,7 @@ struct iwl_ssid_ie {
1114/* 1114/*
1115 * REPLY_SCAN_CMD = 0x80 (command) 1115 * REPLY_SCAN_CMD = 0x80 (command)
1116 */ 1116 */
1117struct iwl_scan_cmd { 1117struct iwl3945_scan_cmd {
1118 __le16 len; 1118 __le16 len;
1119 u8 reserved0; 1119 u8 reserved0;
1120 u8 channel_count; 1120 u8 channel_count;
@@ -1133,14 +1133,14 @@ struct iwl_scan_cmd {
1133 __le32 flags; 1133 __le32 flags;
1134 __le32 filter_flags; 1134 __le32 filter_flags;
1135 1135
1136 struct iwl_tx_cmd tx_cmd; 1136 struct iwl3945_tx_cmd tx_cmd;
1137 struct iwl_ssid_ie direct_scan[PROBE_OPTION_MAX]; 1137 struct iwl3945_ssid_ie direct_scan[PROBE_OPTION_MAX];
1138 1138
1139 u8 data[0]; 1139 u8 data[0];
1140 /* 1140 /*
1141 * The channels start after the probe request payload and are of type: 1141 * The channels start after the probe request payload and are of type:
1142 * 1142 *
1143 * struct iwl_scan_channel channels[0]; 1143 * struct iwl3945_scan_channel channels[0];
1144 * 1144 *
1145 * NOTE: Only one band of channels can be scanned per pass. You 1145 * NOTE: Only one band of channels can be scanned per pass. You
1146 * can not mix 2.4GHz channels and 5.2GHz channels and must 1146 * can not mix 2.4GHz channels and 5.2GHz channels and must
@@ -1157,14 +1157,14 @@ struct iwl_scan_cmd {
1157/* 1157/*
1158 * REPLY_SCAN_CMD = 0x80 (response) 1158 * REPLY_SCAN_CMD = 0x80 (response)
1159 */ 1159 */
1160struct iwl_scanreq_notification { 1160struct iwl3945_scanreq_notification {
1161 __le32 status; /* 1: okay, 2: cannot fulfill request */ 1161 __le32 status; /* 1: okay, 2: cannot fulfill request */
1162} __attribute__ ((packed)); 1162} __attribute__ ((packed));
1163 1163
1164/* 1164/*
1165 * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command) 1165 * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command)
1166 */ 1166 */
1167struct iwl_scanstart_notification { 1167struct iwl3945_scanstart_notification {
1168 __le32 tsf_low; 1168 __le32 tsf_low;
1169 __le32 tsf_high; 1169 __le32 tsf_high;
1170 __le32 beacon_timer; 1170 __le32 beacon_timer;
@@ -1181,7 +1181,7 @@ struct iwl_scanstart_notification {
1181/* 1181/*
1182 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command) 1182 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command)
1183 */ 1183 */
1184struct iwl_scanresults_notification { 1184struct iwl3945_scanresults_notification {
1185 u8 channel; 1185 u8 channel;
1186 u8 band; 1186 u8 band;
1187 u8 reserved[2]; 1187 u8 reserved[2];
@@ -1193,7 +1193,7 @@ struct iwl_scanresults_notification {
1193/* 1193/*
1194 * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command) 1194 * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command)
1195 */ 1195 */
1196struct iwl_scancomplete_notification { 1196struct iwl3945_scancomplete_notification {
1197 u8 scanned_channels; 1197 u8 scanned_channels;
1198 u8 status; 1198 u8 status;
1199 u8 reserved; 1199 u8 reserved;
@@ -1212,8 +1212,8 @@ struct iwl_scancomplete_notification {
1212/* 1212/*
1213 * BEACON_NOTIFICATION = 0x90 (notification only, not a command) 1213 * BEACON_NOTIFICATION = 0x90 (notification only, not a command)
1214 */ 1214 */
1215struct iwl_beacon_notif { 1215struct iwl3945_beacon_notif {
1216 struct iwl_tx_resp beacon_notify_hdr; 1216 struct iwl3945_tx_resp beacon_notify_hdr;
1217 __le32 low_tsf; 1217 __le32 low_tsf;
1218 __le32 high_tsf; 1218 __le32 high_tsf;
1219 __le32 ibss_mgr_status; 1219 __le32 ibss_mgr_status;
@@ -1222,8 +1222,8 @@ struct iwl_beacon_notif {
1222/* 1222/*
1223 * REPLY_TX_BEACON = 0x91 (command, has simple generic response) 1223 * REPLY_TX_BEACON = 0x91 (command, has simple generic response)
1224 */ 1224 */
1225struct iwl_tx_beacon_cmd { 1225struct iwl3945_tx_beacon_cmd {
1226 struct iwl_tx_cmd tx; 1226 struct iwl3945_tx_cmd tx;
1227 __le16 tim_idx; 1227 __le16 tim_idx;
1228 u8 tim_size; 1228 u8 tim_size;
1229 u8 reserved1; 1229 u8 reserved1;
@@ -1345,7 +1345,7 @@ struct statistics_general {
1345 */ 1345 */
1346#define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */ 1346#define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */
1347#define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */ 1347#define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */
1348struct iwl_statistics_cmd { 1348struct iwl3945_statistics_cmd {
1349 __le32 configuration_flags; /* IWL_STATS_CONF_* */ 1349 __le32 configuration_flags; /* IWL_STATS_CONF_* */
1350} __attribute__ ((packed)); 1350} __attribute__ ((packed));
1351 1351
@@ -1366,7 +1366,7 @@ struct iwl_statistics_cmd {
1366 */ 1366 */
1367#define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2) 1367#define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2)
1368#define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8) 1368#define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8)
1369struct iwl_notif_statistics { 1369struct iwl3945_notif_statistics {
1370 __le32 flag; 1370 __le32 flag;
1371 struct statistics_rx rx; 1371 struct statistics_rx rx;
1372 struct statistics_tx tx; 1372 struct statistics_tx tx;
@@ -1381,7 +1381,7 @@ struct iwl_notif_statistics {
1381 * then this notification will be sent. */ 1381 * then this notification will be sent. */
1382#define CONSECUTIVE_MISSED_BCONS_TH 20 1382#define CONSECUTIVE_MISSED_BCONS_TH 20
1383 1383
1384struct iwl_missed_beacon_notif { 1384struct iwl3945_missed_beacon_notif {
1385 __le32 consequtive_missed_beacons; 1385 __le32 consequtive_missed_beacons;
1386 __le32 total_missed_becons; 1386 __le32 total_missed_becons;
1387 __le32 num_expected_beacons; 1387 __le32 num_expected_beacons;
@@ -1397,12 +1397,12 @@ struct iwl_missed_beacon_notif {
1397#define PHY_CALIBRATE_DIFF_GAIN_CMD (7) 1397#define PHY_CALIBRATE_DIFF_GAIN_CMD (7)
1398#define HD_TABLE_SIZE (11) 1398#define HD_TABLE_SIZE (11)
1399 1399
1400struct iwl_sensitivity_cmd { 1400struct iwl3945_sensitivity_cmd {
1401 __le16 control; 1401 __le16 control;
1402 __le16 table[HD_TABLE_SIZE]; 1402 __le16 table[HD_TABLE_SIZE];
1403} __attribute__ ((packed)); 1403} __attribute__ ((packed));
1404 1404
1405struct iwl_calibration_cmd { 1405struct iwl3945_calibration_cmd {
1406 u8 opCode; 1406 u8 opCode;
1407 u8 flags; 1407 u8 flags;
1408 __le16 reserved; 1408 __le16 reserved;
@@ -1425,7 +1425,7 @@ struct iwl_calibration_cmd {
1425 * For each of 3 possible LEDs (Activity/Link/Tech, selected by "id" field), 1425 * For each of 3 possible LEDs (Activity/Link/Tech, selected by "id" field),
1426 * this command turns it on or off, or sets up a periodic blinking cycle. 1426 * this command turns it on or off, or sets up a periodic blinking cycle.
1427 */ 1427 */
1428struct iwl_led_cmd { 1428struct iwl3945_led_cmd {
1429 __le32 interval; /* "interval" in uSec */ 1429 __le32 interval; /* "interval" in uSec */
1430 u8 id; /* 1: Activity, 2: Link, 3: Tech */ 1430 u8 id; /* 1: Activity, 2: Link, 3: Tech */
1431 u8 off; /* # intervals off while blinking; 1431 u8 off; /* # intervals off while blinking;
@@ -1441,27 +1441,27 @@ struct iwl_led_cmd {
1441 * 1441 *
1442 *****************************************************************************/ 1442 *****************************************************************************/
1443 1443
1444struct iwl_rx_packet { 1444struct iwl3945_rx_packet {
1445 __le32 len; 1445 __le32 len;
1446 struct iwl_cmd_header hdr; 1446 struct iwl3945_cmd_header hdr;
1447 union { 1447 union {
1448 struct iwl_alive_resp alive_frame; 1448 struct iwl3945_alive_resp alive_frame;
1449 struct iwl_rx_frame rx_frame; 1449 struct iwl3945_rx_frame rx_frame;
1450 struct iwl_tx_resp tx_resp; 1450 struct iwl3945_tx_resp tx_resp;
1451 struct iwl_spectrum_notification spectrum_notif; 1451 struct iwl3945_spectrum_notification spectrum_notif;
1452 struct iwl_csa_notification csa_notif; 1452 struct iwl3945_csa_notification csa_notif;
1453 struct iwl_error_resp err_resp; 1453 struct iwl3945_error_resp err_resp;
1454 struct iwl_card_state_notif card_state_notif; 1454 struct iwl3945_card_state_notif card_state_notif;
1455 struct iwl_beacon_notif beacon_status; 1455 struct iwl3945_beacon_notif beacon_status;
1456 struct iwl_add_sta_resp add_sta; 1456 struct iwl3945_add_sta_resp add_sta;
1457 struct iwl_sleep_notification sleep_notif; 1457 struct iwl3945_sleep_notification sleep_notif;
1458 struct iwl_spectrum_resp spectrum; 1458 struct iwl3945_spectrum_resp spectrum;
1459 struct iwl_notif_statistics stats; 1459 struct iwl3945_notif_statistics stats;
1460 __le32 status; 1460 __le32 status;
1461 u8 raw[0]; 1461 u8 raw[0];
1462 } u; 1462 } u;
1463} __attribute__ ((packed)); 1463} __attribute__ ((packed));
1464 1464
1465#define IWL_RX_FRAME_SIZE (4 + sizeof(struct iwl_rx_frame)) 1465#define IWL_RX_FRAME_SIZE (4 + sizeof(struct iwl3945_rx_frame))
1466 1466
1467#endif /* __iwl_3945_commands_h__ */ 1467#endif /* __iwl3945_3945_commands_h__ */