diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-12-18 21:37:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:50 -0500 |
commit | bddadf86fb284f237d6e2d3496772c8f5c68370e (patch) | |
tree | f605f0b6c8fd77c73feefe645f31e3f78bd91650 /drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |
parent | 7cbf0ba5193d1f3bb3caaa06668e22bc86776e41 (diff) |
iwlwifi: 3945 extract flow handler definitions into iwl-3945-fh.h
This patch moves 3945 definitions into iwl-3945-fh.h
It renames FH_ to FH39 to help inclusion of 3945 into iwlcore
framework
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-3945-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-hw.h | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h index 94ea0e60c410..1df385b7c39e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |||
@@ -288,107 +288,6 @@ struct iwl3945_eeprom { | |||
288 | #define PCI_REG_WUM8 0x0E8 | 288 | #define PCI_REG_WUM8 0x0E8 |
289 | #define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000) | 289 | #define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000) |
290 | 290 | ||
291 | /*=== FH (data Flow Handler) ===*/ | ||
292 | #define FH_BASE (0x800) | ||
293 | |||
294 | #define FH_CBCC_TABLE (FH_BASE+0x140) | ||
295 | #define FH_TFDB_TABLE (FH_BASE+0x180) | ||
296 | #define FH_RCSR_TABLE (FH_BASE+0x400) | ||
297 | #define FH_RSSR_TABLE (FH_BASE+0x4c0) | ||
298 | #define FH_TCSR_TABLE (FH_BASE+0x500) | ||
299 | #define FH_TSSR_TABLE (FH_BASE+0x680) | ||
300 | |||
301 | /* TFDB (Transmit Frame Buffer Descriptor) */ | ||
302 | #define FH_TFDB(_channel, buf) \ | ||
303 | (FH_TFDB_TABLE+((_channel)*2+(buf))*0x28) | ||
304 | #define ALM_FH_TFDB_CHNL_BUF_CTRL_REG(_channel) \ | ||
305 | (FH_TFDB_TABLE + 0x50 * _channel) | ||
306 | /* CBCC _channel is [0,2] */ | ||
307 | #define FH_CBCC(_channel) (FH_CBCC_TABLE+(_channel)*0x8) | ||
308 | #define FH_CBCC_CTRL(_channel) (FH_CBCC(_channel)+0x00) | ||
309 | #define FH_CBCC_BASE(_channel) (FH_CBCC(_channel)+0x04) | ||
310 | |||
311 | /* RCSR _channel is [0,2] */ | ||
312 | #define FH_RCSR(_channel) (FH_RCSR_TABLE+(_channel)*0x40) | ||
313 | #define FH_RCSR_CONFIG(_channel) (FH_RCSR(_channel)+0x00) | ||
314 | #define FH_RCSR_RBD_BASE(_channel) (FH_RCSR(_channel)+0x04) | ||
315 | #define FH_RCSR_WPTR(_channel) (FH_RCSR(_channel)+0x20) | ||
316 | #define FH_RCSR_RPTR_ADDR(_channel) (FH_RCSR(_channel)+0x24) | ||
317 | |||
318 | #define FH_RSCSR_CHNL0_WPTR (FH_RCSR_WPTR(0)) | ||
319 | |||
320 | /* RSSR */ | ||
321 | #define FH_RSSR_CTRL (FH_RSSR_TABLE+0x000) | ||
322 | #define FH_RSSR_STATUS (FH_RSSR_TABLE+0x004) | ||
323 | #define FH_RSSR_CHNL0_RX_STATUS_CHNL_IDLE (0x01000000) | ||
324 | /* TCSR */ | ||
325 | #define FH_TCSR(_channel) (FH_TCSR_TABLE+(_channel)*0x20) | ||
326 | #define FH_TCSR_CONFIG(_channel) (FH_TCSR(_channel)+0x00) | ||
327 | #define FH_TCSR_CREDIT(_channel) (FH_TCSR(_channel)+0x04) | ||
328 | #define FH_TCSR_BUFF_STTS(_channel) (FH_TCSR(_channel)+0x08) | ||
329 | /* TSSR */ | ||
330 | #define FH_TSSR_CBB_BASE (FH_TSSR_TABLE+0x000) | ||
331 | #define FH_TSSR_MSG_CONFIG (FH_TSSR_TABLE+0x008) | ||
332 | #define FH_TSSR_TX_STATUS (FH_TSSR_TABLE+0x010) | ||
333 | |||
334 | |||
335 | /* DBM */ | ||
336 | |||
337 | #define ALM_FH_SRVC_CHNL (6) | ||
338 | |||
339 | #define ALM_FH_RCSR_RX_CONFIG_REG_POS_RBDC_SIZE (20) | ||
340 | #define ALM_FH_RCSR_RX_CONFIG_REG_POS_IRQ_RBTH (4) | ||
341 | |||
342 | #define ALM_FH_RCSR_RX_CONFIG_REG_BIT_WR_STTS_EN (0x08000000) | ||
343 | |||
344 | #define ALM_FH_RCSR_RX_CONFIG_REG_VAL_DMA_CHNL_EN_ENABLE (0x80000000) | ||
345 | |||
346 | #define ALM_FH_RCSR_RX_CONFIG_REG_VAL_RDRBD_EN_ENABLE (0x20000000) | ||
347 | |||
348 | #define ALM_FH_RCSR_RX_CONFIG_REG_VAL_MAX_FRAG_SIZE_128 (0x01000000) | ||
349 | |||
350 | #define ALM_FH_RCSR_RX_CONFIG_REG_VAL_IRQ_DEST_INT_HOST (0x00001000) | ||
351 | |||
352 | #define ALM_FH_RCSR_RX_CONFIG_REG_VAL_MSG_MODE_FH (0x00000000) | ||
353 | |||
354 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_TXF (0x00000000) | ||
355 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_DRIVER (0x00000001) | ||
356 | |||
357 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_DISABLE_VAL (0x00000000) | ||
358 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_ENABLE_VAL (0x00000008) | ||
359 | |||
360 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_IFTFD (0x00200000) | ||
361 | |||
362 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_NOINT (0x00000000) | ||
363 | |||
364 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_PAUSE (0x00000000) | ||
365 | #define ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_ENABLE (0x80000000) | ||
366 | |||
367 | #define ALM_FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_VALID (0x00004000) | ||
368 | |||
369 | #define ALM_FH_TCSR_CHNL_TX_BUF_STS_REG_BIT_TFDB_WPTR (0x00000001) | ||
370 | |||
371 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_SNOOP_RD_TXPD_ON (0xFF000000) | ||
372 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RD_TXPD_ON (0x00FF0000) | ||
373 | |||
374 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_MAX_FRAG_SIZE_128B (0x00000400) | ||
375 | |||
376 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_SNOOP_RD_TFD_ON (0x00000100) | ||
377 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RD_CBB_ON (0x00000080) | ||
378 | |||
379 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RSP_WAIT_TH (0x00000020) | ||
380 | #define ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_RSP_WAIT_TH (0x00000005) | ||
381 | |||
382 | #define ALM_TB_MAX_BYTES_COUNT (0xFFF0) | ||
383 | |||
384 | #define ALM_FH_TSSR_TX_STATUS_REG_BIT_BUFS_EMPTY(_channel) \ | ||
385 | ((1LU << _channel) << 24) | ||
386 | #define ALM_FH_TSSR_TX_STATUS_REG_BIT_NO_PEND_REQ(_channel) \ | ||
387 | ((1LU << _channel) << 16) | ||
388 | |||
389 | #define ALM_FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(_channel) \ | ||
390 | (ALM_FH_TSSR_TX_STATUS_REG_BIT_BUFS_EMPTY(_channel) | \ | ||
391 | ALM_FH_TSSR_TX_STATUS_REG_BIT_NO_PEND_REQ(_channel)) | ||
392 | #define PCI_CFG_REV_ID_BIT_BASIC_SKU (0x40) /* bit 6 */ | 291 | #define PCI_CFG_REV_ID_BIT_BASIC_SKU (0x40) /* bit 6 */ |
393 | #define PCI_CFG_REV_ID_BIT_RTP (0x80) /* bit 7 */ | 292 | #define PCI_CFG_REV_ID_BIT_RTP (0x80) /* bit 7 */ |
394 | 293 | ||