Commit 3327989a authored by Brett Rudley's avatar Brett Rudley Committed by Greg Kroah-Hartman

staging: brcm80211: Move #includes out of header

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: default avatarBrett Rudley <brudley@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 34a5fa94
......@@ -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))
......
......@@ -16,8 +16,11 @@
#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>
......
......@@ -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>
......
......@@ -15,6 +15,10 @@
*/
#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>
......
......@@ -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>
......
......@@ -16,6 +16,7 @@
#include <wlc_cfg.h>
#include <typedefs.h>
#include <linuxver.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>
......
......@@ -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>
......
......@@ -20,6 +20,7 @@
#include <wlc_cfg.h>
#include <typedefs.h>
#include <linuxver.h>
#include <bcmdefs.h>
#include <osl.h>
#include <linux/kernel.h>
......
......@@ -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>
......
......@@ -15,6 +15,8 @@
*/
#include <typedefs.h>
#include <linux/kernel.h>
#include <linuxver.h>
#include <bcmutils.h>
#include <siutils.h>
#include <bcmendian.h>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -14,6 +14,10 @@
* 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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -15,6 +15,8 @@
*/
#include <typedefs.h>
#include <linux/string.h>
#include <linuxver.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>
......
......@@ -16,6 +16,7 @@
#include <typedefs.h>
#include <bcmdefs.h>
#include <linux/string.h>
#include <osl.h>
#include <bcmutils.h>
#include <siutils.h>
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment