Code cleanup. Removing 'bcm' and 'wlc_' file name prefixes.
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _aiutils_h_
-#define        _aiutils_h_
+#ifndef        _BRCM_AIUTILS_H_
+#define        _BRCM_AIUTILS_H_
 
 /* Include the soci specific files */
 #include <aidmp.h>
 
 char *ai_getnvramflvar(struct si_pub *sih, const char *name);
 
-#endif                         /* _aiutils_h_ */
+#endif                         /* _BRCM_AIUTILS_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _bcmdma_h_
-#define        _bcmdma_h_
+#ifndef        _BRCM_DMA_H_
+#define        _BRCM_DMA_H_
 
 #include "wlc_types.h"         /* forward structure declarations */
 
 #endif                         /* defined(__mips__) */
 }
 
-#endif                         /* _bcmdma_h_ */
+#endif                         /* _BRCM_DMA_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _bcmotp_h_
-#define        _bcmotp_h_
+#ifndef        _BRCM_OTP_H_
+#define        _BRCM_OTP_H_
 
 /* OTP regions */
 #define OTP_HW_RGN     1
                           uint *wlen);
 extern int otp_nvread(void *oh, char *data, uint *len);
 
-#endif                         /* _bcmotp_h_ */
+#endif                         /* _BRCM_OTP_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wl_mac80211_h_
-#define _wl_mac80211_h_
+#ifndef _BRCM_MAC80211_IF_H_
+#define _BRCM_MAC80211_IF_H_
 
 /* softmac ioctl definitions */
 #define WLC_SET_SHORTSLOT_OVERRIDE             146
 extern bool brcms_del_timer(struct brcms_info *wl, struct brcms_timer *timer);
 extern void brcms_msleep(struct brcms_info *wl, uint ms);
 
-#endif                         /* _wl_mac80211_h_ */
+#endif                         /* _BRCM_MAC80211_IF_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _D11_H
-#define        _D11_H
+#ifndef        _BRCM_D11_H_
+#define        _BRCM_D11_H_
 
 #include <linux/ieee80211.h>
 
        u32 rxundec;
 } d11cnt_t;
 
-#endif                         /* _D11_H */
+#endif                         /* _BRCM_D11_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _NICPCI_H
-#define        _NICPCI_H
+#ifndef        _BRCM_NICPCI_H_
+#define        _BRCM_NICPCI_H_
 
 /* PCI configuration address space size */
 #define PCI_SZPCR              256
 extern void pcicore_fixcfg(void *pch, void *regs);
 extern void pcicore_pci_setup(void *pch, void *regs);
 
-#endif /* _NICPCI_H */
+#endif /* _BRCM_NICPCI_H_ */
 
  */
 
 /*
- * wlc_phy_hal.h:  functionality exported from the phy to higher layers
+ * phy_hal.h:  functionality exported from the phy to higher layers
  */
 
-#ifndef _wlc_phy_h_
-#define _wlc_phy_h_
+#ifndef _BRCM_PHY_HAL_H_
+#define _BRCM_PHY_HAL_H_
 
 #include <aiutils.h>
 #include <d11.h>
 extern s8 wlc_phy_get_tx_power_offset_by_mcs(wlc_phy_t *ppi,
                                               u8 mcs_offset);
 extern s8 wlc_phy_get_tx_power_offset(wlc_phy_t *ppi, u8 tbl_offset);
-#endif                         /* _wlc_phy_h_ */
+#endif                         /* _BRCM_PHY_HAL_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_phy_int_h_
-#define _wlc_phy_int_h_
+#ifndef _BRCM_PHY_INT_H_
+#define _BRCM_PHY_INT_H_
 
 #include <linux/kernel.h>
 #include <bcmdefs.h>
                                    chanspec_t chanspec);
 
 extern bool wlc_phy_n_txpower_ipa_ison(phy_info_t *pih);
-#endif                         /* _wlc_phy_int_h_ */
+#endif                         /* _BRCM_PHY_INT_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_phy_lcn_h_
-#define _wlc_phy_lcn_h_
+#ifndef _BRCM_PHY_LCN_H_
+#define _BRCM_PHY_LCN_H_
 
 struct phy_info_lcnphy {
        int lcnphy_txrf_sp_9_override;
        uint lcnphy_aci_start_time;
        s8 lcnphy_tx_power_offset[TXP_NUM_RATES];
 };
-#endif                         /* _wlc_phy_lcn_h_ */
+#endif                         /* _BRCM_PHY_LCN_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef __QMATH_H__
-#define __QMATH_H__
+#ifndef _BRCM_QMATH_H_
+#define _BRCM_QMATH_H_
 
 u16 qm_mulu16(u16 op1, u16 op2);
 
 
 void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N);
 
-#endif                         /* #ifndef __QMATH_H__ */
+#endif                         /* #ifndef _BRCM_QMATH_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _BCM20XX_H
-#define        _BCM20XX_H
+#ifndef        _BRCM_PHY_RADIO_H_
+#define        _BRCM_PHY_RADIO_H_
 
 #define        RADIO_IDCODE                    0x01
 
 
 #define RADIO_2057_VCM_MASK                     0x7
 
-#endif                         /* _BCM20XX_H */
+#endif                         /* _BRCM_PHY_RADIO_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_ampdu_h_
-#define _wlc_ampdu_h_
+#ifndef _BRCM_AMPDU_H_
+#define _BRCM_AMPDU_H_
 
 extern struct ampdu_info *wlc_ampdu_attach(struct wlc_info *wlc);
 extern void wlc_ampdu_detach(struct ampdu_info *ampdu);
 extern void wlc_ampdu_macaddr_upd(struct wlc_info *wlc);
 extern void wlc_ampdu_shm_upd(struct ampdu_info *ampdu);
 
-#endif                         /* _wlc_ampdu_h_ */
+#endif                         /* _BRCM_AMPDU_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_antsel_h_
-#define _wlc_antsel_h_
+#ifndef _BRCM_ANTSEL_H_
+#define _BRCM_ANTSEL_H_
 
 extern struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc);
 extern void wlc_antsel_detach(struct antsel_info *asi);
                                  u8 *fbantcfg);
 extern u8 wlc_antsel_antsel2id(struct antsel_info *asi, u16 antsel);
 
-#endif /* _wlc_antsel_h_ */
+#endif /* _BRCM_ANTSEL_H_ */
 
  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-#ifndef _wlc_bmac_h_
-#define _wlc_bmac_h_
+#ifndef _BRCM_BOTTOM_MAC_H_
+#define _BRCM_BOTTOM_MAC_H_
 
 /* XXXXX this interface is under wlc.c by design
  * http://hwnbu-twiki.broadcom.com/bin/view/Mwgroup/WlBmacDesign
 extern u16 wlc_bmac_rate_shm_offset(struct wlc_hw_info *wlc_hw, u8 rate);
 extern void wlc_bmac_antsel_set(struct wlc_hw_info *wlc_hw, u32 antsel_avail);
 
-#endif /* _wlc_bmac_h_ */
+#endif /* _BRCM_BOTTOM_MAC_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _WLC_BSSCFG_H_
-#define _WLC_BSSCFG_H_
+#ifndef _BRCM_BSSCFG_H_
+#define _BRCM_BSSCFG_H_
 
 /* Check if a particular BSS config is AP or STA */
 #define BSSCFG_AP(cfg)         (0)
 #define SOFTPRB_ENAB(pub)    (0)
 #define wlc_bsscfg_tx_check(a) do { } while (0);
 
-#endif                         /* _WLC_BSSCFG_H_ */
+#endif                         /* _BRCM_BSSCFG_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_cfg_h_
-#define _wlc_cfg_h_
+#ifndef _BRCM_CFG_H_
+#define _BRCM_CFG_H_
 
 #define NBANDS(wlc) ((wlc)->pub->_nbands)
 #define NBANDS_PUB(pub) ((pub)->_nbands)
 #define WLBANDINITDATA(_data)  _data
 #define WLBANDINITFN(_fn)      _fn
 
-#endif                         /* _wlc_cfg_h_ */
+#endif                         /* _BRCM_CFG_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _WLC_CHANNEL_H_
-#define _WLC_CHANNEL_H_
+#ifndef _BRCM_CHANNEL_H_
+#define _BRCM_CHANNEL_H_
 
 #define WLC_TXPWR_DB_FACTOR 4  /* conversion for phy txpwr cacluations that use .25 dB units */
 
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_key_h_
-#define _wlc_key_h_
+#ifndef _BRCM_KEY_H_
+#define _BRCM_KEY_H_
 
 #include <linux/if_ether.h>    /* for ETH_ALEN */
 
 #define wlc_rcmta_del_bssid(a, b) do {} while (0)
 #define wlc_key_scb_delete(a, b) do {} while (0)
 
-#endif                         /* _wlc_key_h_ */
+#endif                         /* _BRCM_KEY_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_h_
-#define _wlc_h_
+#ifndef _BRCM_MAIN_H_
+#define _BRCM_MAIN_H_
 
 #define MA_WINDOW_SZ           8       /* moving average window size */
 #define        WL_HWRXOFF              38      /* chip rx buffer offset */
 extern bool wlc_stay_awake(struct wlc_info *wlc);
 extern void wlc_wme_initparams_sta(struct wlc_info *wlc, wme_param_ie_t *pe);
 
-#endif                         /* _wlc_h_ */
+#endif                         /* _BRCM_MAIN_H_ */
 
  */
 
 /*
- * wlc_phy_shim.h: stuff defined in wlc_phy_shim.c and included only by the phy
+ * phy_shim.h: stuff defined in phy_shim.c and included only by the phy
  */
 
-#ifndef _wlc_phy_shim_h_
-#define _wlc_phy_shim_h_
+#ifndef _BRCM_PHY_SHIM_H_
+#define _BRCM_PHY_SHIM_H_
 
 #define RADAR_TYPE_NONE                0       /* Radar type None */
 #define RADAR_TYPE_ETSI_1      1       /* ETSI 1 Radar type */
 extern void wlapi_high_update_phy_mode(wlc_phy_shim_info_t *physhim,
                                       u32 phy_mode);
 extern u16 wlapi_bmac_get_txant(wlc_phy_shim_info_t *physhim);
-#endif                         /* _wlc_phy_shim_h_ */
+#endif                         /* _BRCM_PHY_SHIM_H_ */
 
  */
 
 
-#ifndef WLC_PMU_H_
-#define WLC_PMU_H_
+#ifndef _BRCM_PMU_H_
+#define _BRCM_PMU_H_
 
 #include <linux/types.h>
 
 extern bool si_pmu_is_otp_powered(struct si_pub *sih);
 extern void si_pmu_otp_power(struct si_pub *sih, bool on);
 
-#endif /* WLC_PMU_H_ */
+#endif /* _BRCM_PMU_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_pub_h_
-#define _wlc_pub_h_
+#ifndef _BRCM_PUB_H_
+#define _BRCM_PUB_H_
 
 #include "wlc_types.h"         /* forward structure declarations */
 #include "brcmu_wifi.h"                /* for chanspec_t */
 /* BMAC RPC: 7 u32 params: pkttotlen, fifo, commit, fid, txpktpend, pktflag, rpc_id */
 #define WLC_RPCTX_PARAMS               32
 
-#endif                         /* _wlc_pub_h_ */
+#endif                         /* _BRCM_PUB_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_scb_h_
-#define _wlc_scb_h_
+#ifndef _BRCM_SCB_H_
+#define _BRCM_SCB_H_
 
 #include <linux/if_ether.h>    /* for ETH_ALEN */
 
 #define SCB_PS(a)              NULL
 #define SCB_STBC_CAP(a)                ((a)->flags & SCB_STBCCAP)
 #define SCB_AMPDU(a)           true
-#endif                         /* _wlc_scb_h_ */
+#endif                         /* _BRCM_SCB_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_stf_h_
-#define _wlc_stf_h_
+#ifndef _BRCM_STF_H_
+#define _BRCM_STF_H_
 
 extern int wlc_stf_attach(struct wlc_info *wlc);
 extern void wlc_stf_detach(struct wlc_info *wlc);
 extern u16 wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec);
 extern u16 wlc_stf_d11hdrs_phyctl_txant(struct wlc_info *wlc, ratespec_t rspec);
 
-#endif                         /* _wlc_stf_h_ */
+#endif                         /* _BRCM_STF_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef _wlc_types_h_
-#define _wlc_types_h_
+#ifndef _BRCM_TYPES_H_
+#define _BRCM_TYPES_H_
 
 /* Bus types */
 #define        SI_BUS                  0       /* SOC Interconnect */
 /* brcm_msg_level is a bit vector with defs in bcmdefs.h */
 extern u32 brcm_msg_level;
 
-#endif                         /* _wlc_types_h_ */
+#endif                         /* _BRCM_TYPES_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _bcmdefs_h_
-#define        _bcmdefs_h_
+#ifndef        _BRCM_DEFS_H_
+#define        _BRCM_DEFS_H_
 
 #define        SI_BUS                  0
 #define        PCI_BUS                 1
 #define        PAD             _XSTR(__LINE__)
 #endif
 
-#endif                         /* _bcmdefs_h_ */
+#endif                         /* _BRCM_DEFS_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _BCMDEVS_H
-#define        _BCMDEVS_H
+#ifndef        _BRCM_HW_IDS_H_
+#define        _BRCM_HW_IDS_H_
 
 #define        BCM4325_D11DUAL_ID      0x431b
 #define        BCM4325_D11G_ID         0x431c
 /* Reference board types */
 #define        SPI_BOARD               0x0402
 
-#endif                         /* _BCMDEVS_H */
+#endif                         /* _BRCM_HW_IDS_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _bcmsdh_h_
-#define        _bcmsdh_h_
+#ifndef        _BRCM_SDH_H_
+#define        _BRCM_SDH_H_
 
 #include <linux/skbuff.h>
 #define BCMSDH_ERROR_VAL       0x0001  /* Error */
 /* Function to pass chipid and rev to lower layers for controlling pr's */
 extern void bcmsdh_chipinfo(void *sdh, u32 chip, u32 chiprev);
 
-#endif                         /* _bcmsdh_h_ */
+#endif                         /* _BRCM_SDH_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _BCMSOC_H
-#define        _BCMSOC_H
+#ifndef        _BRCM_SOC_H
+#define        _BRCM_SOC_H
 
 /* Include the soci specific files */
 #include <aidmp.h>
 #define        BISZ_BSSEND_IDX         6       /*      6: bss end */
 #define BISZ_SIZE              7       /* descriptor size in 32-bit integers */
 
-#endif                         /* _BCMSOC_H */
+#endif                         /* _BRCM_SOC_H */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _bcmsrom_h_
-#define        _bcmsrom_h_
+#ifndef        _BRCM_SROM_H_
+#define        _BRCM_SROM_H_
 
 /* Prototypes */
 extern int srom_var_init(struct si_pub *sih, uint bus, void *curmap,
  */
 extern int srom_parsecis(u8 **pcis, uint ciscnt,
                         char **vars, uint *count);
-#endif                         /* _bcmsrom_h_ */
+#endif                         /* _BRCM_SROM_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _brcmutils_h_
-#define        _brcmutils_h_
+#ifndef        _BRCMU_UTILS_H_
+#define        _BRCMU_UTILS_H_
 
 /* Buffer structure for collecting string-formatted data
 * using brcmu_bprintf() API.
                          char *buf, uint len);
 extern uint brcmu_bitcount(u8 *bitmap, uint bytelength);
 
-#endif                         /* _brcmutils_h_ */
+#endif                         /* _BRCMU_UTILS_H_ */
 
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef        _brcmu_wifi_h_
-#define        _brcmu_wifi_h_
+#ifndef        _BRCMU_WIFI_H_
+#define        _BRCMU_WIFI_H_
 
 #include <linux/if_ether.h>            /* for ETH_ALEN */
 #include <linux/ieee80211.h>           /* for WLAN_PMKID_LEN */
 
 typedef u8 ac_bitmap_t;
 
-#endif                         /* _brcmu_wifi_h_ */
+#endif                         /* _BRCMU_WIFI_H_ */