diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-08 19:10:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-08 19:10:53 -0400 |
commit | 9bff9dbd00e5907f5c36e72bae8aee8a46440e11 (patch) | |
tree | 4a5666939b61a13e7cde01b29baf4cb609fb8c90 /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | e2a6b85247aacc52d6ba0d9b37a99b8d1a3e0d83 (diff) | |
parent | d10c4ec8b4bc02f3874c7ef3c3539e4e7e123969 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 28b5b09996ed..8d04e966ad48 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -163,6 +163,13 @@ enum { | |||
163 | /* iwl_cmd_header flags value */ | 163 | /* iwl_cmd_header flags value */ |
164 | #define IWL_CMD_FAILED_MSK 0x40 | 164 | #define IWL_CMD_FAILED_MSK 0x40 |
165 | 165 | ||
166 | #define SEQ_TO_QUEUE(s) (((s) >> 8) & 0x1f) | ||
167 | #define QUEUE_TO_SEQ(q) (((q) & 0x1f) << 8) | ||
168 | #define SEQ_TO_INDEX(s) ((s) & 0xff) | ||
169 | #define INDEX_TO_SEQ(i) ((i) & 0xff) | ||
170 | #define SEQ_HUGE_FRAME __constant_cpu_to_le16(0x4000) | ||
171 | #define SEQ_RX_FRAME __constant_cpu_to_le16(0x8000) | ||
172 | |||
166 | /** | 173 | /** |
167 | * struct iwl_cmd_header | 174 | * struct iwl_cmd_header |
168 | * | 175 | * |
@@ -171,7 +178,7 @@ enum { | |||
171 | */ | 178 | */ |
172 | struct iwl_cmd_header { | 179 | struct iwl_cmd_header { |
173 | u8 cmd; /* Command ID: REPLY_RXON, etc. */ | 180 | u8 cmd; /* Command ID: REPLY_RXON, etc. */ |
174 | u8 flags; /* IWL_CMD_* */ | 181 | u8 flags; /* 0:5 reserved, 6 abort, 7 internal */ |
175 | /* | 182 | /* |
176 | * The driver sets up the sequence number to values of its chosing. | 183 | * The driver sets up the sequence number to values of its chosing. |
177 | * uCode does not use this value, but passes it back to the driver | 184 | * uCode does not use this value, but passes it back to the driver |
@@ -187,11 +194,12 @@ struct iwl_cmd_header { | |||
187 | * | 194 | * |
188 | * The Linux driver uses the following format: | 195 | * The Linux driver uses the following format: |
189 | * | 196 | * |
190 | * 0:7 index/position within Tx queue | 197 | * 0:7 tfd index - position within TX queue |
191 | * 8:13 Tx queue selection | 198 | * 8:12 TX queue id |
192 | * 14:14 driver sets this to indicate command is in the 'huge' | 199 | * 13 reserved |
193 | * storage at the end of the command buffers, i.e. scan cmd | 200 | * 14 huge - driver sets this to indicate command is in the |
194 | * 15:15 uCode sets this in uCode-originated response/notification | 201 | * 'huge' storage at the end of the command buffers |
202 | * 15 unsolicited RX or uCode-originated notification | ||
195 | */ | 203 | */ |
196 | __le16 sequence; | 204 | __le16 sequence; |
197 | 205 | ||
@@ -2026,8 +2034,8 @@ struct iwl4965_spectrum_notification { | |||
2026 | * bit 2 - '0' PM have to walk up every DTIM | 2034 | * bit 2 - '0' PM have to walk up every DTIM |
2027 | * '1' PM could sleep over DTIM till listen Interval. | 2035 | * '1' PM could sleep over DTIM till listen Interval. |
2028 | * PCI power managed | 2036 | * PCI power managed |
2029 | * bit 3 - '0' (PCI_LINK_CTRL & 0x1) | 2037 | * bit 3 - '0' (PCI_CFG_LINK_CTRL & 0x1) |
2030 | * '1' !(PCI_LINK_CTRL & 0x1) | 2038 | * '1' !(PCI_CFG_LINK_CTRL & 0x1) |
2031 | * Force sleep Modes | 2039 | * Force sleep Modes |
2032 | * bit 31/30- '00' use both mac/xtal sleeps | 2040 | * bit 31/30- '00' use both mac/xtal sleeps |
2033 | * '01' force Mac sleep | 2041 | * '01' force Mac sleep |