staging: brcm80211: remove osl source files from driver
The whole need for the OSL concept has been removed from the driver. This is the final commit removing the source file and include file from the driver repository. All include statements of osl.h have been removed from the other source files. Reviewed-by: Brett Rudley <brudley@broadcom.com> Reviewed-by: Henry Ptasinski <henryp@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3c9d4c3749
commit
9cceab99d7
|
@ -52,7 +52,6 @@ DHDOFILES = \
|
|||
bcmsdh_linux.o \
|
||||
bcmsdh_sdmmc.o \
|
||||
bcmsdh_sdmmc_linux.o \
|
||||
linux_osl.o \
|
||||
aiutils.o \
|
||||
siutils.o \
|
||||
sbutils.o \
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <linux/netdevice.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <hndsoc.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/completion.h>
|
||||
|
||||
#include <osl.h>
|
||||
#include <pcicfg.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/netdevice.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <sdio.h> /* SDIO Device and Protocol Specs */
|
||||
#include <sdioh.h> /* SDIO Host Controller Specification */
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/sched.h> /* request_irq() */
|
||||
#include <linux/netdevice.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <sdio.h> /* SDIO Specs */
|
||||
#include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
|
||||
#include <bcmutils.h>
|
||||
#include <bcmcdc.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <dngl_stats.h>
|
||||
#include <dhd.h>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
|
||||
#include <dngl_stats.h>
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include <linux/fs.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
|
||||
#include <dngl_stats.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/types.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <osl.h>
|
||||
#include <bcmsdh.h>
|
||||
|
||||
#ifdef BCMEMBEDIMAGE
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "../util/linux_osl.c"
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <osl.h>
|
||||
|
||||
#include <bcmutils.h>
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <linux/semaphore.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <osl.h>
|
||||
#include <wlioctl.h>
|
||||
|
||||
#include <bcmutils.h>
|
||||
|
|
|
@ -45,7 +45,6 @@ BRCMSMAC_OFILES := \
|
|||
phy/wlc_phy_n.o \
|
||||
phy/wlc_phytbl_lcn.o \
|
||||
phy/wlc_phytbl_n.o \
|
||||
../util/linux_osl.o \
|
||||
../util/aiutils.o \
|
||||
../util/siutils.o \
|
||||
../util/bcmutils.o \
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <linux/delay.h>
|
||||
#include <wlc_cfg.h>
|
||||
#include <qmath.h>
|
||||
#include <osl.h>
|
||||
#include <linux/pci.h>
|
||||
#include <siutils.h>
|
||||
#include <hndpmu.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <wlc_cfg.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/pci.h>
|
||||
#include <osl.h>
|
||||
#include <siutils.h>
|
||||
#include <sbchipc.h>
|
||||
#include <hndpmu.h>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
#include <sbhnddma.h>
|
||||
#include <osl.h>
|
||||
#include <wlc_phy_int.h>
|
||||
#include <wlc_phytbl_lcn.h>
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/kernel.h>
|
||||
|
||||
#include <sbhnddma.h>
|
||||
#include <osl.h>
|
||||
#include <wlc_phy_int.h>
|
||||
#include <wlc_phytbl_n.h>
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <net/mac80211.h>
|
||||
|
||||
#include <proto/802.11.h>
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmwifi.h>
|
||||
#include <bcmutils.h>
|
||||
|
@ -729,7 +728,6 @@ static struct wl_info *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
|||
uint bustype, void *btparam, uint irq)
|
||||
{
|
||||
struct wl_info *wl;
|
||||
struct osl_info *osh;
|
||||
int unit, err;
|
||||
|
||||
unsigned long base_addr;
|
||||
|
@ -744,15 +742,11 @@ static struct wl_info *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
osh = osl_attach(btparam, bustype);
|
||||
ASSERT(osh);
|
||||
|
||||
/* allocate private info */
|
||||
hw = pci_get_drvdata(btparam); /* btparam == pdev */
|
||||
wl = hw->priv;
|
||||
ASSERT(wl);
|
||||
|
||||
wl->osh = osh;
|
||||
atomic_set(&wl->callbacks, 0);
|
||||
|
||||
/* setup the bottom half handler */
|
||||
|
@ -1397,9 +1391,6 @@ static void wl_free(struct wl_info *wl)
|
|||
iounmap((void *)wl->regsva);
|
||||
}
|
||||
wl->regsva = NULL;
|
||||
|
||||
|
||||
osl_detach(wl->osh);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -51,7 +51,6 @@ struct wl_firmware {
|
|||
struct wl_info {
|
||||
struct wlc_pub *pub; /* pointer to public wlc state */
|
||||
void *wlc; /* pointer to private common os-independent data */
|
||||
struct osl_info *osh; /* pointer to os handler */
|
||||
u32 magic;
|
||||
|
||||
int irq;
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <linux/etherdevice.h>
|
||||
|
||||
#include <proto/802.11.h>
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
#include <bcmwifi.h>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <bcmwifi.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <linux/pci.h>
|
||||
|
||||
#include <proto/802.11.h>
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <bcmwifi.h>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include <proto/802.11.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <wlioctl.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <proto/802.11.h>
|
||||
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <wlioctl.h>
|
||||
|
|
|
@ -1,29 +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 _osl_h_
|
||||
#define _osl_h_
|
||||
|
||||
/* osl handle type forward declaration */
|
||||
struct osl_info {
|
||||
uint pktalloced; /* Number of allocated packet buffers */
|
||||
uint magic;
|
||||
};
|
||||
|
||||
extern struct osl_info *osl_attach(void *pdev, uint bustype);
|
||||
extern void osl_detach(struct osl_info *osh);
|
||||
|
||||
#endif /* _osl_h_ */
|
|
@ -18,7 +18,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <bcmutils.h>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <bcmdevs.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/string.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <linux/sched.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <stdarg.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <bcmnvram.h>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <osl.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmutils.h>
|
||||
#include <bcmwifi.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <linux/pci.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <bcmdevs.h>
|
||||
#include <osl.h>
|
||||
#include <hndsoc.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <bcmdevs.h>
|
||||
|
|
|
@ -1,54 +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.
|
||||
*/
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/fs.h>
|
||||
#ifdef mips
|
||||
#include <asm/paccess.h>
|
||||
#endif /* mips */
|
||||
#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>
|
||||
#include <pcicfg.h>
|
||||
|
||||
|
||||
#define OS_HANDLE_MAGIC 0x1234abcd /* Magic # to recognise osh */
|
||||
#define BCM_MEM_FILENAME_LEN 24 /* Mem. filename length */
|
||||
|
||||
struct osl_info *osl_attach(void *pdev, uint bustype)
|
||||
{
|
||||
struct osl_info *osh;
|
||||
|
||||
osh = kmalloc(sizeof(struct osl_info), GFP_ATOMIC);
|
||||
ASSERT(osh);
|
||||
|
||||
memset(osh, 0, sizeof(struct osl_info));
|
||||
osh->magic = OS_HANDLE_MAGIC;
|
||||
return osh;
|
||||
}
|
||||
|
||||
void osl_detach(struct osl_info *osh)
|
||||
{
|
||||
if (osh == NULL)
|
||||
return;
|
||||
|
||||
ASSERT(osh->magic == OS_HANDLE_MAGIC);
|
||||
kfree(osh);
|
||||
}
|
|
@ -18,7 +18,6 @@
|
|||
#include <linux/string.h>
|
||||
#include <linux/pci.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <hndsoc.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <bcmnvram.h>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#ifdef BRCM_FULLMAC
|
||||
#include <linux/netdevice.h>
|
||||
#endif
|
||||
#include <osl.h>
|
||||
#include <bcmutils.h>
|
||||
#include <siutils.h>
|
||||
#include <bcmdevs.h>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <bcmdefs.h>
|
||||
#include <osl.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <bcmutils.h>
|
||||
|
|
Loading…
Reference in New Issue