aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-bus.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:10:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:25:32 -0400
commit6fbfae8e65139061080c70c8c337f74c50e8fd55 (patch)
treeb2939e84d670f7847131cca3f1870bb35df4d7ed /drivers/net/wireless/iwlwifi/iwl-bus.h
parente6bb4c9c00892c488f3218ea317dc6a71674faf4 (diff)
iwlagn: add comments to iwl_bus / iwl_trans
Rename the recursive inclusion protection in iwl-bus.h while we are at 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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-bus.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-bus.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-bus.h b/drivers/net/wireless/iwlwifi/iwl-bus.h
index 5d0e155a6ee9..edec2f2647d8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-bus.h
+++ b/drivers/net/wireless/iwlwifi/iwl-bus.h
@@ -60,8 +60,10 @@
60 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 60 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61 * 61 *
62 *****************************************************************************/ 62 *****************************************************************************/
63#ifndef __iwl_pci_h__ 63#ifndef __iwl_bus_h__
64#define __iwl_pci_h__ 64#define __iwl_bus_h__
65
66/*This file includes the declaration that are exported from the bus layer */
65 67
66struct iwl_shared; 68struct iwl_shared;
67struct iwl_bus; 69struct iwl_bus;
@@ -86,6 +88,13 @@ struct iwl_bus_ops {
86 u32 (*read32)(struct iwl_bus *bus, u32 ofs); 88 u32 (*read32)(struct iwl_bus *bus, u32 ofs);
87}; 89};
88 90
91/**
92 * struct iwl_bus - bus common data
93 * @dev - pointer to struct device * that represent the device
94 * @ops - pointer to iwl_bus_ops
95 * @shrd - pointer to iwl_shared which holds shared data from the upper layer
96 * @irq - the irq number for the device
97 */
89struct iwl_bus { 98struct iwl_bus {
90 /* Common data to all buses */ 99 /* Common data to all buses */
91 struct device *dev; 100 struct device *dev;
@@ -138,4 +147,4 @@ static inline u32 bus_read32(struct iwl_bus *bus, u32 ofs)
138int __must_check iwl_pci_register_driver(void); 147int __must_check iwl_pci_register_driver(void);
139void iwl_pci_unregister_driver(void); 148void iwl_pci_unregister_driver(void);
140 149
141#endif 150#endif /* __iwl_bus_h__ */