diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-13 05:47:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:08 -0400 |
commit | 8793f9bb19c00b26532e37f1f516e1d9c7bc0476 (patch) | |
tree | cb1c12ec546584761894976f1258a7cb236f0287 /drivers/net/wireless/wl12xx/wl1271_conf.h | |
parent | 2b60100bf04aba28133ccb24efd85f72fb1a5494 (diff) |
wl1271: Add config structure for RX path parameters
Add a configuration structure for RX path parameters, and set default
configuration values there.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_conf.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_conf.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_conf.h b/drivers/net/wireless/wl12xx/wl1271_conf.h index 1d6a44bec1cb..8bf8bff54b59 100644 --- a/drivers/net/wireless/wl12xx/wl1271_conf.h +++ b/drivers/net/wireless/wl12xx/wl1271_conf.h | |||
@@ -171,8 +171,93 @@ struct conf_sg_settings { | |||
171 | s8 rate_adaptation_snr; | 171 | s8 rate_adaptation_snr; |
172 | }; | 172 | }; |
173 | 173 | ||
174 | enum conf_rx_queue_type { | ||
175 | CONF_RX_QUEUE_TYPE_LOW_PRIORITY, /* All except the high priority */ | ||
176 | CONF_RX_QUEUE_TYPE_HIGH_PRIORITY, /* Management and voice packets */ | ||
177 | }; | ||
178 | |||
179 | struct conf_rx_settings { | ||
180 | /* | ||
181 | * The maximum amount of time, in TU, before the | ||
182 | * firmware discards the MSDU. | ||
183 | * | ||
184 | * Range: 0 - 0xFFFFFFFF | ||
185 | */ | ||
186 | u32 rx_msdu_life_time; | ||
187 | |||
188 | /* | ||
189 | * Packet detection threshold in the PHY. | ||
190 | * | ||
191 | * FIXME: details unknown. | ||
192 | */ | ||
193 | u32 packet_detection_threshold; | ||
194 | |||
195 | /* | ||
196 | * The longest time the STA will wait to receive traffic from the AP | ||
197 | * after a PS-poll has been transmitted. | ||
198 | * | ||
199 | * Range: 0 - 200000 | ||
200 | */ | ||
201 | u16 ps_poll_timeout; | ||
202 | /* | ||
203 | * The longest time the STA will wait to receive traffic from the AP | ||
204 | * after a frame has been sent from an UPSD enabled queue. | ||
205 | * | ||
206 | * Range: 0 - 200000 | ||
207 | */ | ||
208 | u16 upsd_timeout; | ||
209 | |||
210 | /* | ||
211 | * The number of octets in an MPDU, below which an RTS/CTS | ||
212 | * handshake is not performed. | ||
213 | * | ||
214 | * Range: 0 - 4096 | ||
215 | */ | ||
216 | u16 rts_threshold; | ||
217 | |||
218 | /* | ||
219 | * The RX Clear Channel Assessment threshold in the PHY | ||
220 | * (the energy threshold). | ||
221 | * | ||
222 | * Range: ENABLE_ENERGY_D == 0x140A | ||
223 | * DISABLE_ENERGY_D == 0xFFEF | ||
224 | */ | ||
225 | u16 rx_cca_threshold; | ||
226 | |||
227 | /* | ||
228 | * Occupied Rx mem-blocks number which requires interrupting the host | ||
229 | * (0 = no buffering, 0xffff = disabled). | ||
230 | * | ||
231 | * Range: u16 | ||
232 | */ | ||
233 | u16 irq_blk_threshold; | ||
234 | |||
235 | /* | ||
236 | * Rx packets number which requires interrupting the host | ||
237 | * (0 = no buffering). | ||
238 | * | ||
239 | * Range: u16 | ||
240 | */ | ||
241 | u16 irq_pkt_threshold; | ||
242 | |||
243 | /* | ||
244 | * Max time in msec the FW may delay RX-Complete interrupt. | ||
245 | * | ||
246 | * Range: 1 - 100 | ||
247 | */ | ||
248 | u16 irq_timeout; | ||
249 | |||
250 | /* | ||
251 | * The RX queue type. | ||
252 | * | ||
253 | * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY, | ||
254 | */ | ||
255 | u8 queue_type; | ||
256 | }; | ||
257 | |||
174 | struct conf_drv_settings { | 258 | struct conf_drv_settings { |
175 | struct conf_sg_settings sg; | 259 | struct conf_sg_settings sg; |
260 | struct conf_rx_settings rx; | ||
176 | }; | 261 | }; |
177 | 262 | ||
178 | #endif | 263 | #endif |