diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-08-26 02:11:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:30:28 -0400 |
commit | dda61a4482661d71034cc132d1f474f19ce34a4d (patch) | |
tree | 062befbefef66c336c4be274fb2f4a655cc5ae96 | |
parent | ab9e212e92aa2820a5b961c42142d36257b0742c (diff) |
iwlagn: iwl-dev.h doesn't include iwl-fh.h any more
Since iwl-fh.h contains transport related data, it shouldn't be included by the
upper layer.
Only the transport layer and iwl-agn-ucode.c includes it.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hw.h | 13 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-fh.h | 18 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sv-open.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h | 2 |
8 files changed, 20 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h index 47c43042ba4f..33951a11327d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h | |||
@@ -95,17 +95,4 @@ | |||
95 | #define IWLAGN_NUM_AMPDU_QUEUES 9 | 95 | #define IWLAGN_NUM_AMPDU_QUEUES 9 |
96 | #define IWLAGN_FIRST_AMPDU_QUEUE 11 | 96 | #define IWLAGN_FIRST_AMPDU_QUEUE 11 |
97 | 97 | ||
98 | /* Fixed (non-configurable) rx data from phy */ | ||
99 | |||
100 | /** | ||
101 | * struct iwlagn_schedq_bc_tbl scheduler byte count table | ||
102 | * base physical address provided by SCD_DRAM_BASE_ADDR | ||
103 | * @tfd_offset 0-12 - tx command byte count | ||
104 | * 12-16 - station index | ||
105 | */ | ||
106 | struct iwlagn_scd_bc_tbl { | ||
107 | __le16 tfd_offset[TFD_QUEUE_BC_SIZE]; | ||
108 | } __packed; | ||
109 | |||
110 | |||
111 | #endif /* __iwl_agn_hw_h__ */ | 98 | #endif /* __iwl_agn_hw_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c index a094b66541b1..033f595a6d55 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "iwl-agn.h" | 40 | #include "iwl-agn.h" |
41 | #include "iwl-agn-calib.h" | 41 | #include "iwl-agn-calib.h" |
42 | #include "iwl-trans.h" | 42 | #include "iwl-trans.h" |
43 | #include "iwl-fh.h" | ||
43 | 44 | ||
44 | static struct iwl_wimax_coex_event_entry cu_priorities[COEX_NUM_OF_EVENTS] = { | 45 | static struct iwl_wimax_coex_event_entry cu_priorities[COEX_NUM_OF_EVENTS] = { |
45 | {COEX_CU_UNASSOC_IDLE_RP, COEX_CU_UNASSOC_IDLE_WP, | 46 | {COEX_CU_UNASSOC_IDLE_RP, COEX_CU_UNASSOC_IDLE_WP, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 61437438c843..5d2696257541 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3189,6 +3189,10 @@ static u32 iwl_hw_detect(struct iwl_priv *priv) | |||
3189 | return iwl_read32(priv, CSR_HW_REV); | 3189 | return iwl_read32(priv, CSR_HW_REV); |
3190 | } | 3190 | } |
3191 | 3191 | ||
3192 | /* Size of one Rx buffer in host DRAM */ | ||
3193 | #define IWL_RX_BUF_SIZE_4K (4 * 1024) | ||
3194 | #define IWL_RX_BUF_SIZE_8K (8 * 1024) | ||
3195 | |||
3192 | static int iwl_set_hw_params(struct iwl_priv *priv) | 3196 | static int iwl_set_hw_params(struct iwl_priv *priv) |
3193 | { | 3197 | { |
3194 | if (iwlagn_mod_params.amsdu_size_8K) | 3198 | if (iwlagn_mod_params.amsdu_size_8K) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 1426b2fb1c3a..56252897ab3e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -3911,6 +3911,7 @@ struct iwlagn_wowlan_kek_kck_material_cmd { | |||
3911 | * Union of all expected notifications/responses: | 3911 | * Union of all expected notifications/responses: |
3912 | * | 3912 | * |
3913 | *****************************************************************************/ | 3913 | *****************************************************************************/ |
3914 | #define FH_RSCSR_FRAME_SIZE_MSK (0x00003FFF) /* bits 0-13 */ | ||
3914 | 3915 | ||
3915 | struct iwl_rx_packet { | 3916 | struct iwl_rx_packet { |
3916 | /* | 3917 | /* |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index de293cf02177..abc011834b9b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -41,7 +41,6 @@ | |||
41 | #include "iwl-eeprom.h" | 41 | #include "iwl-eeprom.h" |
42 | #include "iwl-csr.h" | 42 | #include "iwl-csr.h" |
43 | #include "iwl-prph.h" | 43 | #include "iwl-prph.h" |
44 | #include "iwl-fh.h" | ||
45 | #include "iwl-debug.h" | 44 | #include "iwl-debug.h" |
46 | #include "iwl-agn-hw.h" | 45 | #include "iwl-agn-hw.h" |
47 | #include "iwl-led.h" | 46 | #include "iwl-led.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-fh.h b/drivers/net/wireless/iwlwifi/iwl-fh.h index 0ad60b3c04db..c1b88376dad2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-fh.h +++ b/drivers/net/wireless/iwlwifi/iwl-fh.h | |||
@@ -266,8 +266,6 @@ | |||
266 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_NO_INT_VAL (0x00000000) | 266 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_NO_INT_VAL (0x00000000) |
267 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL (0x00001000) | 267 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL (0x00001000) |
268 | 268 | ||
269 | #define FH_RSCSR_FRAME_SIZE_MSK (0x00003FFF) /* bits 0-13 */ | ||
270 | |||
271 | /** | 269 | /** |
272 | * Rx Shared Status Registers (RSSR) | 270 | * Rx Shared Status Registers (RSSR) |
273 | * | 271 | * |
@@ -422,10 +420,6 @@ | |||
422 | #define RX_FREE_BUFFERS 64 | 420 | #define RX_FREE_BUFFERS 64 |
423 | #define RX_LOW_WATERMARK 8 | 421 | #define RX_LOW_WATERMARK 8 |
424 | 422 | ||
425 | /* Size of one Rx buffer in host DRAM */ | ||
426 | #define IWL_RX_BUF_SIZE_4K (4 * 1024) | ||
427 | #define IWL_RX_BUF_SIZE_8K (8 * 1024) | ||
428 | |||
429 | /** | 423 | /** |
430 | * struct iwl_rb_status - reseve buffer status | 424 | * struct iwl_rb_status - reseve buffer status |
431 | * host memory mapped FH registers | 425 | * host memory mapped FH registers |
@@ -508,4 +502,16 @@ struct iwl_tfd { | |||
508 | /* Keep Warm Size */ | 502 | /* Keep Warm Size */ |
509 | #define IWL_KW_SIZE 0x1000 /* 4k */ | 503 | #define IWL_KW_SIZE 0x1000 /* 4k */ |
510 | 504 | ||
505 | /* Fixed (non-configurable) rx data from phy */ | ||
506 | |||
507 | /** | ||
508 | * struct iwlagn_schedq_bc_tbl scheduler byte count table | ||
509 | * base physical address provided by SCD_DRAM_BASE_ADDR | ||
510 | * @tfd_offset 0-12 - tx command byte count | ||
511 | * 12-16 - station index | ||
512 | */ | ||
513 | struct iwlagn_scd_bc_tbl { | ||
514 | __le16 tfd_offset[TFD_QUEUE_BC_SIZE]; | ||
515 | } __packed; | ||
516 | |||
511 | #endif /* !__iwl_fh_h__ */ | 517 | #endif /* !__iwl_fh_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-sv-open.c b/drivers/net/wireless/iwlwifi/iwl-sv-open.c index 4d4358ae69a6..15c9be8d455f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sv-open.c +++ b/drivers/net/wireless/iwlwifi/iwl-sv-open.c | |||
@@ -72,7 +72,6 @@ | |||
72 | #include "iwl-dev.h" | 72 | #include "iwl-dev.h" |
73 | #include "iwl-core.h" | 73 | #include "iwl-core.h" |
74 | #include "iwl-debug.h" | 74 | #include "iwl-debug.h" |
75 | #include "iwl-fh.h" | ||
76 | #include "iwl-io.h" | 75 | #include "iwl-io.h" |
77 | #include "iwl-agn.h" | 76 | #include "iwl-agn.h" |
78 | #include "iwl-testmode.h" | 77 | #include "iwl-testmode.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h b/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h index 59c6b3c673e4..af2d47820d05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h | |||
@@ -29,6 +29,8 @@ | |||
29 | #ifndef __iwl_trans_int_pcie_h__ | 29 | #ifndef __iwl_trans_int_pcie_h__ |
30 | #define __iwl_trans_int_pcie_h__ | 30 | #define __iwl_trans_int_pcie_h__ |
31 | 31 | ||
32 | #include "iwl-fh.h" | ||
33 | |||
32 | /*This file includes the declaration that are internal to the | 34 | /*This file includes the declaration that are internal to the |
33 | * trans_pcie layer */ | 35 | * trans_pcie layer */ |
34 | 36 | ||