]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: brcm80211: moved code around for cleanup
authorArend van Spriel <arend@broadcom.com>
Fri, 21 Jan 2011 09:54:48 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 19:58:06 +0000 (11:58 -0800)
Restructured code to have more consistent directory tree for the
two drivers.

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>
56 files changed:
drivers/staging/brcm80211/Kconfig
drivers/staging/brcm80211/Makefile
drivers/staging/brcm80211/brcmfmac/Kconfig [deleted file]
drivers/staging/brcm80211/brcmfmac/Makefile
drivers/staging/brcm80211/brcmsmac/Makefile [new file with mode: 0644]
drivers/staging/brcm80211/brcmsmac/phy/phy_version.h [moved from drivers/staging/brcm80211/phy/phy_version.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_cmn.c [moved from drivers/staging/brcm80211/phy/wlc_phy_cmn.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h [moved from drivers/staging/brcm80211/phy/wlc_phy_hal.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_int.h [moved from drivers/staging/brcm80211/phy/wlc_phy_int.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c [moved from drivers/staging/brcm80211/phy/wlc_phy_lcn.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.h [moved from drivers/staging/brcm80211/phy/wlc_phy_lcn.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_n.c [moved from drivers/staging/brcm80211/phy/wlc_phy_n.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_radio.h [moved from drivers/staging/brcm80211/phy/wlc_phy_radio.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phyreg_n.h [moved from drivers/staging/brcm80211/phy/wlc_phyreg_n.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_lcn.c [moved from drivers/staging/brcm80211/phy/wlc_phytbl_lcn.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_lcn.h [moved from drivers/staging/brcm80211/phy/wlc_phytbl_lcn.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_n.c [moved from drivers/staging/brcm80211/phy/wlc_phytbl_n.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_n.h [moved from drivers/staging/brcm80211/phy/wlc_phytbl_n.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/d11ucode_ext.h [moved from drivers/staging/brcm80211/sys/d11ucode_ext.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_dbg.h [moved from drivers/staging/brcm80211/sys/wl_dbg.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_export.h [moved from drivers/staging/brcm80211/sys/wl_export.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_mac80211.c [moved from drivers/staging/brcm80211/sys/wl_mac80211.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_mac80211.h [moved from drivers/staging/brcm80211/sys/wl_mac80211.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_ucode.h [moved from drivers/staging/brcm80211/sys/wl_ucode.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wl_ucode_loader.c [moved from drivers/staging/brcm80211/sys/wl_ucode_loader.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_alloc.c [moved from drivers/staging/brcm80211/sys/wlc_alloc.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_alloc.h [moved from drivers/staging/brcm80211/sys/wlc_alloc.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_ampdu.c [moved from drivers/staging/brcm80211/sys/wlc_ampdu.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_ampdu.h [moved from drivers/staging/brcm80211/sys/wlc_ampdu.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_antsel.c [moved from drivers/staging/brcm80211/sys/wlc_antsel.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_antsel.h [moved from drivers/staging/brcm80211/sys/wlc_antsel.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_bmac.c [moved from drivers/staging/brcm80211/sys/wlc_bmac.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_bmac.h [moved from drivers/staging/brcm80211/sys/wlc_bmac.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_bsscfg.h [moved from drivers/staging/brcm80211/sys/wlc_bsscfg.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_cfg.h [moved from drivers/staging/brcm80211/sys/wlc_cfg.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_channel.c [moved from drivers/staging/brcm80211/sys/wlc_channel.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_channel.h [moved from drivers/staging/brcm80211/sys/wlc_channel.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_event.c [moved from drivers/staging/brcm80211/sys/wlc_event.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_event.h [moved from drivers/staging/brcm80211/sys/wlc_event.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_key.h [moved from drivers/staging/brcm80211/sys/wlc_key.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_mac80211.c [moved from drivers/staging/brcm80211/sys/wlc_mac80211.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_mac80211.h [moved from drivers/staging/brcm80211/sys/wlc_mac80211.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_phy_shim.c [moved from drivers/staging/brcm80211/sys/wlc_phy_shim.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_phy_shim.h [moved from drivers/staging/brcm80211/sys/wlc_phy_shim.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_pub.h [moved from drivers/staging/brcm80211/sys/wlc_pub.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_rate.c [moved from drivers/staging/brcm80211/sys/wlc_rate.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_rate.h [moved from drivers/staging/brcm80211/sys/wlc_rate.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_scb.h [moved from drivers/staging/brcm80211/sys/wlc_scb.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_stf.c [moved from drivers/staging/brcm80211/sys/wlc_stf.c with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_stf.h [moved from drivers/staging/brcm80211/sys/wlc_stf.h with 100% similarity]
drivers/staging/brcm80211/brcmsmac/sys/wlc_types.h [moved from drivers/staging/brcm80211/sys/wlc_types.h with 100% similarity]
drivers/staging/brcm80211/include/bcmsdh.h
drivers/staging/brcm80211/util/aiutils.c
drivers/staging/brcm80211/util/bcmwifi.c
drivers/staging/brcm80211/util/hndpmu.c
drivers/staging/brcm80211/util/siutils.c

index 57d2d1b782f1f87133b61d436add7b839b81a30d..3208352465afefb7714317b1b5bde7e2d63a32bb 100644 (file)
@@ -8,7 +8,7 @@ choice
        help
        Select the appropriate driver style from the list below.
 
-config BRCM80211_PCI
+config BRCMSMAC
        bool "Broadcom IEEE802.11n PCIe SoftMAC WLAN driver"
        depends on PCI
        depends on BRCM80211 && MAC80211
@@ -16,7 +16,7 @@ config BRCM80211_PCI
        ---help---
          This module adds support for PCIe wireless adapters based on Broadcom
          IEEE802.11n SoftMAC chipsets.  If you choose to build a module, it'll
-         be called brcm80211.ko.
+         be called brcmsmac.ko.
 
 config BRCMFMAC
        bool "Broadcom IEEE802.11n embedded FullMAC WLAN driver"
index 1953ebe3d64bf621eabcc31b60e9199861ccc5a1..a0695195614f98dca983e058bdcdec088caebbae 100644 (file)
 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-ccflags-y :=                                   \
-       -DBCMDBG                                \
-       -DWLC_HIGH                              \
-       -DSTA                                   \
-       -DWME                                   \
-       -DWL11N                                 \
-       -DDBAND                                 \
-       -DBCMDMA32                              \
-       -DBCMNVRAMR                             \
-       -Idrivers/staging/brcm80211/sys         \
-       -Idrivers/staging/brcm80211/phy         \
-       -Idrivers/staging/brcm80211/util        \
-       -Idrivers/staging/brcm80211/include
-
-PCI_CFLAGS := -DWLC_LOW
-
-BRCM80211_OFILES := \
-       util/siutils.o \
-       util/aiutils.o \
-       util/bcmotp.o \
-       util/bcmsrom.o \
-       util/bcmutils.o \
-       util/bcmwifi.o \
-       util/hndpmu.o \
-       util/linux_osl.o \
-       sys/wlc_alloc.o \
-       sys/wlc_antsel.o \
-       sys/wlc_channel.o \
-       sys/wlc_event.o \
-       sys/wlc_mac80211.o \
-       sys/wlc_rate.o \
-       sys/wlc_stf.o \
-       sys/wl_mac80211.o \
-       sys/wlc_ampdu.o
-
-PCIFILES := \
-       phy/wlc_phy_cmn.o \
-       phy/wlc_phy_lcn.o \
-       phy/wlc_phy_n.o \
-       phy/wlc_phytbl_lcn.o \
-       phy/wlc_phytbl_n.o \
-       sys/wlc_bmac.o \
-       sys/wlc_phy_shim.o \
-       sys/wl_ucode_loader.o \
-       util/hnddma.o \
-       util/nicpci.o \
-       util/nvram/nvram_ro.o \
-       util/qmath.o
-
-MODULEPFX := brcm80211
-
-# PCI driver
-ifeq ($(CONFIG_BRCM80211_PCI),y)
-obj-m  += $(MODULEPFX).o
-ccflags-y += $(PCI_CFLAGS)
-$(MODULEPFX)-objs      = $(BRCM80211_OFILES) $(PCIFILES)
-endif
-
-obj-$(CONFIG_BRCMFMAC)    += brcmfmac/
+obj-$(CONFIG_BRCMFMAC) += brcmfmac/
+obj-$(CONFIG_BRCMSMAC) += brcmsmac/
diff --git a/drivers/staging/brcm80211/brcmfmac/Kconfig b/drivers/staging/brcm80211/brcmfmac/Kconfig
deleted file mode 100644 (file)
index e9f3037..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-menuconfig BRCMFMAC
-       tristate "Broadcom fullmac wireless cards support"
-       depends on MMC
-       depends on CFG80211
-       select FW_LOADER
-       select WIRELESS_EXT
-       select WEXT_PRIV
-       ---help---
-         This module adds support for wireless adapters based on
-         Broadcom fullmac chipsets.
-         This driver uses the kernel's wireless extensions subsystem.
-         If you choose to build a module, it'll be called brcmfmac.ko. Say M if
-         unsure.
-
-
index 76f2d8b37e45b670f5ec9f603086c0290bf1a223..13df7c3c79d31aadb151de07a518a070eacb5625 100644 (file)
@@ -37,10 +37,26 @@ ccflags-y :=                        \
        -Idrivers/staging/brcm80211/include             \
        -Idrivers/staging/brcm80211/util
 
-DHDOFILES = dhd_linux.o ../util/linux_osl.o ../util/bcmutils.o dhd_common.o dhd_custom_gpio.o  \
-       wl_iw.o wl_cfg80211.o ../util/siutils.o ../util/sbutils.o ../util/aiutils.o ../util/hndpmu.o ../util/bcmwifi.o dhd_sdio.o       \
-       dhd_linux_sched.o dhd_cdc.o bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o      \
-       bcmsdh_sdmmc_linux.o
+DHDOFILES = \
+       wl_cfg80211.o \
+       wl_iw.o \
+       dhd_cdc.o \
+       dhd_common.o \
+       dhd_custom_gpio.o \
+       dhd_sdio.o      \
+       dhd_linux.o \
+       dhd_linux_sched.o \
+       bcmsdh.o \
+       bcmsdh_linux.o  \
+       bcmsdh_sdmmc.o \
+       bcmsdh_sdmmc_linux.o \
+       ../util/linux_osl.o \
+       ../util/aiutils.o \
+       ../util/siutils.o \
+       ../util/sbutils.o \
+       ../util/bcmutils.o \
+       ../util/bcmwifi.o \
+       ../util/hndpmu.o
 
 obj-m += brcmfmac.o
 brcmfmac-objs += $(DHDOFILES)
diff --git a/drivers/staging/brcm80211/brcmsmac/Makefile b/drivers/staging/brcm80211/brcmsmac/Makefile
new file mode 100644 (file)
index 0000000..910196a
--- /dev/null
@@ -0,0 +1,67 @@
+#
+# Makefile fragment for Broadcom 802.11n Networking Device Driver
+#
+# 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.
+
+ccflags-y :=                                   \
+       -DBCMDBG                                \
+       -DWLC_HIGH                              \
+       -DWLC_LOW                               \
+       -DSTA                                   \
+       -DWME                                   \
+       -DWL11N                                 \
+       -DDBAND                                 \
+       -DBCMDMA32                              \
+       -DBCMNVRAMR                             \
+       -Idrivers/staging/brcm80211/brcmsmac/sys \
+       -Idrivers/staging/brcm80211/brcmsmac/phy \
+       -Idrivers/staging/brcm80211/util \
+       -Idrivers/staging/brcm80211/include
+
+BRCMSMAC_OFILES := \
+       sys/wl_mac80211.o \
+       sys/wl_ucode_loader.o \
+       sys/wlc_alloc.o \
+       sys/wlc_ampdu.o \
+       sys/wlc_antsel.o \
+       sys/wlc_bmac.o \
+       sys/wlc_channel.o \
+       sys/wlc_event.o \
+       sys/wlc_mac80211.o \
+       sys/wlc_phy_shim.o \
+       sys/wlc_rate.o \
+       sys/wlc_stf.o \
+       phy/wlc_phy_cmn.o \
+       phy/wlc_phy_lcn.o \
+       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 \
+       ../util/bcmwifi.o \
+       ../util/bcmotp.o \
+       ../util/bcmsrom.o \
+       ../util/hnddma.o \
+       ../util/hndpmu.o \
+       ../util/nicpci.o \
+       ../util/qmath.o \
+       ../util/nvram/nvram_ro.o
+
+MODULEPFX := brcmsmac
+
+obj-m  += $(MODULEPFX).o
+$(MODULEPFX)-objs      = $(BRCMSMAC_OFILES)
index 0e1f79919c9cda67ec09440f0fd888b91b480be2..90a600de7a3a78a62653541b0268ce21a8bda9ef 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef        _bcmsdh_h_
 #define        _bcmsdh_h_
 
+#include <linux/skbuff.h>
 #define BCMSDH_ERROR_VAL       0x0001  /* Error */
 #define BCMSDH_INFO_VAL                0x0002  /* Info */
 extern const uint bcmsdh_msglevel;
index ddd2f9d64c209137e940563f6e358973edc92475..b6e7a9e97379d3d60909e4f2442bf602dde8f941 100644 (file)
@@ -18,9 +18,6 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <bcmdefs.h>
-#ifdef BRCM_FULLMAC
-#include <linux/netdevice.h>
-#endif
 #include <osl.h>
 #include <linux/module.h>
 #include <linux/pci.h>
index cb6f21ae36ccfb86a25ede2f6a57905a6123cf81..b22d14b9aef4f268d466f46423429b333f0c32a6 100644 (file)
@@ -15,9 +15,6 @@
  */
 #include <linux/ctype.h>
 #include <linux/kernel.h>
-#ifdef BRCM_FULLMAC
-#include <linux/netdevice.h>
-#endif
 #include <osl.h>
 #include <bcmdefs.h>
 #include <bcmutils.h>
index 6cc59a895868816d969e75975f02f98da9614f82..49d19a121f7baff78393077ba4e06671693aeeac 100644 (file)
@@ -18,9 +18,6 @@
 #include <linux/string.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>
index b66de9b35a5a6fdf6b4b0483ed2b11951992d28d..b0e7695097e80c6c44ec6a1f747bebadcb33dcc2 100644 (file)
@@ -18,9 +18,6 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <bcmdefs.h>
-#ifdef BRCM_FULLMAC
-#include <linux/netdevice.h>
-#endif
 #include <osl.h>
 #include <linux/module.h>
 #include <linux/pci.h>