diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2009-01-08 13:19:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:14 -0500 |
commit | 1e33dc64475790c10a7cda3ca23d2eb678760d85 (patch) | |
tree | d570577118248d83e3ca8af6578ab79db62d832c /drivers/net/wireless/iwlwifi/iwl-fh.h | |
parent | d45aadd04b60c6d4f846e7ec2564654567065e5f (diff) |
iwl3945: use hw_params.rx_buf_size
This patch makes 3945 use of hw_params.rx_buf_size instead of
IWL_RX_BUF_SIZE. It also renames IWL_RX_BUF_SIZE to IWL_RX_BUF_SIZE_3K
and moves rx buffer defines into iwl-fh.h.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-fh.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-fh.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-fh.h b/drivers/net/wireless/iwlwifi/iwl-fh.h index a72aa1b32c8a..ad5a24ecc2de 100644 --- a/drivers/net/wireless/iwlwifi/iwl-fh.h +++ b/drivers/net/wireless/iwlwifi/iwl-fh.h | |||
@@ -399,6 +399,21 @@ | |||
399 | */ | 399 | */ |
400 | #define FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN (0x00000002) | 400 | #define FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN (0x00000002) |
401 | 401 | ||
402 | #define RX_QUEUE_SIZE 256 | ||
403 | #define RX_QUEUE_MASK 255 | ||
404 | #define RX_QUEUE_SIZE_LOG 8 | ||
405 | |||
406 | /* | ||
407 | * RX related structures and functions | ||
408 | */ | ||
409 | #define RX_FREE_BUFFERS 64 | ||
410 | #define RX_LOW_WATERMARK 8 | ||
411 | |||
412 | /* Size of one Rx buffer in host DRAM */ | ||
413 | #define IWL_RX_BUF_SIZE_3K (3 * 1000) /* 3945 only */ | ||
414 | #define IWL_RX_BUF_SIZE_4K (4 * 1024) | ||
415 | #define IWL_RX_BUF_SIZE_8K (8 * 1024) | ||
416 | |||
402 | /** | 417 | /** |
403 | * struct iwl_rb_status - reseve buffer status | 418 | * struct iwl_rb_status - reseve buffer status |
404 | * host memory mapped FH registers | 419 | * host memory mapped FH registers |