staging: brcm80211: Purge linuxver.h and redistribute #includes as required

Linuxver.h only included other .h files. Delete it and move #includes to .c's as needed.

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Brett Rudley 2010-10-26 11:55:23 -07:00 committed by Greg Kroah-Hartman
parent a52ba66cf2
commit c6ac24e90a
39 changed files with 66 additions and 74 deletions

View File

@ -16,6 +16,7 @@
/* ****************** BCMSDH Interface Functions *************************** */
#include <linux/types.h>
#include <linux/netdevice.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <bcmendian.h>

View File

@ -20,8 +20,7 @@
#define __UNDEF_NO_VERSION__
#include <linuxver.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/completion.h>

View File

@ -14,6 +14,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <linux/types.h>
#include <linux/netdevice.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <bcmendian.h>

View File

@ -15,6 +15,7 @@
*/
#include <linux/types.h>
#include <linux/sched.h> /* request_irq() */
#include <linux/netdevice.h>
#include <bcmdefs.h>
#include <bcmutils.h>
#include <sdio.h> /* SDIO Specs */

View File

@ -15,6 +15,7 @@
*/
#include <linux/types.h>
#include <linux/netdevice.h>
#include <bcmdefs.h>
#include <osl.h>

View File

@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <bcmdefs.h>
#include <linux/netdevice.h>
#include <osl.h>
#include <bcmutils.h>
#include <bcmendian.h>

View File

@ -14,7 +14,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <linuxver.h>
#include <linux/netdevice.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -32,7 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <osl.h>
#include <bcmutils.h>
#include <bcmendian.h>

View File

@ -16,7 +16,6 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linuxver.h>
int setScheduler(struct task_struct *p, int policy, struct sched_param *param)
{

View File

@ -16,6 +16,7 @@
#include <linux/types.h>
#include <bcmdefs.h>
#include <linux/netdevice.h>
#include <osl.h>
#include <bcmsdh.h>

View File

@ -16,7 +16,6 @@
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linuxver.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -16,7 +16,7 @@
#include <linux/kthread.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <linux/netdevice.h>
#include <osl.h>
#include <wlioctl.h>

View File

@ -299,10 +299,6 @@ 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))
#define PKTFREE(osh, skb, send) osl_pktfree((osh), (skb), (send))

View File

@ -1,38 +0,0 @@
/*
* Copyright (c) 2010 Broadcom Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _linuxver_h_
#define _linuxver_h_
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/ieee80211.h>
#include <linux/time.h>
#include <linux/wait.h>
#undef IP_TOS
#include <asm/io.h>
#endif /* _linuxver_h_ */

View File

@ -20,7 +20,8 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmendian.h>
#include <bcmnvram.h>
#include <sbchipc.h>

View File

@ -20,7 +20,7 @@
#include <wlc_cfg.h>
#include <qmath.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/pci.h>
#include <siutils.h>
#include <hndpmu.h>

View File

@ -18,7 +18,7 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <linux/pci.h>
#include <osl.h>
#include <siutils.h>
#include <sbchipc.h>

View File

@ -21,7 +21,9 @@
#include <linux/string.h>
#include <linux/pci_ids.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <osl.h>
#define WLC_MAXBSSCFG 1 /* single BSS configs */

View File

@ -17,7 +17,8 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <osl.h>
#include <bcmutils.h>
#include <siutils.h>

View File

@ -16,8 +16,6 @@
#include <linux/kernel.h>
#include <wlc_cfg.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>
#include <siutils.h>

View File

@ -19,7 +19,8 @@
#ifdef WLANTSEL
#include <linux/kernel.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -20,7 +20,9 @@
#include <linux/kernel.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <bcmdefs.h>
#include <osl.h>
#include <proto/802.11.h>

View File

@ -19,7 +19,8 @@
#include <bcmdefs.h>
#include <wlc_cfg.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmutils.h>
#include <siutils.h>
#include <sbhndpio.h>

View File

@ -16,7 +16,8 @@
#include <linux/kernel.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmutils.h>
#include <siutils.h>
#include <sbhndpio.h>

View File

@ -18,7 +18,6 @@
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <osl.h>
#include <bcmutils.h>
#include <bcmwifi.h>

View File

@ -24,7 +24,8 @@
#include <linux/kernel.h>
#include <bcmdefs.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmutils.h>
#include <osl.h>

View File

@ -17,7 +17,7 @@
#include <bcmdefs.h>
#include <wlc_cfg.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <bcmutils.h>
#include <siutils.h>
#include <bcmendian.h>

View File

@ -15,8 +15,8 @@
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <wlc_cfg.h>
#include <linuxver.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -17,8 +17,12 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <bcmdefs.h>
#ifdef BRCM_FULLMAC
#include <linux/netdevice.h>
#endif
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmutils.h>
#include <siutils.h>
#include <hndsoc.h>

View File

@ -18,7 +18,8 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmdevs.h>
#include <bcmutils.h>
#include <siutils.h>

View File

@ -17,7 +17,8 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <stdarg.h>
#include <bcmutils.h>
#include <hndsoc.h>

View File

@ -19,8 +19,10 @@
#include <linux/string.h>
#include <bcmdefs.h>
#include <stdarg.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <osl.h>
#include <linuxver.h>
#include <bcmutils.h>
#include <siutils.h>
#include <bcmnvram.h>
@ -30,7 +32,6 @@
#include <proto/802.1d.h>
#include <proto/802.11.h>
/* copy a buffer into a pkt buffer chain */
uint pktfrombuf(osl_t *osh, void *p, uint offset, int len, unsigned char *buf)
{

View File

@ -15,6 +15,9 @@
*/
#include <linux/ctype.h>
#include <linux/kernel.h>
#ifdef BRCM_FULLMAC
#include <linux/netdevice.h>
#endif
#include <bcmdefs.h>
#include <bcmutils.h>
#include <bcmwifi.h>

View File

@ -16,7 +16,8 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <linuxver.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <osl.h>

View File

@ -15,7 +15,11 @@
*/
#include <linux/kernel.h>
#include <linux/string.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#ifdef BRCM_FULLMAC
#include <linux/netdevice.h>
#endif
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -20,7 +20,10 @@
#include <asm/paccess.h>
#endif /* mips */
#include <bcmendian.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/sched.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -15,7 +15,7 @@
*/
#include <linux/string.h>
#include <linuxver.h>
#include <linux/pci.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>

View File

@ -16,6 +16,9 @@
#include <linux/types.h>
#include <bcmdefs.h>
#ifdef BRCM_FULLMAC
#include <linux/netdevice.h>
#endif
#include <osl.h>
#include <bcmutils.h>
#include <siutils.h>

View File

@ -17,8 +17,12 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <bcmdefs.h>
#ifdef BRCM_FULLMAC
#include <linux/netdevice.h>
#endif
#include <osl.h>
#include <linuxver.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <bcmutils.h>
#include <siutils.h>
#include <bcmdevs.h>