aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-12-18 21:37:04 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:53 -0500
commit600c0e11ea6161e00e8cb4b4dda39a64ce988c60 (patch)
tree282d6b6d4a4b2bed814509083669c68da5e8c097 /drivers/net/wireless/iwlwifi/iwl-commands.h
parentb936d9be05d66172b2c035eaca002a134f078c64 (diff)
iwlwifi: use iwl-commands.h also in 3945
This patch uses iwl-commands.h also for iwl3945 more clean ups are required but this get to stage where it compiles cleanly. Most massive changes are in spectrum and power managment. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h31
1 files changed, 20 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index ba997204c8d4..20ab7fb75c3c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -300,11 +300,12 @@ struct iwl_cmd_header {
300 * 5350 has 3 transmitters 300 * 5350 has 3 transmitters
301 * bit14:16 301 * bit14:16
302 */ 302 */
303#define RATE_MCS_ANT_POS 14 303#define RATE_MCS_ANT_POS 14
304#define RATE_MCS_ANT_A_MSK 0x04000 304#define RATE_MCS_ANT_A_MSK 0x04000
305#define RATE_MCS_ANT_B_MSK 0x08000 305#define RATE_MCS_ANT_B_MSK 0x08000
306#define RATE_MCS_ANT_C_MSK 0x10000 306#define RATE_MCS_ANT_C_MSK 0x10000
307#define RATE_MCS_ANT_ABC_MSK 0x1C000 307#define RATE_MCS_ANT_AB_MSK (RATE_MCS_ANT_A_MSK | RATE_MCS_ANT_B_MSK)
308#define RATE_MCS_ANT_ABC_MSK (RATE_MCS_ANT_AB_MSK | RATE_MCS_ANT_C_MSK)
308#define RATE_ANT_NUM 3 309#define RATE_ANT_NUM 3
309 310
310#define POWER_TABLE_NUM_ENTRIES 33 311#define POWER_TABLE_NUM_ENTRIES 33
@@ -2044,15 +2045,23 @@ struct iwl_spectrum_notification {
2044 */ 2045 */
2045#define IWL_POWER_VEC_SIZE 5 2046#define IWL_POWER_VEC_SIZE 5
2046 2047
2047#define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(1 << 0) 2048#define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(BIT(0))
2048#define IWL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le16(1 << 2) 2049#define IWL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le16(BIT(2))
2049#define IWL_POWER_PCI_PM_MSK cpu_to_le16(1 << 3) 2050#define IWL_POWER_PCI_PM_MSK cpu_to_le16(BIT(3))
2050#define IWL_POWER_FAST_PD cpu_to_le16(1 << 4) 2051#define IWL_POWER_FAST_PD cpu_to_le16(BIT(4))
2052
2053struct iwl3945_powertable_cmd {
2054 __le16 flags;
2055 u8 reserved[2];
2056 __le32 rx_data_timeout;
2057 __le32 tx_data_timeout;
2058 __le32 sleep_interval[IWL_POWER_VEC_SIZE];
2059} __attribute__ ((packed));
2051 2060
2052struct iwl_powertable_cmd { 2061struct iwl_powertable_cmd {
2053 __le16 flags; 2062 __le16 flags;
2054 u8 keep_alive_seconds; 2063 u8 keep_alive_seconds; /* 3945 reserved */
2055 u8 debug_flags; 2064 u8 debug_flags; /* 3945 reserved */
2056 __le32 rx_data_timeout; 2065 __le32 rx_data_timeout;
2057 __le32 tx_data_timeout; 2066 __le32 tx_data_timeout;
2058 __le32 sleep_interval[IWL_POWER_VEC_SIZE]; 2067 __le32 sleep_interval[IWL_POWER_VEC_SIZE];