aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-shared.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-shared.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h
index 3ebe96eb346b..8bb56f2b6152 100644
--- a/drivers/net/wireless/iwlwifi/iwl-shared.h
+++ b/drivers/net/wireless/iwlwifi/iwl-shared.h
@@ -72,32 +72,6 @@
72#include "iwl-fw.h" 72#include "iwl-fw.h"
73#include "iwl-config.h" 73#include "iwl-config.h"
74 74
75/**
76 * DOC: shared area - role and goal
77 *
78 * The shared area contains all the data exported by the upper layer to the
79 * other layers. Since the bus and transport layer shouldn't dereference
80 * iwl_priv, all the data needed by the upper layer and the transport / bus
81 * layer must be here.
82 * The shared area also holds pointer to all the other layers. This allows a
83 * layer to call a function from another layer.
84 *
85 * NOTE: All the layers hold a pointer to the shared area which must be shrd.
86 * A few macros assume that (_m)->shrd points to the shared area no matter
87 * what _m is.
88 *
89 * gets notifications about enumeration, suspend, resume.
90 * For the moment, the bus layer is not a linux kernel module as itself, and
91 * the module_init function of the driver must call the bus specific
92 * registration functions. These functions are listed at the end of this file.
93 * For the moment, there is only one implementation of this interface: PCI-e.
94 * This implementation is iwl-pci.c
95 */
96
97struct iwl_priv;
98struct iwl_trans;
99struct iwl_trans_ops;
100
101#define DRV_NAME "iwlwifi" 75#define DRV_NAME "iwlwifi"
102#define IWLWIFI_VERSION "in-tree:" 76#define IWLWIFI_VERSION "in-tree:"
103#define DRV_COPYRIGHT "Copyright(c) 2003-2012 Intel Corporation" 77#define DRV_COPYRIGHT "Copyright(c) 2003-2012 Intel Corporation"
@@ -147,18 +121,6 @@ struct iwl_mod_params {
147 bool auto_agg; 121 bool auto_agg;
148}; 122};
149 123
150/**
151 * struct iwl_shared - shared fields for all the layers of the driver
152 *
153 * @trans: pointer to the transport layer data
154 */
155struct iwl_shared {
156 struct iwl_trans *trans;
157};
158
159/*Whatever _m is (iwl_trans, iwl_priv, these macros will work */
160#define trans(_m) ((_m)->shrd->trans)
161
162static inline bool iwl_have_debug_level(u32 level) 124static inline bool iwl_have_debug_level(u32 level)
163{ 125{
164 return iwlagn_mod_params.debug_level & level; 126 return iwlagn_mod_params.debug_level & level;