]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: w35und: #include cleanup
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 30 Oct 2008 11:04:29 +0000 (13:04 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:47 +0000 (13:51 -0800)
This patch moves #includes from sysdef.h and common.h to the files which
actually need them. This makes the dependencies less complex and allows us to
move code around much easily.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
41 files changed:
drivers/staging/winbond/adapter.h
drivers/staging/winbond/bss_f.h
drivers/staging/winbond/bssdscpt.h
drivers/staging/winbond/ds_tkip.h
drivers/staging/winbond/gl_80211.h
drivers/staging/winbond/linux/common.h
drivers/staging/winbond/linux/sysdef.h
drivers/staging/winbond/linux/wb35reg.c
drivers/staging/winbond/linux/wb35reg_f.h
drivers/staging/winbond/linux/wb35reg_s.h
drivers/staging/winbond/linux/wb35rx.c
drivers/staging/winbond/linux/wb35rx_f.h
drivers/staging/winbond/linux/wb35tx.c
drivers/staging/winbond/linux/wb35tx_f.h
drivers/staging/winbond/linux/wb35tx_s.h
drivers/staging/winbond/linux/wbusb.c
drivers/staging/winbond/linux/wbusb_s.h
drivers/staging/winbond/localpara.h
drivers/staging/winbond/mac_structures.h
drivers/staging/winbond/mds.c
drivers/staging/winbond/mds_f.h
drivers/staging/winbond/mds_s.h
drivers/staging/winbond/mlme_s.h
drivers/staging/winbond/mlmetxrx.c
drivers/staging/winbond/mlmetxrx_f.h
drivers/staging/winbond/mto.c
drivers/staging/winbond/mto.h
drivers/staging/winbond/mto_f.h
drivers/staging/winbond/phy_calibration.c
drivers/staging/winbond/phy_calibration.h
drivers/staging/winbond/reg.c
drivers/staging/winbond/rxisr.c
drivers/staging/winbond/scan_s.h
drivers/staging/winbond/sme_api.c
drivers/staging/winbond/sme_api.h
drivers/staging/winbond/sme_s.h
drivers/staging/winbond/wbhal.c
drivers/staging/winbond/wbhal_f.h
drivers/staging/winbond/wbhal_s.h
drivers/staging/winbond/wblinux.c
drivers/staging/winbond/wblinux_f.h

index fb07c7b2793b2e18ff50d3ac291b7cf4cbd99724..e67e034e938aac773558d765a5d28a56015c8506 100644 (file)
@@ -1,3 +1,12 @@
+#ifndef __WINBOND_ADAPTER_H
+#define __WINBOND_ADAPTER_H
+
+#include <linux/wireless.h>
+
+#include "bssdscpt.h"
+#include "mto.h"
+#include "wbhal_s.h"
+
 #define OS_SET_SHUTDOWN( _A )          _A->shutdown=1
 #define OS_SET_RESUME( _A )            _A->shutdown=0
 #define OS_STOP( _A )  WBLINUX_stop( _A )
@@ -45,3 +54,5 @@ struct wb35_adapter {
 
        u8 LinkName[MAX_ANSI_STRING];
 };
+
+#endif
index a7ef3deb5f7f068dad0dcb7e4f1af46fa2caa424..feffe5f25f0587d0a19c41f38588bb931d4db1bd 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef __WINBOND_BSS_F_H
+#define __WINBOND_BSS_F_H
+
+#include "adapter.h"
+
+struct PMKID_Information_Element;
+
 //
 // BSS descriptor DataBase management global function
 //
@@ -53,7 +60,4 @@ u16 SearchPmkid(struct wb35_adapter * adapter, struct  Management_Frame* msgHead
                                   struct PMKID_Information_Element * AssoReq_PMKID );
 #endif
 
-
-
-
-
+#endif
index 90b56829c5fb632ba0513d2ed7f2d79bba3be7cd..3a71d4efb897477f9d15c1f8dde04060d2eedebb 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef __WINBOND_BSSDSCPT_H
+#define __WINBOND_BSSDSCPT_H
+
+#include <linux/types.h>
+
+#include "mds_s.h"
+#include "mlme_s.h"
+
 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 //     bssdscpt.c
 //             BSS descriptor data base
@@ -153,4 +161,4 @@ typedef struct BSSDescriptionElement
 
 #define psBSS(i)                       (&(adapter->asBSSDescriptElement[(i)]))
 
-
+#endif
index 6cfe3de449f0992d03fd93a16bbfdd902555ab1f..9c5c4e73f2c26e54d307076c066d31d659b51d03 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_DS_TKIP_H
+#define __WINBOND_DS_TKIP_H
+
+#include <linux/types.h>
+
 // Rotation functions on 32 bit values
 #define ROL32( A, n ) \
     ( ((A) << (n)) | ( ((A)>>(32-(n)))  & ( (1UL << (n)) - 1 ) ) )
@@ -29,5 +34,4 @@ typedef struct tkip
 void Mds_MicGet(  void* adapter,  void* pRxLayer1,  u8 *pKey,  u8 *pMic );
 void Mds_MicFill(  void* adapter,  void* pDes,  u8 *XmitBufAddress );
 
-
-
+#endif
index 1806d817496eb373ea5b210f344087e5b2505121..5a244c44a61a95dbd05a970dd25c301da3ce2e65 100644 (file)
@@ -1,7 +1,8 @@
-
 #ifndef __GL_80211_H__
 #define __GL_80211_H__
 
+#include <linux/types.h>
+
 /****************** CONSTANT AND MACRO SECTION ******************************/
 
 /* BSS Type */
index 23853da382735db086ffcdd8d3ba7f3e5d562155..2badc2984a38764f1f5d7e4f19c26ba1db23bfe7 100644 (file)
 #ifndef COMMON_DEF
 #define COMMON_DEF
 
-#include <linux/version.h>
-#include <linux/usb.h>
-#include <linux/kernel.h> //need for kernel alert
-#include <linux/autoconf.h>
-#include <linux/sched.h>
-#include <linux/signal.h>
-#include <linux/slab.h> //memory allocate
-#include <linux/module.h>
-#include <linux/netdevice.h>
-#include <linux/etherdevice.h>
-#include <linux/init.h>//need for init and exit modules marco
-#include <linux/ctype.h>
-#include <linux/wait.h>
-#include <linux/list.h>
-#include <linux/wireless.h>
-#include <linux/if_arp.h>
-#include <asm/uaccess.h>
-#include <net/iw_handler.h>
-#include <linux/skbuff.h>
-
-
 //#define DEBUG_ENABLED  1
 
 //==================================================================================================
index 4b35a972165dfd86f94972d9b099de5f9f0797be..60e4c04f725baef2f91d28bd501668d6dd5cc7b8 100644 (file)
 #define _PE_USB_INI_DUMP_
 #endif
 
-
-
-#include "common.h"    // Individual file depends on OS
-
-#include "../wb35_ver.h"
-#include "../mac_structures.h"
-#include "../ds_tkip.h"
-#include "../localpara.h"
-#include "../sme_s.h"
-#include "../scan_s.h"
-#include "../mds_s.h"
-#include "../mlme_s.h"
-#include "../bssdscpt.h"
-#include "../sme_api.h"
-#include "../gl_80211.h"
-#include "../mto.h"
-#include "../wbhal_s.h"
-
-
-#include "../adapter.h"
-
-#include "../mlme_mib.h"
-#include "../mds_f.h"
-#include "../bss_f.h"
-#include "../mlmetxrx_f.h"
-#include "../mto_f.h"
-#include "../wbhal_f.h"
-#include "../wblinux_f.h"
 // Kernel Timer resolution, NDIS is 10ms, 10000us
 #define MIN_TIMEOUT_VAL        (10) //ms
 
-
 #endif
index 6215e3ca418aa00c4bf031677675c7f0c32d468a..4c9fd2b62d745434af8533b5c7123ae1f5b0fb61 100644 (file)
@@ -1,4 +1,7 @@
 #include "sysdef.h"
+#include "wb35reg_f.h"
+
+#include <linux/usb.h>
 
 extern void phy_calibration_winbond(hw_data_t *phw_data, u32 frequency);
 
index fc940914e34f3bf22a03c47e822cd7797b79a3f2..9a178b9fb6c110aa29889a4ba3eb2f9804b03e37 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_WB35REG_F_H
+#define __WINBOND_WB35REG_F_H
+
+#include "../wbhal_s.h"
+
 //====================================
 // Interface function declare
 //====================================
@@ -53,4 +58,4 @@ void Wb35Reg_phy_calibration(  phw_data_t pHwData );
 void Wb35Reg_Update(  phw_data_t pHwData,  u16 RegisterNo,  u32 RegisterValue );
 unsigned char adjust_TXVGA_for_iq_mag(  phw_data_t pHwData );
 
-
+#endif
index 2f665d1b1a4f7e83d51fb97ab98ce50f2ebce15a..32ef4b8a2d2a6759bdcb66b0aa0580cad8fdfd4c 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef __WINBOND_WB35REG_S_H
+#define __WINBOND_WB35REG_S_H
+
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <asm/atomic.h>
+
 //=======================================================================================
 /*
                                HAL setting function
@@ -162,4 +169,4 @@ struct wb35_reg {
 
 };
 
-
+#endif
index f690298dea292874a08ae046921d4999be93c424..15a065047361d115d773beab437874bfb0ba746d 100644 (file)
@@ -8,7 +8,10 @@
 //    Processing the Rx message from down layer
 //
 //============================================================================
+#include <linux/usb.h>
+
 #include "sysdef.h"
+#include "wb35rx_f.h"
 
 void Wb35Rx_start(phw_data_t pHwData)
 {
index 565280e890b727d82d1c0dd4cd009089d40c0506..752eec7f0670f0769f2f19f951a1dafdd17b798f 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_WB35RX_F_H
+#define __WINBOND_WB35RX_F_H
+
+#include "../wbhal_s.h"
+
 //====================================
 // Interface function declare
 //====================================
@@ -12,6 +17,4 @@ void          Wb35Rx_start(  phw_data_t pHwData );
 void           Wb35Rx(  phw_data_t pHwData );
 void           Wb35Rx_Complete(struct urb *urb);
 
-
-
-
+#endif
index a58a193ce2b1366d3b17e9a04c9f11314bfadd21..ec0e7b922da929021814efc4a8c9498a5ba1e9cf 100644 (file)
@@ -8,8 +8,11 @@
 //    Processing the Tx message and put into down layer
 //
 //============================================================================
-#include "sysdef.h"
+#include <linux/usb.h>
 
+#include "wb35tx_f.h"
+#include "../mds_f.h"
+#include "sysdef.h"
 
 unsigned char
 Wb35Tx_get_tx_buffer(phw_data_t pHwData, u8 **pBuffer)
index 1815c10b08135dcffb42f40d1637aac7c9136268..64b11a190af18db5ed4a479ca087095e50c8261d 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_WB35TX_F_H
+#define __WINBOND_WB35TX_F_H
+
+#include "../wbhal_f.h"
+
 //====================================
 // Interface function declare
 //====================================
@@ -17,4 +22,4 @@ void Wb35Tx_reset_descriptor(  phw_data_t pHwData );
 
 void Wb35Tx_CurrentTime(  phw_data_t pHwData,  u32 TimeCount );
 
-
+#endif
index 8cb449f7a3877e74c034c4a771456542e2ce9b95..b6ff6fdbc374651e40e4fe01787ac3bbc04eba57 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_WB35_TX_S_H
+#define __WINBOND_WB35_TX_S_H
+
+#include "../mds_s.h"
+
 //====================================
 // IS89C35 Tx related definition
 //====================================
@@ -41,7 +46,4 @@ typedef struct _WB35TX
 
 } WB35TX, *PWB35TX;
 
-
-
-
-
+#endif
index bd708a2d14848042ed31077c05d94eba22d75b57..861a0e4c70664a4980a5608a6b5e02c7fb6dba58 100644 (file)
@@ -3,8 +3,12 @@
  *
  * Distribute under GPLv2.
  */
-#include "sysdef.h"
 #include <net/mac80211.h>
+#include <linux/usb.h>
+
+#include "../mlmetxrx_f.h"
+#include "../wbhal_f.h"
+#include "../wblinux_f.h"
 
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
index 45e41b37194b44aaaf05a0c808f4de40ba79017c..1aa8ab10b62500b0a3c96af31e9bb961ab0ce3ef 100644 (file)
 //
 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
+#ifndef __WINBOND_WBUSB_S_H
+#define __WINBOND_WBUSB_S_H
+
+#include <linux/types.h>
+
 //---------------------------------------------------------------------------
 //  RW_CONTEXT --
 //
@@ -23,16 +28,13 @@ typedef struct _RW_CONTEXT
        void*                   pCallBackFunctionParameter;
 } RW_CONTEXT, *PRW_CONTEXT;
 
-
-
-
 #define DRIVER_AUTHOR "Original by: Jeff Lee<YY_Lee@issc.com.tw> Adapted to 2.6.x by Costantino Leandro (Rxart Desktop) <le_costantino@pixartargentina.com.ar>"
 #define DRIVER_DESC   "IS89C35 802.11bg WLAN USB Driver"
 
-
-
 typedef struct _WBUSB {
        u32     IsUsb20;
        struct usb_device *udev;
        u32     DetectCount;
 } WBUSB, *PWBUSB;
+
+#endif
index 087f48607178c7daefcced6830917088be387f22..a308ac276bac798aad64f1de63ab0c172552252e 100644 (file)
@@ -1,6 +1,12 @@
+#ifndef __WINBOND_LOCALPARA_H
+#define __WINBOND_LOCALPARA_H
+
 //=============================================================
 // LocalPara.h -
 //=============================================================
+
+#include "mac_structures.h"
+
 //Define the local ability
 
 #define LOCAL_DEFAULT_BEACON_PERIOD                    100             //ms
@@ -272,4 +278,4 @@ typedef struct LOCAL_PARA
 
 } WB_LOCALDESCRIPT, *PWB_LOCALDESCRIPT;
 
-
+#endif
index 031d2cb6cd638d9dafd7df98629ceb4b796c8eaf..0d1619601c0bea7d81c5dc0934221d4bfd13bd4b 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef _MAC_Structures_H_
 #define _MAC_Structures_H_
 
+#include <linux/skbuff.h>
 
 //=========================================================
 // Some miscellaneous definitions
 #define WLAN_MAX_PAIRWISE_CIPHER_SUITE_COUNT    ((u16) 6)
 #define WLAN_MAX_AUTH_KEY_MGT_SUITE_LIST_COUNT  ((u16) 2)
 
-#ifdef WB_LINUX
-#define UNALIGNED
-#endif
-
 //========================================================
 typedef enum enum_PowerManagementMode
 {
@@ -464,7 +461,7 @@ struct      RSN_Information_Element
 {
        u8                                      Element_ID;
        u8                                      Length;
-       UNALIGNED SUITE_SELECTOR        OuiWPAAdditional;//WPA version 2.0 additional field, and should be 00:50:F2:01
+       SUITE_SELECTOR  OuiWPAAdditional;//WPA version 2.0 additional field, and should be 00:50:F2:01
        u16                                     Version;
        SUITE_SELECTOR          GroupKeySuite;
        u16                                     PairwiseKeySuiteCount;
index 20008e35fe0b29636bdb641b4610195b77c74400..94f28ffff482a0997347f3df663902c82a9f0f86 100644 (file)
@@ -1,4 +1,11 @@
+#include "ds_tkip.h"
+#include "gl_80211.h"
+#include "mds_f.h"
+#include "mlmetxrx_f.h"
+#include "mto_f.h"
 #include "os_common.h"
+#include "wbhal_f.h"
+#include "wblinux_f.h"
 
 void
 Mds_reset_descriptor(struct wb35_adapter * adapter)
index 4258b3281d3bb4c4f7d23d5a082cb52703029545..f243d7455c81304e8db92f0d3ffcfe99edf5e707 100644 (file)
@@ -1,3 +1,9 @@
+#ifndef __WINBOND_MDS_F_H
+#define __WINBOND_MDS_F_H
+
+#include "wbhal_s.h"
+#include "adapter.h"
+
 unsigned char Mds_initial(  struct wb35_adapter *adapter );
 void Mds_Destroy(  struct wb35_adapter *adapter );
 void Mds_Tx(  struct wb35_adapter *adapter );
@@ -24,4 +30,4 @@ void MDS_GetNextPacketComplete(  struct wb35_adapter *adapter,  PDESCRIPTOR pDes
 void MDS_SendResult(  struct wb35_adapter *adapter,  u8 PacketId,  unsigned char SendOK );
 void MDS_EthernetPacketReceive(  struct wb35_adapter *adapter,  PRXLAYER1 pRxLayer1 );
 
-
+#endif
index 04030b97d95eae24f773405bb4592598d43bed89..02b11822b2cf39c887af73667b3005b947feb832 100644 (file)
@@ -1,3 +1,14 @@
+#ifndef __WINBOND_MDS_H
+#define __WINBOND_MDS_H
+
+#include <linux/timer.h>
+#include <linux/types.h>
+#include <asm/atomic.h>
+
+#include "localpara.h"
+#include "mac_structures.h"
+#include "scan_s.h"
+
 ////////////////////////////////////////////////////////////////////////////////////////////////////////
 #define MAX_USB_TX_DESCRIPTOR          15              // IS89C35 ability
 #define MAX_USB_TX_BUFFER_NUMBER       4               // Virtual pre-buffer number of MAX_USB_TX_BUFFER
@@ -178,4 +189,4 @@ typedef struct _RXLAYER1
 
 }RXLAYER1, * PRXLAYER1;
 
-
+#endif
index 039fd408ba62c7ae6680412910d04f5b72aba1d6..ea12684a2b1daf7ead126e15aa732e3d380652fa 100644 (file)
@@ -1,3 +1,12 @@
+#ifndef __WINBOND_MLME_H
+#define __WINBOND_MLME_H
+
+#include <linux/types.h>
+#include <linux/spinlock.h>
+
+#include "mac_structures.h"
+#include "mds_s.h"
+
 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 //     Mlme.h
 //             Define the related definitions of MLME module
@@ -192,4 +201,4 @@ typedef struct _RXDATA
 
 }__attribute__ ((packed)) RXDATA, *psRXDATA;
 
-
+#endif
index a071855d7449a4e56779cadaccca174d96430844..ee80aed7f0b8f3dea5740f969a551c63cb06dba8 100644 (file)
@@ -17,6 +17,8 @@
 //============================================================================
 #include "os_common.h"
 
+#include "mds_f.h"
+
 void MLMEResetTxRx(struct wb35_adapter * adapter)
 {
        s32     i;
index 5f108d87f6e22e7744007d3de80403a0024d6854..0f264ed64ea42de8c3cbd858600c2a46a1fd54c3 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _MLMETXRX_H
 #define _MLMETXRX_H
 
+#include "adapter.h"
+
 void
 MLMEProcThread(
      struct wb35_adapter *    adapter
index f53db93749623e4a3e960d5ff8f045e9687d7212..c68c7f685973da42576e1191f05b2e2b1efab66a 100644 (file)
@@ -23,6 +23,9 @@
 
 // LA20040210_DTO kevin
 #include "os_common.h"
+#include "sme_api.h"
+#include "gl_80211.h"
+#include "wbhal_f.h"
 
 // Declare SQ3 to rate and fragmentation threshold table
 // Declare fragmentation thresholds table
index 4ed15b09e475d87dcf51a55c4b96fee1daba58b0..9a175449ce50659971f2f7d7cb7d44cecc540d31 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __MTO_H__
 #define __MTO_H__
 
+#include <linux/types.h>
+
 #define MTO_DEFAULT_TH_CNT              5
 #define MTO_DEFAULT_TH_SQ3              112  //OLD IS 13 reference JohnXu
 #define MTO_DEFAULT_TH_IDLE_SLOT        15
index de3d8d491ee2db447fdad80ff9f59e336c53f776..ce4319da1f3ad58783440fdb8f559c4c87ff2f5d 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_MTO_F_H
+#define __WINBOND_MTO_F_H
+
+#include "adapter.h"
+
 extern void MTO_Init(struct wb35_adapter *);
 extern void MTO_PeriodicTimerExpired(struct wb35_adapter *);
 extern void MTO_SetDTORateRange(struct wb35_adapter *, u8 *, u8);
@@ -5,3 +10,4 @@ extern u8 MTO_GetTxRate(MTO_FUNC_INPUT, u32 fpdu_len);
 extern u8 MTO_GetTxFallbackRate(MTO_FUNC_INPUT);
 extern void MTO_SetTxCount(MTO_FUNC_INPUT, u8 t0, u8 index);
 
+#endif
index b77c84318e513e343e32268d7379b471d05480a3..6782552d366c14b2e420f91e34027a46a9417e6d 100644 (file)
@@ -12,6 +12,7 @@
 /****************** INCLUDE FILES SECTION ***********************************/
 #include "os_common.h"
 #include "phy_calibration.h"
+#include "wbhal_f.h"
 
 
 /****************** DEBUG CONSTANT AND MACRO SECTION ************************/
index b6a65d3130194f6e4c42cc6d3c7b58843ad39c81..03b820c6181b7bb9e135a717ad7109dc65eb2ec1 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __WINBOND_PHY_CALIBRATION_H
+#define __WINBOND_PHY_CALIBRATION_H
+
+#include "wbhal_f.h"
+
 // 20031229 Turbo add
 #define REG_AGC_CTRL1               0x1000
 #define REG_AGC_CTRL2               0x1004
 void phy_set_rf_data(  phw_data_t pHwData,  u32 index,  u32 value );
 #define phy_init_rf( _A )      //RFSynthesizer_initial( _A )
 
+#endif
index 9e1c1ef27954bf75a65038a4c7ab9d374d5993b9..cd21272d7a9f5a7bed46d3029d3f30ce4b6d5456 100644 (file)
@@ -1,4 +1,5 @@
 #include "os_common.h"
+#include "wbhal_f.h"
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // Original Phy.h
index de49a4935122566d609e6b3bb2b4a8cc9683899e..f5c98d915c7b61fa1492a35fd3574182fb566171 100644 (file)
@@ -1,4 +1,5 @@
 #include "os_common.h"
+#include "adapter.h"
 
 static void RxTimerHandler(unsigned long data)
 {
index a95239665e30dab2561e15add00478cf33723463..726954684ce5f92cf1214dfd54a0e8d8286a1a7d 100644 (file)
@@ -1,3 +1,9 @@
+#ifndef __WINBOND_SCAN_S_H
+#define __WINBOND_SCAN_S_H
+
+#include <linux/types.h>
+#include "localpara.h"
+
 //
 // SCAN task global CONSTANTS, STRUCTURES, variables
 //
@@ -112,3 +118,4 @@ typedef struct _SCAN_PARAMETERS
 //static void vScanTimerStart(struct wb35_adapter *    adapter, int timeout_value);
 //static void vScanTimerStop(struct wb35_adapter * adapter);
 
+#endif
index 31c9673ea86534da5df804519c35be88d957e85c..6452d156431b3ad4d3d0dea352e430488d15f9a8 100644 (file)
@@ -6,6 +6,7 @@
 //
 //------------------------------------------------------------------------------------
 #include "os_common.h"
+#include <linux/kernel.h>
 
 s8 sme_get_rssi(void *pcore_data, s32 *prssi)
 {
index 745eb376bc70dfc31d7a067999901a437d00b543..33183dae59fa9e2d33ed3602098ee68ed8e05aee 100644 (file)
 #ifndef __SME_API_H__
 #define __SME_API_H__
 
+#include <linux/types.h>
+
+#include "localpara.h"
+
 /****************** INCLUDE FILES SECTION ***********************************/
 //#include "GL\gl_core.h"
 
index 33f5d2aa96f47b05eee78371737a6a7453154c53..1bd118f83d2054904fc685bb9c6c848120e21cc6 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef __WINBOND_SME_S_H
+#define __WINBOND_SME_S_H
+
+#include <linux/types.h>
+
+#include "mac_structures.h"
+#include "localpara.h"
+
 //
 // SME_S.H -
 // SME task global CONSTANTS, STRUCTURES, variables
@@ -225,3 +233,4 @@ typedef struct _SME_PARAMETERS
 
 // Static function
 
+#endif
index 100a407f49cf37f55395b3be44529ca7ad1141ca..1ee706a70a6d0cd02d0359fdab9a64bab24da55d 100644 (file)
@@ -1,4 +1,6 @@
 #include "os_common.h"
+#include "wbhal_f.h"
+#include "wblinux_f.h"
 
 void hal_get_ethernet_address( phw_data_t pHwData, u8 *current_address )
 {
index 7e6ebf2717beef6341847d7ada7a090b7119e25b..ec66a9987523ad92128c3c6f08c5b659c4b58902 100644 (file)
@@ -1,15 +1,11 @@
 //=====================================================================
 // Device related include
 //=====================================================================
-#ifdef WB_LINUX
-       #include "linux/wb35reg_f.h"
-       #include "linux/wb35tx_f.h"
-       #include "linux/wb35rx_f.h"
-#else
-       #include "wb35reg_f.h"
-       #include "wb35tx_f.h"
-       #include "wb35rx_f.h"
-#endif
+#include "linux/wb35reg_f.h"
+#include "linux/wb35tx_f.h"
+#include "linux/wb35rx_f.h"
+
+#include "adapter.h"
 
 //====================================================================================
 // Function declaration
index 4eeb08926e2ee52473beb6bc30203054a811eb23..af99713b3145307823fb205ee8a196d1fa7850c3 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef __WINBOND_WBHAL_S_H
+#define __WINBOND_WBHAL_S_H
+
+#include <linux/types.h>
+
+#include "linux/common.h"
+
 //[20040722 WK]
 #define HAL_LED_SET_MASK               0x001c  //20060901 Extend
 #define HAL_LED_SET_SHIFT              2
@@ -612,4 +619,4 @@ typedef struct _HAL_RATE
        u32   NumRate54M;
 } HAL_RATE, *PHAL_RATE;
 
-
+#endif
index bba222a68e35cbac21f802bed9a2c39955d227ee..1054098a641b5ce361a4a371368050c5746c9a0a 100644 (file)
@@ -8,7 +8,13 @@
 //    Linux releated routines
 //
 //============================================================================
+#include <linux/netdevice.h>
+
+#include "mds_f.h"
+#include "mto_f.h"
 #include "os_common.h"
+#include "wbhal_f.h"
+#include "wblinux_f.h"
 
 unsigned char
 WBLINUX_Initial(struct wb35_adapter * adapter)
index bfa69d738321ef880e85c77269c80ecf0151dd2c..a2b7e4cd09a319d076a796f5222413c3e992c087 100644 (file)
@@ -1,3 +1,9 @@
+#ifndef __WBLINUX_F_H
+#define __WBLINUX_F_H
+
+#include "adapter.h"
+#include "mds_s.h"
+
 //=========================================================================
 // Copyright (c) 1996-2004 Winbond Electronic Corporation
 //
@@ -16,3 +22,4 @@ void WBLINUX_stop(  struct wb35_adapter *adapter );
 void WbWlanHalt(  struct wb35_adapter *adapter );
 unsigned char WbWLanInitialize(struct wb35_adapter *adapter);
 
+#endif