]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: brcm80211: Move #includes out of header
authorBrett Rudley <brudley@broadcom.com>
Sat, 2 Oct 2010 01:03:27 +0000 (18:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 16:26:36 +0000 (09:26 -0700)
Start the process of moving #includes out of headers and into individual C files.
For now, this patch addresses the softmac side of the driver, fullmac still to
be done.

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
24 files changed:
drivers/staging/brcm80211/include/linux_osl.h
drivers/staging/brcm80211/phy/wlc_phy_cmn.c
drivers/staging/brcm80211/phy/wlc_phy_lcn.c
drivers/staging/brcm80211/phy/wlc_phy_n.c
drivers/staging/brcm80211/sys/wlc_alloc.c
drivers/staging/brcm80211/sys/wlc_ampdu.c
drivers/staging/brcm80211/sys/wlc_antsel.c
drivers/staging/brcm80211/sys/wlc_bmac.c
drivers/staging/brcm80211/sys/wlc_channel.c
drivers/staging/brcm80211/sys/wlc_event.c
drivers/staging/brcm80211/sys/wlc_mac80211.c
drivers/staging/brcm80211/sys/wlc_phy_shim.c
drivers/staging/brcm80211/sys/wlc_rate.c
drivers/staging/brcm80211/sys/wlc_stf.c
drivers/staging/brcm80211/util/aiutils.c
drivers/staging/brcm80211/util/bcmotp.c
drivers/staging/brcm80211/util/bcmsrom.c
drivers/staging/brcm80211/util/bcmutils.c
drivers/staging/brcm80211/util/bcmwpa.c
drivers/staging/brcm80211/util/hnddma.c
drivers/staging/brcm80211/util/hndpmu.c
drivers/staging/brcm80211/util/nicpci.c
drivers/staging/brcm80211/util/nvram/nvram_ro.c
drivers/staging/brcm80211/util/siutils.c

index 1e555531167c499ff14bda987778505af5c0d6c2..7486ded6d42d14a9de496d44369058321238300a 100644 (file)
@@ -17,7 +17,9 @@
 #ifndef _linux_osl_h_
 #define _linux_osl_h_
 
+#ifdef BRCM_FULLMAC
 #include <typedefs.h>
+#endif
 
 /* Linux Kernel: File Operations: start */
 extern void *osl_os_open_image(char *filename);
@@ -150,7 +152,9 @@ extern void osl_dma_unmap(osl_t *osh, uint pa, uint size, int direction);
 
 /* register access macros */
 #if defined(BCMSDIO)
+#ifdef BRCM_FULLMAC
 #include <bcmsdh.h>
+#endif
 #define OSL_WRITE_REG(osh, r, v) (bcmsdh_reg_write(NULL, (uintptr)(r), sizeof(*(r)), (v)))
 #define OSL_READ_REG(osh, r) (bcmsdh_reg_read(NULL, (uintptr)(r), sizeof(*(r))))
 #endif
@@ -173,8 +177,10 @@ extern int osl_error(int bcmerror);
 
 #define OSL_SYSUPTIME()                ((uint32)jiffies * (1000 / HZ))
 #define        printf(fmt, args...)    printk(fmt , ## args)
+#ifdef BRCM_FULLMAC
 #include <linux/kernel.h>      /* for vsn/printf's */
 #include <linux/string.h>      /* for mem*, str* */
+#endif
 /* bcopy's: Linux kernel doesn't provide these (anymore) */
 #define        bcopy(src, dst, len)    memcpy((dst), (src), (len))
 #define        bcmp(b1, b2, len)       memcmp((b1), (b2), (len))
@@ -320,7 +326,9 @@ extern int osl_error(int bcmerror);
 #define        W_SM(r, v)              (*(r) = (v))
 #define        BZERO_SM(r, len)        memset((r), '\0', (len))
 
+#ifdef BRCM_FULLMAC
 #include <linuxver.h>          /* use current 2.4.x calling conventions */
+#endif
 
 /* packet primitives */
 #define        PKTGET(osh, len, send)          osl_pktget((osh), (len))
index 18b984956993edec276a60e9fd3718f7e2ceb355..cafd76df64ce6dff44c0a273ad2e983bbabc0344 100644 (file)
 
 #include <wlc_cfg.h>
 
+#include <typedefs.h>
 #include <osl.h>
 #include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmendian.h>
 #include <bcmnvram.h>
 #include <sbchipc.h>
index c34d06bf69e38c827253c1a2e060d61baca4fe36..a82e58d36a217b9b678f030dc11d175af7ddcdcb 100644 (file)
@@ -17,6 +17,9 @@
 #include <wlc_cfg.h>
 #include <qmath.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <siutils.h>
 #include <bitfuncs.h>
 #include <hndpmu.h>
index 6a0c1cdcc371403eb25ef426d722c063fc9171d7..5094e8f151aa6d04249ca3fff04f347093919e61 100644 (file)
  */
 
 #include <wlc_cfg.h>
+#include <typedefs.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <osl.h>
 #include <siutils.h>
 #include <sbchipc.h>
index 6f58c4d3681044e3be4f7e98c9ce8b22866991a5..8aab6e369f53b5276df5832724bf1b273ec1e3e0 100644 (file)
@@ -17,6 +17,9 @@
 #include <wlc_cfg.h>
 #include <typedefs.h>
 #include <bcmdefs.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <osl.h>
 #include <bcmutils.h>
 #include <siutils.h>
index aa56d997e888d66aee915c5630e3b10ce3c1500c..03612cd2e17d41e94a6533cf54a7cc0f2bf5ffa6 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <wlc_cfg.h>
 #include <typedefs.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <bcmutils.h>
index a34ea66f94548b227760d17b31de5a110a671fd9..9811dc41945a899e648eb5f2a7b1338ebf41f26b 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <typedefs.h>
 #include <qmath.h>
+#include <linux/kernel.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <bcmutils.h>
index eea1ffbb2079a5beab7692854f8dd524c321487d..e17d01bb921e9c0a1175df6dd7154bf4d258ca03 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <wlc_cfg.h>
 #include <typedefs.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <linux/kernel.h>
index 554a0cb84ad5291cc6d08eb348db2d0c104ab4d9..a7ad94d534cc7facea026fbb3da38b96b9db3d89 100644 (file)
@@ -18,6 +18,9 @@
 #include <typedefs.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <wlioctl.h>
index 9052d690ccfe483309248e22fa4c1f05c21d345d..ec3b80913b8771123d86b660b3c8c37e73d27864 100644 (file)
@@ -15,6 +15,8 @@
  */
 
 #include <typedefs.h>
+#include <linux/kernel.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <bcmendian.h>
index fed751b3d79c442416d061b7545267b912fe3916..a8b251cc442371659749e3ca1c25b1b5b35b6553 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <wlc_cfg.h>
 #include <typedefs.h>
+#include <linux/kernel.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <linux/ctype.h>
index 5a41da14d44b91cc37625910bcd6a95151258924..9a81ed271c97fae888b9018f07ac8b09bdc7380c 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <wlc_cfg.h>
 #include <typedefs.h>
+#include <linuxver.h>
+#include <linux/kernel.h>
 #include <bcmutils.h>
 #include <bcmdefs.h>
 #include <osl.h>
index 9e9e4688e2ed21d313956feebcde5b123fa37a3c..ff67c35ca388015d0aecef21e5c83d01ac731226 100644 (file)
@@ -17,6 +17,8 @@
 #include <wlc_cfg.h>
 #include <typedefs.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <bcmendian.h>
index 5b3a8848c83fefe7b0e97bb2004e520e9c2fc5cf..69cb364dc06a1134579ce2c9c92654dafea82dbb 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <wlc_cfg.h>
 #include <typedefs.h>
+#include <linux/kernel.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <bcmutils.h>
index 6ac49eccf0bf9797acacad30c962d2cbc6810c56..b91f6e4d641bcb951c39ec04cba2d22bae3e863d 100644 (file)
@@ -17,6 +17,9 @@
 #include <typedefs.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <hndsoc.h>
index a63214fb7954c3ce7a681df11efc1061735362c1..8449ea7accd168f5a5736cc30498327939749ce4 100644 (file)
@@ -17,6 +17,9 @@
 #include <typedefs.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmdevs.h>
 #include <bcmutils.h>
 #include <siutils.h>
index 2637a531b192eaec5817101d5c8ff55945ccda58..0cdf645669c52a59000598874ee41eabf2062b2e 100644 (file)
@@ -18,6 +18,8 @@
 #include <bcmdefs.h>
 #include <osl.h>
 #include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <stdarg.h>
 #include <bcmutils.h>
 #include <hndsoc.h>
index cc548e030179d8a961f23e0cacd8d28bb967017f..b10c837e2764177c71c39e7d072f8aa78e64d8b6 100644 (file)
@@ -20,6 +20,8 @@
 #include <osl.h>
 #include <linux/ctype.h>
 #include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <bcmnvram.h>
index a78be437d0024079afdd23f86141bad57c8d83ad..71e25527aea5a737092095bc932c81f83b97c01b 100644 (file)
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <typedefs.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <bcmwpa.h>
 
index b78cca169dce5b85ded6c2372bc69239c3188044..b35dcf03aed4dc15031a3d788f21058ae39f63f9 100644 (file)
@@ -15,6 +15,9 @@
  */
 
 #include <typedefs.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <bcmdevs.h>
 #include <osl.h>
index e33cf5dde0e335022435ac19b9926ac4bec79dc8..728faa1d1e20d48df69b55d7c610b191c2b31208 100644 (file)
@@ -17,6 +17,8 @@
 #include <typedefs.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <linux/kernel.h>
 #include <bcmutils.h>
 #include <siutils.h>
index 0b4f562427e2fb692657eb785d940eae13dfc943..75bea1805db00d40701252c15c93e9b151cc5214 100644 (file)
@@ -15,6 +15,8 @@
  */
 
 #include <typedefs.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmdefs.h>
 #include <osl.h>
 #include <bcmutils.h>
index f6640ef8fb97c92bb61d4b0cee02345590e8ca6f..04f0c7eb57a46b0518e64646a43fa46b379a2f3d 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <typedefs.h>
 #include <bcmdefs.h>
+#include <linux/string.h>
 #include <osl.h>
 #include <bcmutils.h>
 #include <siutils.h>
index 2cfc88f36f5336a257916f9b7fb01c3d2c3af26d..ce19ed1510cc92f69973c752c2898670d2bef5a8 100644 (file)
@@ -17,6 +17,9 @@
 #include <typedefs.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linuxver.h>
 #include <bcmutils.h>
 #include <siutils.h>
 #include <bcmdevs.h>