diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-08-26 02:11:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:30:28 -0400 |
commit | a72b8b088c3465b28192c1a14ba97be8223a8cec (patch) | |
tree | e0c5e544da09616285ec2d74212d693991e0c49b /drivers/net/wireless/iwlwifi | |
parent | 9d6b2cb1ccf9c1e00a0891eff78b93eb1a1fc372 (diff) |
iwlagn: add missing includes
a few h files weren't self contained. Fix that.
Move iwl_dma_ptr to transport layer since it is not used by the upper layer
any more.
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-bus.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-fh.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-shared.h | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h | 19 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.h | 4 |
8 files changed, 33 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-bus.h b/drivers/net/wireless/iwlwifi/iwl-bus.h index edec2f2647d8..e1cb65c45395 100644 --- a/drivers/net/wireless/iwlwifi/iwl-bus.h +++ b/drivers/net/wireless/iwlwifi/iwl-bus.h | |||
@@ -65,6 +65,8 @@ | |||
65 | 65 | ||
66 | /*This file includes the declaration that are exported from the bus layer */ | 66 | /*This file includes the declaration that are exported from the bus layer */ |
67 | 67 | ||
68 | #include <linux/types.h> | ||
69 | |||
68 | struct iwl_shared; | 70 | struct iwl_shared; |
69 | struct iwl_bus; | 71 | struct iwl_bus; |
70 | 72 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index 4b042e91f65c..7014f4124484 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #ifndef __iwl_debug_h__ | 29 | #ifndef __iwl_debug_h__ |
30 | #define __iwl_debug_h__ | 30 | #define __iwl_debug_h__ |
31 | 31 | ||
32 | #include "iwl-bus.h" | ||
32 | #include "iwl-shared.h" | 33 | #include "iwl-shared.h" |
33 | 34 | ||
34 | struct iwl_priv; | 35 | struct iwl_priv; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 30963bba75c1..12cca9deabdc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -641,13 +641,6 @@ static inline u8 get_cmd_index(struct iwl_queue *q, u32 index) | |||
641 | return index & (q->n_window - 1); | 641 | return index & (q->n_window - 1); |
642 | } | 642 | } |
643 | 643 | ||
644 | |||
645 | struct iwl_dma_ptr { | ||
646 | dma_addr_t dma; | ||
647 | void *addr; | ||
648 | size_t size; | ||
649 | }; | ||
650 | |||
651 | #define IWL_OPERATION_MODE_AUTO 0 | 644 | #define IWL_OPERATION_MODE_AUTO 0 |
652 | #define IWL_OPERATION_MODE_HT_ONLY 1 | 645 | #define IWL_OPERATION_MODE_HT_ONLY 1 |
653 | #define IWL_OPERATION_MODE_MIXED 2 | 646 | #define IWL_OPERATION_MODE_MIXED 2 |
diff --git a/drivers/net/wireless/iwlwifi/iwl-fh.h b/drivers/net/wireless/iwlwifi/iwl-fh.h index c1b88376dad2..5bede9d7f955 100644 --- a/drivers/net/wireless/iwlwifi/iwl-fh.h +++ b/drivers/net/wireless/iwlwifi/iwl-fh.h | |||
@@ -63,6 +63,8 @@ | |||
63 | #ifndef __iwl_fh_h__ | 63 | #ifndef __iwl_fh_h__ |
64 | #define __iwl_fh_h__ | 64 | #define __iwl_fh_h__ |
65 | 65 | ||
66 | #include <linux/types.h> | ||
67 | |||
66 | /****************************/ | 68 | /****************************/ |
67 | /* Flow Handler Definitions */ | 69 | /* Flow Handler Definitions */ |
68 | /****************************/ | 70 | /****************************/ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h index 7145e48bd014..45f8a33df6e4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-shared.h +++ b/drivers/net/wireless/iwlwifi/iwl-shared.h | |||
@@ -63,6 +63,11 @@ | |||
63 | #ifndef __iwl_shared_h__ | 63 | #ifndef __iwl_shared_h__ |
64 | #define __iwl_shared_h__ | 64 | #define __iwl_shared_h__ |
65 | 65 | ||
66 | #include <linux/types.h> | ||
67 | #include <linux/spinlock.h> | ||
68 | #include <linux/mutex.h> | ||
69 | #include <linux/gfp.h> | ||
70 | |||
66 | /*This files includes all the types / functions that are exported by the | 71 | /*This files includes all the types / functions that are exported by the |
67 | * upper layer to the bus and transport layer */ | 72 | * upper layer to the bus and transport layer */ |
68 | 73 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h b/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h index c258b3f47627..b77b0f79fcb0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h | |||
@@ -29,7 +29,20 @@ | |||
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 <linux/spinlock.h> | ||
33 | #include <linux/interrupt.h> | ||
34 | #include <linux/skbuff.h> | ||
35 | |||
32 | #include "iwl-fh.h" | 36 | #include "iwl-fh.h" |
37 | #include "iwl-csr.h" | ||
38 | #include "iwl-shared.h" | ||
39 | #include "iwl-trans.h" | ||
40 | #include "iwl-debug.h" | ||
41 | #include "iwl-io.h" | ||
42 | |||
43 | struct iwl_tx_queue; | ||
44 | struct iwl_queue; | ||
45 | struct iwl_host_cmd; | ||
33 | 46 | ||
34 | /*This file includes the declaration that are internal to the | 47 | /*This file includes the declaration that are internal to the |
35 | * trans_pcie layer */ | 48 | * trans_pcie layer */ |
@@ -88,6 +101,12 @@ struct iwl_rx_queue { | |||
88 | spinlock_t lock; | 101 | spinlock_t lock; |
89 | }; | 102 | }; |
90 | 103 | ||
104 | struct iwl_dma_ptr { | ||
105 | dma_addr_t dma; | ||
106 | void *addr; | ||
107 | size_t size; | ||
108 | }; | ||
109 | |||
91 | /** | 110 | /** |
92 | * struct iwl_trans_pcie - PCIe transport specific data | 111 | * struct iwl_trans_pcie - PCIe transport specific data |
93 | * @rxq: all the RX queue data | 112 | * @rxq: all the RX queue data |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c index 14c22b7e8d6f..95c9e8794839 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans.c | |||
@@ -72,7 +72,6 @@ | |||
72 | #include "iwl-trans-int-pcie.h" | 72 | #include "iwl-trans-int-pcie.h" |
73 | /*TODO remove uneeded includes when the transport layer tx_free will be here */ | 73 | /*TODO remove uneeded includes when the transport layer tx_free will be here */ |
74 | #include "iwl-agn.h" | 74 | #include "iwl-agn.h" |
75 | #include "iwl-core.h" | ||
76 | #include "iwl-shared.h" | 75 | #include "iwl-shared.h" |
77 | 76 | ||
78 | static int iwl_trans_rx_alloc(struct iwl_trans *trans) | 77 | static int iwl_trans_rx_alloc(struct iwl_trans *trans) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h index 78bd2f636452..0da6ad593f05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans.h | |||
@@ -64,6 +64,10 @@ | |||
64 | #define __iwl_trans_h__ | 64 | #define __iwl_trans_h__ |
65 | 65 | ||
66 | #include <linux/debugfs.h> | 66 | #include <linux/debugfs.h> |
67 | #include <linux/skbuff.h> | ||
68 | |||
69 | #include "iwl-shared.h" | ||
70 | #include "iwl-commands.h" | ||
67 | 71 | ||
68 | /*This file includes the declaration that are exported from the transport | 72 | /*This file includes the declaration that are exported from the transport |
69 | * layer */ | 73 | * layer */ |