diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h index 6649f7b55650..af4c1bb0de14 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * GPL LICENSE SUMMARY | 6 | * GPL LICENSE SUMMARY |
7 | * | 7 | * |
8 | * Copyright(c) 2005 - 2008 Intel Corporation. All rights reserved. | 8 | * Copyright(c) 2005 - 2009 Intel Corporation. All rights reserved. |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of version 2 of the GNU General Public License as | 11 | * it under the terms of version 2 of the GNU General Public License as |
@@ -30,7 +30,7 @@ | |||
30 | * | 30 | * |
31 | * BSD LICENSE | 31 | * BSD LICENSE |
32 | * | 32 | * |
33 | * Copyright(c) 2005 - 2008 Intel Corporation. All rights reserved. | 33 | * Copyright(c) 2005 - 2009 Intel Corporation. All rights reserved. |
34 | * All rights reserved. | 34 | * All rights reserved. |
35 | * | 35 | * |
36 | * Redistribution and use in source and binary forms, with or without | 36 | * Redistribution and use in source and binary forms, with or without |
@@ -89,7 +89,7 @@ | |||
89 | #define LONG_SLOT_TIME 20 | 89 | #define LONG_SLOT_TIME 20 |
90 | 90 | ||
91 | /* RSSI to dBm */ | 91 | /* RSSI to dBm */ |
92 | #define IWL_RSSI_OFFSET 44 | 92 | #define IWL49_RSSI_OFFSET 44 |
93 | 93 | ||
94 | 94 | ||
95 | 95 | ||
@@ -110,43 +110,29 @@ | |||
110 | 110 | ||
111 | #define IWL_DEFAULT_TX_RETRY 15 | 111 | #define IWL_DEFAULT_TX_RETRY 15 |
112 | 112 | ||
113 | #define RX_QUEUE_SIZE 256 | ||
114 | #define RX_QUEUE_MASK 255 | ||
115 | #define RX_QUEUE_SIZE_LOG 8 | ||
116 | |||
117 | #define TFD_TX_CMD_SLOTS 256 | ||
118 | #define TFD_CMD_SLOTS 32 | ||
119 | |||
120 | /* | ||
121 | * RX related structures and functions | ||
122 | */ | ||
123 | #define RX_FREE_BUFFERS 64 | ||
124 | #define RX_LOW_WATERMARK 8 | ||
125 | |||
126 | /* Size of one Rx buffer in host DRAM */ | ||
127 | #define IWL_RX_BUF_SIZE_4K (4 * 1024) | ||
128 | #define IWL_RX_BUF_SIZE_8K (8 * 1024) | ||
129 | 113 | ||
130 | /* Sizes and addresses for instruction and data memory (SRAM) in | 114 | /* Sizes and addresses for instruction and data memory (SRAM) in |
131 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ | 115 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ |
132 | #define RTC_INST_LOWER_BOUND (0x000000) | 116 | #define IWL49_RTC_INST_LOWER_BOUND (0x000000) |
133 | #define IWL49_RTC_INST_UPPER_BOUND (0x018000) | 117 | #define IWL49_RTC_INST_UPPER_BOUND (0x018000) |
134 | 118 | ||
135 | #define RTC_DATA_LOWER_BOUND (0x800000) | 119 | #define IWL49_RTC_DATA_LOWER_BOUND (0x800000) |
136 | #define IWL49_RTC_DATA_UPPER_BOUND (0x80A000) | 120 | #define IWL49_RTC_DATA_UPPER_BOUND (0x80A000) |
137 | 121 | ||
138 | #define IWL49_RTC_INST_SIZE (IWL49_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND) | 122 | #define IWL49_RTC_INST_SIZE (IWL49_RTC_INST_UPPER_BOUND - \ |
139 | #define IWL49_RTC_DATA_SIZE (IWL49_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND) | 123 | IWL49_RTC_INST_LOWER_BOUND) |
124 | #define IWL49_RTC_DATA_SIZE (IWL49_RTC_DATA_UPPER_BOUND - \ | ||
125 | IWL49_RTC_DATA_LOWER_BOUND) | ||
140 | 126 | ||
141 | #define IWL_MAX_INST_SIZE IWL49_RTC_INST_SIZE | 127 | #define IWL49_MAX_INST_SIZE IWL49_RTC_INST_SIZE |
142 | #define IWL_MAX_DATA_SIZE IWL49_RTC_DATA_SIZE | 128 | #define IWL49_MAX_DATA_SIZE IWL49_RTC_DATA_SIZE |
143 | 129 | ||
144 | /* Size of uCode instruction memory in bootstrap state machine */ | 130 | /* Size of uCode instruction memory in bootstrap state machine */ |
145 | #define IWL_MAX_BSM_SIZE BSM_SRAM_SIZE | 131 | #define IWL49_MAX_BSM_SIZE BSM_SRAM_SIZE |
146 | 132 | ||
147 | static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) | 133 | static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) |
148 | { | 134 | { |
149 | return (addr >= RTC_DATA_LOWER_BOUND) && | 135 | return (addr >= IWL49_RTC_DATA_LOWER_BOUND) && |
150 | (addr < IWL49_RTC_DATA_UPPER_BOUND); | 136 | (addr < IWL49_RTC_DATA_UPPER_BOUND); |
151 | } | 137 | } |
152 | 138 | ||