staging: brcm80211: removed unused Broadcom specific ioctls codes
PATCH 66/83 staging: brcm80211: cleaned up prefix for utility functions
In reply to Roland VossenCode cleanup. 'bcm' replaced by 'brcmu_', which is shorthand for 'Broadcom Utilities' (the 'brcmutil.ko' library module).
--- drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 20 +- drivers/staging/brcm80211/brcmfmac/dhd_bus.h | 2 +- drivers/staging/brcm80211/brcmfmac/dhd_cdc.c | 4 +- drivers/staging/brcm80211/brcmfmac/dhd_common.c | 112 ++++++------ drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 18 +- drivers/staging/brcm80211/brcmfmac/dhd_proto.h | 2 +- drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 180 ++++++++++---------- drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 39 +++-- drivers/staging/brcm80211/brcmfmac/wl_iw.c | 31 ++-- drivers/staging/brcm80211/brcmsmac/bcmdma.h | 6 +- drivers/staging/brcm80211/brcmsmac/bcmsrom.c | 4 +- .../staging/brcm80211/brcmsmac/brcms_mac80211.c | 2 +- drivers/staging/brcm80211/brcmsmac/dma.c | 10 +- .../staging/brcm80211/brcmsmac/phy/wlc_phy_int.h | 2 +- drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c | 14 +- drivers/staging/brcm80211/brcmsmac/wlc_bmac.c | 2 +- drivers/staging/brcm80211/brcmsmac/wlc_channel.c | 2 +- drivers/staging/brcm80211/brcmsmac/wlc_main.c | 52 +++--- drivers/staging/brcm80211/brcmsmac/wlc_main.h | 8 +- drivers/staging/brcm80211/brcmsmac/wlc_pub.h | 4 +- drivers/staging/brcm80211/brcmsmac/wlc_types.h | 2 +- drivers/staging/brcm80211/include/bcmutils.h | 147 ++++++++--------- drivers/staging/brcm80211/include/bcmwifi.h | 12 +- drivers/staging/brcm80211/util/bcmutils.c | 135 ++++++++------- drivers/staging/brcm80211/util/bcmwifi.c | 12 +- 25 files changed, 411 insertions(+), 411 deletions(-)
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +10 -10
@@ -352,7 +352,7 @@ enum {IOV_RXCHAIN }; -const bcm_iovar_t sdioh_iovars[] = { +const struct brcmu_iovar sdioh_iovars[] = { {"sd_msglevel" ,IOV_MSGLEVEL ,0 ,IOVT_UINT32 ,0 }, {"sd_blocksize" ,IOV_BLOCKSIZE ,0 ,IOVT_UINT32 ,0 },/* ((fn << 16) | size) */
@@ -369,7 +369,7 @@ int sdioh_iovar_op(sdioh_info_t *si, const char *name, void *params, int plen, void *arg, int len, bool set) { -const bcm_iovar_t *vi =NULL ; +const struct brcmu_iovar *vi =NULL ;int bcmerror =0 ;int val_size;s32 int_val =0 ;
@@ -386,13 +386,13 @@ sdioh_iovar_op(sdioh_info_t *si, const char *name,sd_trace (("%s: Enter (%s %s)\n" , __func__, (set ?"set" :"get" ), name)); - vi =bcm_iovar_lookup (sdioh_iovars, name); + vi =brcmu_iovar_lookup (sdioh_iovars, name);if (vi ==NULL ) { bcmerror = -ENOTSUPP ; goto exit; } - bcmerror =bcm_iovar_lencheck (vi, arg, len, set); + bcmerror =brcmu_iovar_lencheck (vi, arg, len, set);if (bcmerror !=0 ) goto exit;
@@ -888,9 +888,9 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,if (pkt ==NULL ) {sd_data (("%s: Creating new %s Packet, len=%d\n" , __func__, write ?"TX" :"RX" , buflen_u)); - mypkt =bcm_pkt_buf_get_skb (buflen_u); + mypkt =brcmu_pkt_buf_get_skb (buflen_u);if (!mypkt) { -sd_err (("%s: bcm_pkt_buf_get_skb failed: len %d\n" , +sd_err (("%s: brcmu_pkt_buf_get_skb failed: len %d\n" , __func__, buflen_u));return SDIOH_API_RC_FAIL ; }
@@ -906,7 +906,7 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,if (!write)memcpy (buffer, mypkt->data, buflen_u); -bcm_pkt_buf_free_skb (mypkt); +brcmu_pkt_buf_free_skb (mypkt); }else if (((u32) (pkt->data) &DMA_ALIGN_MASK ) !=0 ) {/* Case 2: We have a packet, but it is unaligned. */
@@ -915,9 +915,9 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,sd_data (("%s: Creating aligned %s Packet, len=%d\n" , __func__, write ?"TX" :"RX" , pkt->len)); - mypkt =bcm_pkt_buf_get_skb (pkt->len); + mypkt =brcmu_pkt_buf_get_skb (pkt->len);if (!mypkt) { -sd_err (("%s: bcm_pkt_buf_get_skb failed: len %d\n" , +sd_err (("%s: brcmu_pkt_buf_get_skb failed: len %d\n" , __func__, pkt->len));return SDIOH_API_RC_FAIL ; }
@@ -933,7 +933,7 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,if (!write)memcpy (pkt->data, mypkt->data, mypkt->len); -bcm_pkt_buf_free_skb (mypkt); +brcmu_pkt_buf_free_skb (mypkt); }else {/* case 3: We have a packet and it is aligned. */ sd_data(("%s: Aligned %s Packet, direct DMA\n",
drivers/staging/brcm80211/brcmfmac/dhd_bus.h +1 -1
@@ -63,7 +63,7 @@ extern int dhd_bus_iovar_op(dhd_pub_t *dhdp, const char *name, bool set);/* Add bus dump output to a buffer */ -extern void dhd_bus_dump (dhd_pub_t *dhdp,struct bcmstrbuf *strbuf); +extern void dhd_bus_dump (dhd_pub_t *dhdp,struct brcmu_strbuf *strbuf);/* Clear any bus counters */ extern void dhd_bus_clearcounts (dhd_pub_t *dhdp);
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c +2 -2
@@ -366,9 +366,9 @@ dhd_prot_iovar_op(dhd_pub_t *dhdp, const char *name,return -ENOTSUPP ; } -void dhd_prot_dump (dhd_pub_t *dhdp,struct bcmstrbuf *strbuf) +void dhd_prot_dump (dhd_pub_t *dhdp,struct brcmu_strbuf *strbuf) { -bcm_bprintf (strbuf,"Protocol CDC: reqid %d\n" , dhdp->prot->reqid); +brcmu_bprintf (strbuf,"Protocol CDC: reqid %d\n" , dhdp->prot->reqid); }void dhd_prot_hdrpush (dhd_pub_t *dhd,int ifidx,struct sk_buff *pktbuf)
drivers/staging/brcm80211/brcmfmac/dhd_common.c +57 -55
295 lines not on this page · raw message
drivers/staging/brcm80211/brcmfmac/dhd_linux.c +9 -9
@@ -485,7 +485,7 @@ static int dhd_set_suspend(int value, dhd_pub_t *dhd) bcn_li_dtim =3 ; else bcn_li_dtim = dhd->dtim_skip; -bcm_mkiovar ("bcn_li_dtim" , (char *)&bcn_li_dtim, +brcmu_mkiovar ("bcn_li_dtim" , (char *)&bcn_li_dtim,4 , iovbuf,sizeof (iovbuf));dhdcdc_set_ioctl (dhd,0 ,WLC_SET_VAR , iovbuf,sizeof (iovbuf));
@@ -493,7 +493,7 @@ static int dhd_set_suspend(int value, dhd_pub_t *dhd)/* Disable build-in roaming to allowed \ * supplicant to take of romaing */ -bcm_mkiovar ("roam_off" , (char *)&roamvar,4 , +brcmu_mkiovar ("roam_off" , (char *)&roamvar,4 , iovbuf,sizeof (iovbuf));dhdcdc_set_ioctl (dhd,0 ,WLC_SET_VAR , iovbuf,sizeof (iovbuf));
@@ -513,14 +513,14 @@ static int dhd_set_suspend(int value, dhd_pub_t *dhd)dhd_set_packet_filter (0 , dhd);/* restore pre-suspend setting for dtim_skip */ -bcm_mkiovar ("bcn_li_dtim" , (char *)&dhd->dtim_skip, +brcmu_mkiovar ("bcn_li_dtim" , (char *)&dhd->dtim_skip,4 , iovbuf,sizeof (iovbuf));dhdcdc_set_ioctl (dhd,0 ,WLC_SET_VAR , iovbuf,sizeof (iovbuf));#ifdef CUSTOMER_HW2 roamvar =0 ; -bcm_mkiovar ("roam_off" , (char *)&roamvar,4 , iovbuf, +brcmu_mkiovar ("roam_off" , (char *)&roamvar,4 , iovbuf,sizeof (iovbuf));dhdcdc_set_ioctl (dhd,0 ,WLC_SET_VAR , iovbuf,sizeof (iovbuf));
@@ -750,7 +750,7 @@ static void _dhd_set_multicast_list(dhd_info_t *dhd, int ifidx) } allmulti =cpu_to_le32 (allmulti); -if (!bcm_mkiovar +if (!brcmu_mkiovar ("allmulti" , (void *)&allmulti,sizeof (allmulti), buf, buflen)) { DHD_ERROR(("%s: mkiovar failed for allmulti, datalen %d " "buflen %u\n", dhd_ifname(&dhd->pub, ifidx),
@@ -802,7 +802,7 @@ _dhd_set_mac_address(dhd_info_t *dhd, int ifidx, u8 *addr)int ret;DHD_TRACE (("%s enter\n" , __func__)); -if (!bcm_mkiovar +if (!brcmu_mkiovar ("cur_etheraddr" , (char *)addr,ETH_ALEN , buf,32 )) {DHD_ERROR (("%s: mkiovar failed for cur_etheraddr\n" ,dhd_ifname (&dhd->pub, ifidx)));
@@ -2091,8 +2091,8 @@ int dhd_bus_start(dhd_pub_t *dhdp)return -ENODEV ; }#ifdef EMBEDDED_PLATFORM -bcm_mkiovar ("event_msgs" , dhdp->eventmask,WL_EVENTING_MASK_LEN , iovbuf, -sizeof (iovbuf)); +brcmu_mkiovar ("event_msgs" , dhdp->eventmask,WL_EVENTING_MASK_LEN , + iovbuf,sizeof (iovbuf));dhdcdc_query_ioctl (dhdp,0 ,WLC_GET_VAR , iovbuf,sizeof (iovbuf));memcpy (dhdp->eventmask, iovbuf,WL_EVENTING_MASK_LEN );
@@ -2142,7 +2142,7 @@ dhd_iovar(dhd_pub_t *pub, int ifidx, char *name, char *cmd_buf, uint cmd_len,wl_ioctl_t ioc;int ret; - len =bcm_mkiovar (name, cmd_buf, cmd_len, buf, len); + len =brcmu_mkiovar (name, cmd_buf, cmd_len, buf, len);memset (&ioc,0 ,sizeof (ioc));
drivers/staging/brcm80211/brcmfmac/dhd_proto.h +1 -1
@@ -61,7 +61,7 @@ extern int dhd_prot_iovar_op(dhd_pub_t *dhdp, const char *name, bool set);/* Add prot dump output to a buffer */ -extern void dhd_prot_dump (dhd_pub_t *dhdp,struct bcmstrbuf *strbuf); +extern void dhd_prot_dump (dhd_pub_t *dhdp,struct brcmu_strbuf *strbuf);/* Update local copy of dongle statistics */ extern void dhd_prot_dstats (dhd_pub_t *dhdp);
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +91 -89
568 lines not on this page · raw message
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +20 -19
@@ -645,7 +645,7 @@ wl_dev_iovar_setbuf(struct net_device *dev, s8 * iovar, void *param, {s32 iolen; - iolen =bcm_mkiovar (iovar, param, paramlen, bufptr, buflen); + iolen =brcmu_mkiovar (iovar, param, paramlen, bufptr, buflen);BUG_ON (!iolen);return wl_dev_ioctl (dev,WLC_SET_VAR , bufptr, iolen);
@@ -657,7 +657,7 @@ wl_dev_iovar_getbuf(struct net_device *dev, s8 * iovar, void *param, {s32 iolen; - iolen =bcm_mkiovar (iovar, param, paramlen, bufptr, buflen); + iolen =brcmu_mkiovar (iovar, param, paramlen, bufptr, buflen);BUG_ON (!iolen);return wl_dev_ioctl (dev,WLC_GET_VAR , bufptr, buflen);
@@ -845,7 +845,8 @@ static s32 wl_dev_intvar_set(struct net_device *dev, s8 *name, s32 val)s32 err =0 ; val =cpu_to_le32 (val); - len =bcm_mkiovar (name, (char *)(&val),sizeof (val), buf,sizeof (buf)); + len =brcmu_mkiovar (name, (char *)(&val),sizeof (val), buf, +sizeof (buf));BUG_ON (!len); err =wl_dev_ioctl (dev,WLC_SET_VAR , buf, len);
@@ -867,7 +868,7 @@ wl_dev_intvar_get(struct net_device *dev, s8 *name, s32 *retval)s32 err =0 ; len = -bcm_mkiovar (name, (char *)(&data_null),0 , (char *)(&var), +brcmu_mkiovar (name, (char *)(&data_null),0 , (char *)(&var),sizeof (var.buf));BUG_ON (!len); err =wl_dev_ioctl (dev,WLC_GET_VAR , &var, len);
@@ -1520,7 +1521,7 @@ wl_cfg80211_set_tx_power(struct wiphy *wiphy,else txpwrmw = (u16 ) dbm; err =wl_dev_intvar_set (ndev,"qtxpower" , - (s32) (bcm_mw_to_qdbm (txpwrmw))); + (s32) (brcmu_mw_to_qdbm (txpwrmw)));if (unlikely (err))WL_ERR ("qtxpower error (%d)\n" , err); wl->conf->tx_power = dbm;
@@ -1548,7 +1549,7 @@ static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm) } result = (u8) (txpwrdbm & ~WL_TXPWR_OVERRIDE ); - *dbm = (s32 )bcm_qdbm_to_mw (result); + *dbm = (s32 )brcmu_qdbm_to_mw (result); done:WL_TRACE ("Exit\n" );
@@ -2670,7 +2671,7 @@ wl_dev_bufvar_set(struct net_device *dev, s8 *name, s8 *buf, s32 len)struct wl_priv *wl =ndev_to_wl (dev);u32 buflen; - buflen =bcm_mkiovar (name, buf, len, wl->ioctl_buf,WL_IOCTL_LEN_MAX ); + buflen =brcmu_mkiovar (name, buf, len, wl->ioctl_buf,WL_IOCTL_LEN_MAX );BUG_ON (!buflen);return wl_dev_ioctl (dev,WLC_SET_VAR , wl->ioctl_buf, buflen);
@@ -2684,7 +2685,7 @@ wl_dev_bufvar_get(struct net_device *dev, s8 *name, s8 *buf,u32 len;s32 err =0 ; - len =bcm_mkiovar (name,NULL ,0 , wl->ioctl_buf,WL_IOCTL_LEN_MAX ); + len =brcmu_mkiovar (name,NULL ,0 , wl->ioctl_buf,WL_IOCTL_LEN_MAX );BUG_ON (!len); err =wl_dev_ioctl (dev,WLC_GET_VAR , (void *)wl->ioctl_buf,WL_IOCTL_LEN_MAX );
@@ -2802,7 +2803,7 @@ static s32 wl_update_bss_info(struct wl_priv *wl) {struct wl_bss_info *bi;struct wlc_ssid *ssid; -struct bcm_tlv *tim; +struct brcmu_tlv *tim;u16 beacon_interval;u8 dtim_period;size_t ie_len;
@@ -2832,7 +2833,7 @@ static s32 wl_update_bss_info(struct wl_priv *wl) ie_len = bi->ie_length; beacon_interval =cpu_to_le16 (bi->beacon_period); - tim =bcm_parse_tlvs (ie, ie_len,WLAN_EID_TIM ); + tim =brcmu_parse_tlvs (ie, ie_len,WLAN_EID_TIM );if (tim) dtim_period = tim->data[1 ];else {
@@ -3683,7 +3684,7 @@ wl_dongle_glom(struct net_device *ndev, u32 glom, u32 dongle_align)s32 err =0 ;/* Match Host and Dongle rx alignment */ -bcm_mkiovar ("bus:txglomalign" , (char *)&dongle_align,4 , iovbuf, +brcmu_mkiovar ("bus:txglomalign" , (char *)&dongle_align,4 , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {
@@ -3691,7 +3692,7 @@ wl_dongle_glom(struct net_device *ndev, u32 glom, u32 dongle_align) goto dongle_glom_out; }/* disable glom option per default */ -bcm_mkiovar ("bus:txglom" , (char *)&glom,4 , iovbuf,sizeof (iovbuf)); +brcmu_mkiovar ("bus:txglom" , (char *)&glom,4 , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {WL_ERR ("txglom error (%d)\n" , err);
@@ -3709,7 +3710,7 @@ wl_dongle_offload(struct net_device *ndev, s32 arpoe, s32 arp_ol)s32 err =0 ;/* Set ARP offload */ -bcm_mkiovar ("arpoe" , (char *)&arpoe,4 , iovbuf,sizeof (iovbuf)); +brcmu_mkiovar ("arpoe" , (char *)&arpoe,4 , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (err) {if (err == -EOPNOTSUPP )
@@ -3719,7 +3720,7 @@ wl_dongle_offload(struct net_device *ndev, s32 arpoe, s32 arp_ol) goto dongle_offload_out; } -bcm_mkiovar ("arp_ol" , (char *)&arp_ol,4 , iovbuf,sizeof (iovbuf)); +brcmu_mkiovar ("arp_ol" , (char *)&arp_ol,4 , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (err) {if (err == -EOPNOTSUPP )
@@ -3832,7 +3833,7 @@ static s32 wl_dongle_filter(struct net_device *ndev, u32 filter_mode) }/* set mode to allow pattern */ -bcm_mkiovar ("pkt_filter_mode" , (char *)&filter_mode,4 , iovbuf, +brcmu_mkiovar ("pkt_filter_mode" , (char *)&filter_mode,4 , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (err) {
@@ -3859,7 +3860,7 @@ static s32 wl_dongle_eventmsg(struct net_device *ndev)WL_TRACE ("Enter\n" );/* Setup event_msgs */ -bcm_mkiovar ("event_msgs" , eventmask,WL_EVENTING_MASK_LEN , iovbuf, +brcmu_mkiovar ("event_msgs" , eventmask,WL_EVENTING_MASK_LEN , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_GET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {
@@ -3888,7 +3889,7 @@ static s32 wl_dongle_eventmsg(struct net_device *ndev)setbit (eventmask,WLC_E_JOIN_START );setbit (eventmask,WLC_E_SCAN_COMPLETE ); -bcm_mkiovar ("event_msgs" , eventmask,WL_EVENTING_MASK_LEN , iovbuf, +brcmu_mkiovar ("event_msgs" , eventmask,WL_EVENTING_MASK_LEN , iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {
@@ -3914,7 +3915,7 @@ wl_dongle_roam(struct net_device *ndev, u32 roamvar, u32 bcn_timeout)* off to report link down */ if (roamvar) { -bcm_mkiovar ("bcn_timeout" , (char *)&bcn_timeout, +brcmu_mkiovar ("bcn_timeout" , (char *)&bcn_timeout,sizeof (bcn_timeout), iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {
@@ -3928,7 +3929,7 @@ wl_dongle_roam(struct net_device *ndev, u32 roamvar, u32 bcn_timeout)* to take care of roaming */ WL_INFO ("Internal Roaming = %s\n" , roamvar ?"Off" :"On" ); -bcm_mkiovar ("roam_off" , (char *)&roamvar, +brcmu_mkiovar ("roam_off" , (char *)&roamvar,sizeof (roamvar), iovbuf,sizeof (iovbuf)); err =wl_dev_ioctl (ndev,WLC_SET_VAR , iovbuf,sizeof (iovbuf));if (unlikely (err)) {
drivers/staging/brcm80211/brcmfmac/wl_iw.c +17 -14
@@ -230,7 +230,8 @@ static int dev_wlc_intvar_set(struct net_device *dev, char *name, int val)uint len; val =cpu_to_le32 (val); - len =bcm_mkiovar (name, (char *)(&val),sizeof (val), buf,sizeof (buf)); + len =brcmu_mkiovar (name, (char *)(&val),sizeof (val), buf, +sizeof (buf));ASSERT (len);return dev_wlc_ioctl (dev,WLC_SET_VAR , buf, len);
@@ -244,7 +245,7 @@ dev_iw_iovar_setbuf(struct net_device *dev, {int iolen; - iolen =bcm_mkiovar (iovar, param, paramlen, bufptr, buflen); + iolen =brcmu_mkiovar (iovar, param, paramlen, bufptr, buflen);ASSERT (iolen);if (iolen ==0 )
@@ -260,7 +261,7 @@ dev_iw_iovar_getbuf(struct net_device *dev, {int iolen; - iolen =bcm_mkiovar (iovar, param, paramlen, bufptr, buflen); + iolen =brcmu_mkiovar (iovar, param, paramlen, bufptr, buflen);ASSERT (iolen);return dev_wlc_ioctl (dev,WLC_GET_VAR , bufptr, buflen);
@@ -274,7 +275,7 @@ dev_wlc_bufvar_set(struct net_device *dev, char *name, char *buf, int len)static char ioctlbuf[MAX_WLIW_IOCTL_LEN ];uint buflen; - buflen =bcm_mkiovar (name, buf, len, ioctlbuf,sizeof (ioctlbuf)); + buflen =brcmu_mkiovar (name, buf, len, ioctlbuf,sizeof (ioctlbuf));ASSERT (buflen);return dev_wlc_ioctl (dev,WLC_SET_VAR , ioctlbuf, buflen);
@@ -288,7 +289,7 @@ dev_wlc_bufvar_get(struct net_device *dev, char *name, char *buf, int buflen)int error;uint len; - len =bcm_mkiovar (name,NULL ,0 , ioctlbuf,sizeof (ioctlbuf)); + len =brcmu_mkiovar (name,NULL ,0 , ioctlbuf,sizeof (ioctlbuf));ASSERT (len); error = dev_wlc_ioctl(dev, WLC_GET_VAR, (void *)ioctlbuf,
@@ -311,7 +312,7 @@ static int dev_wlc_intvar_get(struct net_device *dev, char *name, int *retval)uint data_null; len = -bcm_mkiovar (name, (char *)(&data_null),0 , (char *)(&var), +brcmu_mkiovar (name, (char *)(&data_null),0 , (char *)(&var),sizeof (var.buf));ASSERT (len); error =dev_wlc_ioctl (dev,WLC_GET_VAR , (void *)&var, len);
@@ -396,7 +397,7 @@ wl_iw_set_freq(struct net_device *dev,if (fwrq->m >4000 && fwrq->m <5000 ) sf =WF_CHAN_FACTOR_4_G ; - chan =bcm_mhz2channel (fwrq->m, sf); + chan =brcmu_mhz2channel (fwrq->m, sf); } chan =cpu_to_le32 (chan);
@@ -1447,11 +1448,11 @@ wl_iw_handle_scanresults_ies(char **event_p, char *end, event = *event_p;if (bi->ie_length) { -bcm_tlv_t *ie; +struct brcmu_tlv *ie;u8 *ptr = ((u8 *) bi) +sizeof (wl_bss_info_t);int ptr_len = bi->ie_length; - ie =bcm_parse_tlvs (ptr, ptr_len,DOT11_MNG_RSN_ID ); + ie =brcmu_parse_tlvs (ptr, ptr_len,DOT11_MNG_RSN_ID );if (ie) { iwe.cmd =IWEVGENIE ; iwe.u.data.length = ie->len +2 ;
@@ -1461,7 +1462,8 @@ wl_iw_handle_scanresults_ies(char **event_p, char *end, } ptr = ((u8 *) bi) +sizeof (wl_bss_info_t); -while ((ie =bcm_parse_tlvs (ptr, ptr_len,DOT11_MNG_WPA_ID ))) { +while ((ie =brcmu_parse_tlvs ( + ptr, ptr_len,DOT11_MNG_WPA_ID ))) {if (ie_is_wps_ie (((u8 **)&ie), &ptr, &ptr_len)) { iwe.cmd =IWEVGENIE ; iwe.u.data.length = ie->len +2 ;
@@ -1474,7 +1476,8 @@ wl_iw_handle_scanresults_ies(char **event_p, char *end, ptr = ((u8 *) bi) +sizeof (wl_bss_info_t); ptr_len = bi->ie_length; -while ((ie =bcm_parse_tlvs (ptr, ptr_len,DOT11_MNG_WPA_ID ))) { +while ((ie =brcmu_parse_tlvs ( + ptr, ptr_len,DOT11_MNG_WPA_ID ))) {if (ie_is_wpa_ie (((u8 **)&ie), &ptr, &ptr_len)) { iwe.cmd =IWEVGENIE ; iwe.u.data.length = ie->len +2 ;
@@ -2199,8 +2202,8 @@ wl_iw_set_txpow(struct net_device *dev,else txpwrmw = (u16 ) vwrq->value; - error = -dev_wlc_intvar_set (dev,"qtxpower" , (int )(bcm_mw_to_qdbm (txpwrmw))); + error =dev_wlc_intvar_set (dev,"qtxpower" , + (int )(brcmu_mw_to_qdbm (txpwrmw)));return error; }
@@ -2224,7 +2227,7 @@ wl_iw_get_txpow(struct net_device *dev, disable =le32_to_cpu (disable); result = (u8) (txpwrdbm & ~WL_TXPWR_OVERRIDE ); - vwrq->value = (s32 )bcm_qdbm_to_mw (result); + vwrq->value = (s32 )brcmu_qdbm_to_mw (result); vwrq->fixed =0 ; vwrq->disabled = (disable & (WL_RADIO_SW_DISABLE |WL_RADIO_HW_DISABLE )) ?1 :0 ;
drivers/staging/brcm80211/brcmsmac/bcmdma.h +3 -3
@@ -103,11 +103,11 @@ typedef uint(*di_txactive_t) (struct dma_pub *dmah);typedef void (*di_txrotate_t ) (struct dma_pub *dmah);typedef void (*di_counterreset_t ) (struct dma_pub *dmah);typedef uint (*di_ctrlflags_t ) (struct dma_pub *dmah,uint mask,uint flags); -typedef char *(*di_dump_t ) (struct dma_pub *dmah,struct bcmstrbuf *b, +typedef char *(*di_dump_t ) (struct dma_pub *dmah,struct brcmu_strbuf *b,bool dumpring); -typedef char *(*di_dumptx_t ) (struct dma_pub *dmah,struct bcmstrbuf *b, +typedef char *(*di_dumptx_t ) (struct dma_pub *dmah,struct brcmu_strbuf *b,bool dumpring); -typedef char *(*di_dumprx_t ) (struct dma_pub *dmah,struct bcmstrbuf *b, +typedef char *(*di_dumprx_t ) (struct dma_pub *dmah,struct brcmu_strbuf *b,bool dumpring);typedef uint (*di_rxactive_t ) (struct dma_pub *dmah);typedef uint (*di_txpending_t ) (struct dma_pub *dmah);
drivers/staging/brcm80211/brcmsmac/bcmsrom.c +2 -2
@@ -988,7 +988,7 @@ sprom_read_pci(struct si_pub *sih, u16 *sprom, uint wordoff,/* fixup the endianness so crc8 will pass */ htol16_buf (buf, nwords *2 ); -if (bcm_crc8 ((u8 *) buf, nwords *2 ,CRC8_INIT_VALUE ) != +if (brcmu_crc8 ((u8 *) buf, nwords *2 ,CRC8_INIT_VALUE ) !=CRC8_GOOD_VALUE ) {/* DBG only pci always read srom4 first, then srom8/9 */ err =1 ;
@@ -1028,7 +1028,7 @@ static int otp_read_pci(struct si_pub *sih, u16 *buf, uint bufsz)/* fixup the endianness so crc8 will pass */ htol16_buf (buf, bufsz); -if (bcm_crc8 ((u8 *) buf,SROM4_WORDS *2 ,CRC8_INIT_VALUE ) != +if (brcmu_crc8 ((u8 *) buf,SROM4_WORDS *2 ,CRC8_INIT_VALUE ) !=CRC8_GOOD_VALUE ) { err =1 ; }
drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c +1 -1
@@ -608,7 +608,7 @@ brcms_ops_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, wl->pub->global_ampdu = &(scb->scb_ampdu); wl->pub->global_ampdu->scb = scb; wl->pub->global_ampdu->max_pdu =16 ; -bcm_pktq_init (&scb->scb_ampdu.txq,AMPDU_MAX_SCB_TID , +brcmu_pktq_init (&scb->scb_ampdu.txq,AMPDU_MAX_SCB_TID ,AMPDU_MAX_SCB_TID *PKTQ_LEN_DEFAULT ); sta->ht_cap.ht_supported = true;
drivers/staging/brcm80211/brcmsmac/dma.c +5 -5
@@ -923,7 +923,7 @@ static void *_dma_rx(dma_info_t *di)if ((di->dma.dmactrlflags &DMA_CTRL_RXMULTI ) ==0 ) {DMA_ERROR (("%s: dma_rx: bad frame length (%d)\n" , di->name, len)); -bcm_pkt_buf_free_skb (head); +brcmu_pkt_buf_free_skb (head); di->dma.rxgiants++; goto next_frame; }
@@ -971,7 +971,7 @@ static bool _dma_rxfill(dma_info_t *di)size to be allocated */ - p =bcm_pkt_buf_get_skb (di->rxbufsize + extra_offset); + p =brcmu_pkt_buf_get_skb (di->rxbufsize + extra_offset);if (p ==NULL ) { DMA_ERROR(("%s: dma_rxfill: out of rxbufs\n",
@@ -1069,7 +1069,7 @@ static void _dma_rxreclaim(dma_info_t *di)DMA_TRACE (("%s: dma_rxreclaim\n" , di->name));while ((p =_dma_getnextrxp (di, true))) -bcm_pkt_buf_free_skb (p); +brcmu_pkt_buf_free_skb (p); }static void *_dma_getnextrxp (dma_info_t *di,bool forceall)
@@ -1303,7 +1303,7 @@ static void dma64_txreclaim(dma_info_t *di, txd_range_t range)while ((p =dma64_getnexttxp (di, range))) {/* For unframed data, we don't have any packets to free */ if (!(di->dma.dmactrlflags &DMA_CTRL_UNFRAMED )) -bcm_pkt_buf_free_skb (p); +brcmu_pkt_buf_free_skb (p); } }
@@ -1640,7 +1640,7 @@ static int dma64_txfast(dma_info_t *di, struct sk_buff *p0, outoftxd:DMA_ERROR (("%s: dma_txfast: out of txds !!!\n" , di->name)); -bcm_pkt_buf_free_skb (p0); +brcmu_pkt_buf_free_skb (p0); di->dma.txavail =0 ; di->dma.txnobuf++;return -1 ;
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_int.h +1 -1
@@ -257,7 +257,7 @@ typedef enum {#define PHY_CHAIN_TX_DISABLE_TEMP 115#define PHY_HYSTERESIS_DELTATEMP 5 -#define PHY_BITSCNT (x) bcm_bitcount((u8 *)&(x), sizeof(u8)) +#define PHY_BITSCNT (x) brcmu_bitcount((u8 *)&(x), sizeof(u8))#define MOD_PHY_REG (pi, phy_type, reg_name, field, value) \ mod_phy_reg(pi, phy_type##_##reg_name, phy_type##_##reg_name##_##field##_MASK, \
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c +7 -7
@@ -591,7 +591,7 @@ wlc_sendampdu(struct ampdu_info *ampdu, struct wlc_txq_info *qi, len =roundup (len,4 ); ampdu_len += (len + (ndelim +1 ) *AMPDU_DELIMITER_LEN ); - dma_len += (u16 )bcm_pkttotlen (p); + dma_len += (u16 )brcmu_pkttotlen (p); BCMMSG(wlc->wiphy, "wl%d: ampdu_len %d" " seg_cnt %d null delim %d\n",
@@ -686,8 +686,8 @@ wlc_sendampdu(struct ampdu_info *ampdu, struct wlc_txq_info *qi,if ((tx_info->flags &IEEE80211_TX_CTL_AMPDU ) && ((u8) (p->priority) == tid)) { - plen = -bcm_pkttotlen (p) +AMPDU_MAX_MPDU_OVERHEAD ; + plen =brcmu_pkttotlen (p) + +AMPDU_MAX_MPDU_OVERHEAD ; plen =max (scb_ampdu->min_len, plen);if ((plen + ampdu_len) > maxlen) {
@@ -704,7 +704,7 @@ wlc_sendampdu(struct ampdu_info *ampdu, struct wlc_txq_info *qi, p =NULL ;continue ; } - p =bcm_pktq_pdeq (&qi->q, prec); + p =brcmu_pktq_pdeq (&qi->q, prec); }else { p =NULL ; }
@@ -864,7 +864,7 @@ wlc_ampdu_dotxstatus(struct ampdu_info *ampdu, struct scb *scb, tx_info =IEEE80211_SKB_CB (p); txh = (d11txh_t *) p->data; mcl =le16_to_cpu (txh->MacTxControlLow); -bcm_pkt_buf_free_skb (p); +brcmu_pkt_buf_free_skb (p);/* break out if last packet of ampdu */ if (((mcl &TXC_AMPDU_MASK ) >>TXC_AMPDU_SHIFT ) ==TXC_AMPDU_LAST )
@@ -993,7 +993,7 @@ wlc_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, txs->phyerr);if (WL_ERROR_ON ()) { -bcm_prpkt ("txpkt (AMPDU)" , p); +brcmu_prpkt ("txpkt (AMPDU)" , p);wlc_print_txdesc ((d11txh_t *) p->data); }wlc_print_txstatus (txs);
@@ -1239,7 +1239,7 @@ void wlc_ampdu_flush(struct wlc_info *wlc, ampdu_pars.sta = sta; ampdu_pars.tid = tid;for (prec =0 ; prec < pq->num_prec; prec++) { -bcm_pktq_pflush (pq, prec, true, cb_del_ampdu_pkt, +brcmu_pktq_pflush (pq, prec, true, cb_del_ampdu_pkt, (void *)&du_pars); }wlc_inval_dma_pkts (wlc->hw, sta, dma_cb_fn_ampdu);
drivers/staging/brcm80211/brcmsmac/wlc_bmac.c +1 -1
@@ -922,7 +922,7 @@ int wlc_bmac_attach(struct wlc_info *wlc, u16 vendor, u16 device, uint unit, err =21 ; goto fail; } -bcm_ether_atoe (macaddr, wlc_hw->etheraddr); +brcmu_ether_atoe (macaddr, wlc_hw->etheraddr);if (is_broadcast_ether_addr (wlc_hw->etheraddr) ||is_zero_ether_addr (wlc_hw->etheraddr)) { wiphy_err(wiphy, "wl%d: wlc_bmac_attach: bad macaddr %s\n",
drivers/staging/brcm80211/brcmsmac/wlc_channel.c +1 -1
@@ -1494,7 +1494,7 @@ wlc_valid_chanspec_ext(wlc_cm_info_t *wlc_cm, chanspec_t chspec, bool dualband)u8 channel =CHSPEC_CHANNEL (chspec);/* check the chanspec */ -if (bcm_chspec_malformed (chspec)) { +if (brcmu_chspec_malformed (chspec)) {wiphy_err (wlc->wiphy,"wl%d: malformed chanspec 0x%x\n" , wlc->pub->unit, chspec);return false;
drivers/staging/brcm80211/brcmsmac/wlc_main.c +26 -26
166 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/wlc_main.h +4 -4
@@ -33,7 +33,7 @@#define EDCF_AIFSN_MIN 1#define FRAGNUM_MASK 0xF -#define WLC_BITSCNT (x) bcm_bitcount((u8 *)&(x), sizeof(u8)) +#define WLC_BITSCNT (x) brcmu_bitcount((u8 *)&(x), sizeof(u8))/* Maximum wait time for a MAC suspend */ #define WLC_MAX_MAC_SUSPEND 83000/* uS: 83mS is max packet time (64KB ampdu @ 6Mbps) */
@@ -355,7 +355,7 @@ struct pkt_cb {/* module control blocks */ struct modulecb {char name[32 ];/* module name : NULL indicates empty array member */ -const bcm_iovar_t *iovars;/* iovar table */ +const struct brcmu_iovar *iovars;/* iovar table */ void *hdl;/* handle passed when handler 'doiovar' is called */ watchdog_fn_t watchdog_fn;/* watchdog handler */ iovar_fn_t iovar_fn;/* iovar handler */
@@ -812,8 +812,8 @@ extern void wlc_inval_dma_pkts(struct wlc_hw_info *hw, void (*dma_callback_fn));#if defined(BCMDBG ) -extern void wlc_dump_ie (struct wlc_info *wlc,bcm_tlv_t *ie, -struct bcmstrbuf *b); +extern void wlc_dump_ie (struct wlc_info *wlc,struct brcmu_tlv *ie, +struct brcmu_strbuf *b);#endif extern void wlc_reprate_init (struct wlc_info *wlc);
drivers/staging/brcm80211/brcmsmac/wlc_pub.h +2 -2
@@ -219,7 +219,7 @@ struct wlc_if;/* watchdog down and dump callback function proto's */ typedef int (*watchdog_fn_t ) (void *handle);typedef int (*down_fn_t ) (void *handle); -typedef int (*dump_fn_t ) (void *handle,struct bcmstrbuf *b); +typedef int (*dump_fn_t ) (void *handle,struct brcmu_strbuf *b);/* IOVar handler *
@@ -234,7 +234,7 @@ typedef int (*dump_fn_t) (void *handle, struct bcmstrbuf *b);* * All pointers may point into the same buffer. */ -typedef int (*iovar_fn_t ) (void *handle,const bcm_iovar_t *vi, +typedef int (*iovar_fn_t ) (void *handle,const struct brcmu_iovar *vi,u32 actionid,const char *name,void *params,uint plen,void *arg,int alen,int vsize,struct wlc_if *wlcif);
drivers/staging/brcm80211/brcmsmac/wlc_types.h +1 -1
@@ -54,7 +54,7 @@ struct bmac_pmq;struct d11init ;struct dma_pub ;struct wlc_bsscfg ; -struct bcmstrbuf ; +struct brcmu_strbuf ;struct si_pub ;/* brcm_msg_level is a bit vector with defs in bcmdefs.h */
drivers/staging/brcm80211/include/bcmutils.h +68 -79
231 lines not on this page · raw message
drivers/staging/brcm80211/include/bcmwifi.h +6 -6
@@ -14,8 +14,8 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef _bcmwifi_h_ -#define _bcmwifi_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 */
@@ -141,14 +141,14 @@ typedef u16 chanspec_t;* combination could be legal given any set of circumstances. * RETURNS: true is the chanspec is malformed, false if it looks good. */ -extern bool bcm_chspec_malformed (chanspec_t chanspec); +extern bool brcmu_chspec_malformed (chanspec_t chanspec);/* * This function returns the channel number that control traffic is being sent on, for legacy * channels this is just the channel number, for 40MHZ channels it is the upper or lowre 20MHZ * sideband depending on the chanspec selected */ -extern u8 bcm_chspec_ctlchan (chanspec_t chspec); +extern u8 brcmu_chspec_ctlchan (chanspec_t chspec);/* * Return the channel number for a given frequency and base frequency.
@@ -169,7 +169,7 @@ extern u8 bcm_chspec_ctlchan(chanspec_t chspec);* * Reference 802.11 REVma, section 17.3.8.3, and 802.11B section 18.4.6.2 */ -extern int bcm_mhz2channel (uint freq,uint start_factor); +extern int brcmu_mhz2channel (uint freq,uint start_factor);/* Enumerate crypto algorithms */ #define CRYPTO_ALGO_OFF 0
@@ -239,4 +239,4 @@ typedef struct _pmkid_cand_list {typedef u8 ac_bitmap_t ; -#endif /* _bcmwifi_h_ */ +#endif /* _brcmu_wifi_h_ */
drivers/staging/brcm80211/util/bcmutils.c +69 -66
395 lines not on this page · raw message
drivers/staging/brcm80211/util/bcmwifi.c +6 -6
@@ -26,7 +26,7 @@* combination could be legal given any set of circumstances. * RETURNS: true is the chanspec is malformed, false if it looks good. */ -bool bcm_chspec_malformed (chanspec_t chanspec) +bool brcmu_chspec_malformed (chanspec_t chanspec) {/* must be 2G or 5G band */ if (!CHSPEC_IS5G (chanspec) && !CHSPEC_IS2G (chanspec))
@@ -46,14 +46,14 @@ bool bcm_chspec_malformed(chanspec_t chanspec)return false; } -EXPORT_SYMBOL (bcm_chspec_malformed); +EXPORT_SYMBOL (brcmu_chspec_malformed);/* * This function returns the channel number that control traffic is being sent on, for legacy * channels this is just the channel number, for 40MHZ channels it is the upper or lowre 20MHZ * sideband depending on the chanspec selected */ -u8 bcm_chspec_ctlchan (chanspec_t chspec) +u8 brcmu_chspec_ctlchan (chanspec_t chspec) {u8 ctl_chan;
@@ -76,7 +76,7 @@ u8 bcm_chspec_ctlchan(chanspec_t chspec)return ctl_chan; } -EXPORT_SYMBOL (bcm_chspec_ctlchan); +EXPORT_SYMBOL (brcmu_chspec_ctlchan);/* * Return the channel number for a given frequency and base frequency.
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(bcm_chspec_ctlchan);* * Reference 802.11 REVma, section 17.3.8.3, and 802.11B section 18.4.6.2 */ -int bcm_mhz2channel (uint freq,uint start_factor) +int brcmu_mhz2channel (uint freq,uint start_factor) {int ch =-1 ;uint base;
@@ -133,5 +133,5 @@ int bcm_mhz2channel(uint freq, uint start_factor)return ch; } -EXPORT_SYMBOL (bcm_mhz2channel); +EXPORT_SYMBOL (brcmu_mhz2channel);
Signature · 1 line
1.7.4.1
PATCH 67/83 staging: brcm80211: renamed utility module related files
In reply to Roland VossenCode cleanup.
---
drivers/staging/brcm80211/Makefile | 2 +-
drivers/staging/brcm80211/brcmfmac/bcmsdh.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 4 ++--
.../brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/dhd_common.c | 4 ++--
.../staging/brcm80211/brcmfmac/dhd_custom_gpio.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/wl_iw.c | 4 ++--
drivers/staging/brcm80211/brcmsmac/aiutils.c | 2 +-
drivers/staging/brcm80211/brcmsmac/bcmotp.c | 2 +-
drivers/staging/brcm80211/brcmsmac/bcmsrom.c | 2 +-
.../staging/brcm80211/brcmsmac/brcms_mac80211.c | 4 ++--
drivers/staging/brcm80211/brcmsmac/dma.c | 2 +-
drivers/staging/brcm80211/brcmsmac/nicpci.c | 2 +-
drivers/staging/brcm80211/brcmsmac/nvram.c | 2 +-
.../staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h | 2 +-
.../staging/brcm80211/brcmsmac/phy/wlc_phy_int.h | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_alloc.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_antsel.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_bmac.c | 4 ++--
drivers/staging/brcm80211/brcmsmac/wlc_channel.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_main.c | 4 ++--
drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.c | 4 ++--
drivers/staging/brcm80211/brcmsmac/wlc_pmu.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_pub.h | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_rate.c | 2 +-
drivers/staging/brcm80211/brcmsmac/wlc_stf.c | 4 ++--
.../staging/brcm80211/{util => brcmutil}/Makefile | 6 +++---
.../{util/bcmutils.c => brcmutil/utils.c} | 2 +-
.../brcm80211/{util/bcmwifi.c => brcmutil/wifi.c} | 4 ++--
.../include/{bcmutils.h => brcmu_utils.h} | 0
.../brcm80211/include/{bcmwifi.h => brcmu_wifi.h} | 0
37 files changed, 54 insertions(+), 54 deletions(-)
rename drivers/staging/brcm80211/{util => brcmutil}/Makefile (94%)
rename drivers/staging/brcm80211/{util/bcmutils.c => brcmutil/utils.c} (99%)
rename drivers/staging/brcm80211/{util/bcmwifi.c => brcmutil/wifi.c} (98%)
rename drivers/staging/brcm80211/include/{bcmutils.h => brcmu_utils.h} (100%)
rename drivers/staging/brcm80211/include/{bcmwifi.h => brcmu_wifi.h} (100%)drivers/staging/brcm80211/Makefile +1 -1
@@ -19,6 +19,6 @@ subdir-ccflags-y := -DBCMDMA32 subdir-ccflags-$(CONFIG_BRCMDBG) += -DBCMDBG -DBCMDBG_ASSERT -obj-$(CONFIG_BRCMUTIL) += util/ +obj-$(CONFIG_BRCMUTIL) += brcmutil/ obj-$(CONFIG_BRCMFMAC) += brcmfmac/ obj-$(CONFIG_BRCMSMAC) += brcmsmac/
drivers/staging/brcm80211/brcmfmac/bcmsdh.c +2 -2
@@ -21,8 +21,8 @@#include <linux/sched.h> #include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <bcmsoc.h> #include <bcmsdh.h> /* BRCM API for SDIO
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c +2 -2
@@ -27,8 +27,8 @@#include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #if defined(OOB_INTR_ONLY )#include <linux/irq.h>
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +2 -2
@@ -18,8 +18,8 @@#include <linux/mmc/sdio.h> #include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* ioctl/iovars */
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c +2 -2
@@ -18,8 +18,8 @@#include <linux/netdevice.h> #include <net/cfg80211.h> #include <bcmdefs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* to get msglevel bit values */
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c +2 -2
@@ -19,8 +19,8 @@#include <linux/sched.h> #include <bcmdefs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <dngl_stats.h> #include <dhd.h>
drivers/staging/brcm80211/brcmfmac/dhd_common.c +2 -2
@@ -17,10 +17,10 @@#include <linux/string.h> #include <linux/sched.h> #include <bcmdefs.h> -#include <bcmwifi.h> +#include <brcmu_wifi.h> #include <linux/netdevice.h> #include <asm/unaligned.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <dngl_stats.h> #include <dhd.h> #include <dhd_bus.h>
drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c +2 -2
@@ -16,9 +16,9 @@#include <linux/netdevice.h> #include <linux/sched.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmdefs.h> -#include <bcmwifi.h> +#include <brcmu_wifi.h> #include <dngl_stats.h> #include <dhd.h>
drivers/staging/brcm80211/brcmfmac/dhd_linux.c +2 -2
@@ -33,8 +33,8 @@#include <linux/uaccess.h> #include <net/cfg80211.h> #include <bcmdefs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <dngl_stats.h> #include <dhd.h>
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +2 -2
@@ -25,8 +25,8 @@#include <bcmsdh.h> #include <bcmdefs.h> -#include <bcmwifi.h> -#include <bcmutils.h> +#include <brcmu_wifi.h> +#include <brcmu_utils.h> #include <bcmdevs.h> #include <bcmsoc.h>
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +2 -2
@@ -18,9 +18,9 @@#include <linux/if_arp.h> #include <linux/sched.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmdefs.h> -#include <bcmwifi.h> +#include <brcmu_wifi.h> #include <asm/uaccess.h>
drivers/staging/brcm80211/brcmfmac/wl_iw.c +2 -2
@@ -21,8 +21,8 @@#include <linux/etherdevice.h> #include <linux/wireless.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <linux/if_arp.h> #include <asm/uaccess.h>
drivers/staging/brcm80211/brcmsmac/aiutils.c +1 -1
@@ -20,7 +20,7 @@#include <bcmdefs.h> #include <linux/module.h> #include <linux/pci.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include <bcmsoc.h> #include <chipcommon.h>
drivers/staging/brcm80211/brcmsmac/bcmotp.c +1 -1
@@ -23,7 +23,7 @@#include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include <bcmsoc.h> #include <chipcommon.h>
drivers/staging/brcm80211/brcmsmac/bcmsrom.c +1 -1
@@ -21,7 +21,7 @@#include <linux/pci.h> #include <stdarg.h> #include "wlc_types.h" -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmsoc.h> #include <chipcommon.h> #include <bcmdevs.h>
drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c +2 -2
@@ -26,8 +26,8 @@#include <linux/firmware.h> #include <net/mac80211.h> #include <bcmdefs.h> -#include <bcmwifi.h> -#include <bcmutils.h> +#include <brcmu_wifi.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <nicpci.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/dma.c +1 -1
@@ -21,7 +21,7 @@#include <bcmdefs.h> #include <bcmdevs.h> #include <bcmsoc.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include "wlc_types.h"
drivers/staging/brcm80211/brcmsmac/nicpci.c +1 -1
@@ -18,7 +18,7 @@#include <linux/string.h> #include <linux/pci.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <aiutils.h> #include <bcmsoc.h>
drivers/staging/brcm80211/brcmsmac/nvram.c +1 -1
@@ -17,7 +17,7 @@#include <linux/slab.h> #include <linux/string.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <chipcommon.h> #include <bcmdevs.h>
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h +1 -1
@@ -25,7 +25,7 @@#include <d11.h> #include <wlc_phy_shim.h> #include <net/mac80211.h> /* struct wiphy */ -#include "bcmwifi.h" /* chanspec_t */ +#include "brcmu_wifi.h" /* chanspec_t */ #define IDCODE_VER_MASK 0x0000000f#define IDCODE_VER_SHIFT 0
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_int.h +1 -1
@@ -19,7 +19,7 @@#include <linux/kernel.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <wlc_phy_hal.h>
drivers/staging/brcm80211/brcmsmac/wlc_alloc.c +1 -1
@@ -17,7 +17,7 @@#include <linux/types.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c +1 -1
@@ -17,7 +17,7 @@#include <net/mac80211.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include "bcmdma.h" #include <bcmdma.h>
drivers/staging/brcm80211/brcmsmac/wlc_antsel.c +1 -1
@@ -21,7 +21,7 @@#include <linux/pci.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <aiutils.h> #include <bcmdevs.h>
drivers/staging/brcm80211/brcmsmac/wlc_bmac.c +2 -2
@@ -23,11 +23,11 @@#include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmwifi.h> +#include <brcmu_wifi.h> #include <aiutils.h> #include <bcmsrom.h> #include <bcmotp.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <chipcommon.h> #include <nicpci.h>
drivers/staging/brcm80211/brcmsmac/wlc_channel.c +1 -1
@@ -20,7 +20,7 @@#include <linux/pci.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include <aiutils.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_main.c +2 -2
@@ -21,8 +21,8 @@#include <bcmdefs.h> #include <bcmdevs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <bcmnvram.h> #include <aiutils.h> #include <bcmsrom.h>
drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.c +2 -2
@@ -25,8 +25,8 @@#include <linux/module.h> #include <bcmdefs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> #include <aiutils.h> #include <chipcommon.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_pmu.c +1 -1
@@ -20,7 +20,7 @@#include <bcmdevs.h> #include <chipcommon.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmnvram.h> #include "wlc_pmu.h"
drivers/staging/brcm80211/brcmsmac/wlc_pub.h +1 -1
@@ -18,7 +18,7 @@#define _wlc_pub_h_#include "wlc_types.h" /* forward structure declarations */ -#include "bcmwifi.h" /* for chanspec_t */ +#include "brcmu_wifi.h" /* for chanspec_t */ #define WLC_NUMRATES 16/* max # of rates in a rateset */ #define MAXMULTILIST 32/* max # multicast addresses */
drivers/staging/brcm80211/brcmsmac/wlc_rate.c +1 -1
@@ -17,7 +17,7 @@#include <linux/module.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_stf.c +2 -2
@@ -18,9 +18,9 @@#include <linux/module.h> #include <bcmdefs.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <aiutils.h> -#include <bcmwifi.h> +#include <brcmu_wifi.h> #include <bcmnvram.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmutil/Makefile renamed from drivers/staging/brcm80211/util/Makefile +3 -3
@@ -16,12 +16,12 @@ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ccflags-y := \ - -Idrivers/staging/brcm80211/util \ + -Idrivers/staging/brcm80211/brcmutil \ -Idrivers/staging/brcm80211/include BRCMUTIL_OFILES := \ - bcmutils.o \ - bcmwifi.o + utils.o \ + wifi.o MODULEPFX := brcmutil
drivers/staging/brcm80211/brcmutil/utils.c renamed from drivers/staging/brcm80211/util/bcmutils.c +1 -1
@@ -23,7 +23,7 @@#include <linux/sched.h> #include <bcmdefs.h> #include <stdarg.h> -#include <bcmutils.h> +#include <brcmu_utils.h> #include <bcmdevs.h> MODULE_AUTHOR ("Broadcom Corporation" );
drivers/staging/brcm80211/brcmutil/wifi.c renamed from drivers/staging/brcm80211/util/bcmwifi.c +2 -2
@@ -17,8 +17,8 @@#include <linux/kernel.h> #include <linux/module.h> #include <bcmdefs.h> -#include <bcmutils.h> -#include <bcmwifi.h> +#include <brcmu_utils.h> +#include <brcmu_wifi.h> /* * Verify the chanspec is using a legal set of parameters, i.e. that the
drivers/staging/brcm80211/include/brcmu_utils.h renamed from drivers/staging/brcm80211/include/bcmutils.h +0 -0
drivers/staging/brcm80211/include/brcmu_wifi.h renamed from drivers/staging/brcm80211/include/bcmwifi.h +0 -0
Signature · 1 line
1.7.4.1
PATCH 68/83 staging: brcm80211: remove nvram related source files
In reply to Roland VossenFrom: Arend van Spriel <[email protected]>
nvram.c is intended for devices with configuration stored in flash. This is not required for the softmac driver nor the fullmac driver so it has been removed.
--- drivers/staging/brcm80211/brcmsmac/Makefile | 3 +- drivers/staging/brcm80211/brcmsmac/aiutils.c | 8 +- drivers/staging/brcm80211/brcmsmac/bcmnvram.h | 149 -------------- drivers/staging/brcm80211/brcmsmac/bcmsrom.c | 124 +----------- .../staging/brcm80211/brcmsmac/brcms_mac80211.c | 19 -- drivers/staging/brcm80211/brcmsmac/nicpci.c | 3 +- drivers/staging/brcm80211/brcmsmac/nvram.c | 215 -------------------- .../staging/brcm80211/brcmsmac/phy/wlc_phy_cmn.c | 3 +- .../staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c | 4 +- drivers/staging/brcm80211/brcmsmac/wlc_antsel.c | 1 - drivers/staging/brcm80211/brcmsmac/wlc_bmac.c | 1 - drivers/staging/brcm80211/brcmsmac/wlc_channel.c | 1 - drivers/staging/brcm80211/brcmsmac/wlc_main.c | 44 ++++- drivers/staging/brcm80211/brcmsmac/wlc_pmu.c | 3 +- drivers/staging/brcm80211/brcmsmac/wlc_pub.h | 6 +- drivers/staging/brcm80211/brcmsmac/wlc_stf.c | 1 - 16 files changed, 62 insertions(+), 523 deletions(-) delete mode 100644 drivers/staging/brcm80211/brcmsmac/bcmnvram.h delete mode 100644 drivers/staging/brcm80211/brcmsmac/nvram.c
drivers/staging/brcm80211/brcmsmac/Makefile +1 -2
@@ -50,8 +50,7 @@ BRCMSMAC_OFILES := \ bcmotp.o \ bcmsrom.o \ dma.o \ - nicpci.o \ - nvram.o + nicpci.o MODULEPFX := brcmsmac
drivers/staging/brcm80211/brcmsmac/aiutils.c +2 -6
@@ -28,9 +28,10 @@/* ********** from siutils.c *********** */ #include <nicpci.h> -#include <bcmnvram.h> #include <bcmsrom.h> #include <wlc_pmu.h> +#include <wlc_scb.h> +#include <wlc_pub.h> /* slow_clk_ctl */ #define SCC_SS_MASK 0x00000007/* slow clock source mask */
@@ -985,9 +986,6 @@ static si_info_t *ai_doattach(si_info_t *sii, uint devid,udelay (10 ); } -/* Init nvram from flash if it exists */ -nvram_init (); -/* Init nvram from sprom/otp if they exist */ if (srom_var_init (&sii->pub, bustype, regs, vars, varsz)) {
@@ -1096,8 +1094,6 @@ void ai_detach(struct si_pub *sih) sii->regs[idx] =NULL ; } -nvram_exit ();/* free up nvram buffers */ -if (sih->bustype ==PCI_BUS ) {if (sii->pch)pcicore_deinit (sii->pch);
drivers/staging/brcm80211/brcmsmac/bcmnvram.h deleted +0 -149
149 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/bcmsrom.c +4 -120
178 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c +0 -19
@@ -28,7 +28,6 @@#include <bcmdefs.h> #include <brcmu_wifi.h> #include <brcmu_utils.h> -#include <bcmnvram.h> #include <nicpci.h> #include "bcmdma.h"
@@ -1297,26 +1296,8 @@ static int __init brcms_module_init(void)#ifdef BCMDBG if (msglevel !=0xdeadbeef ) brcm_msg_level = msglevel; -else { -char *var =getvar (NULL ,"wl_msglevel" ); -if (var) { -unsigned long value; - - (void )strict_strtoul (var,0 , &value); - brcm_msg_level = value; - } - }if (phymsglevel !=0xdeadbeef ) phyhal_msg_level = phymsglevel; -else { -char *var =getvar (NULL ,"phy_msglevel" ); -if (var) { -unsigned long value; - - (void )strict_strtoul (var,0 , &value); - phyhal_msg_level = value; - } - }#endif /* BCMDBG */ error =pci_register_driver (&brcms_pci_driver);
drivers/staging/brcm80211/brcmsmac/nicpci.c +2 -1
@@ -19,11 +19,12 @@#include <linux/pci.h> #include <bcmdefs.h> #include <brcmu_utils.h> -#include <bcmnvram.h> #include <aiutils.h> #include <bcmsoc.h> #include <bcmdevs.h> #include <chipcommon.h> +#include <wlc_scb.h> +#include <wlc_pub.h> #include <nicpci.h> /* SPROM offsets */
drivers/staging/brcm80211/brcmsmac/nvram.c deleted +0 -215
215 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_cmn.c +1 -2
@@ -24,7 +24,6 @@#include <linux/pci.h> #include <bcmdefs.h> -#include <bcmnvram.h> #include <chipcommon.h> #include <bcmdevs.h> #include "bcmdma.h"
@@ -173,7 +172,7 @@ char *phy_getvar(phy_info_t *pi, const char *name) ; } -return nvram_get (name); +return NULL ; }int phy_getintvar (phy_info_t *pi,const char *name)
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c +3 -1
@@ -20,9 +20,11 @@#include <linux/delay.h> #include <wlc_cfg.h> #include <linux/pci.h> +#include <brcmu_utils.h> #include <aiutils.h> #include <wlc_pmu.h> -#include <bcmnvram.h> +#include <wlc_scb.h> +#include <wlc_pub.h> #include <bcmdevs.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_antsel.c +0 -1
@@ -22,7 +22,6 @@#include <bcmdefs.h> #include <brcmu_utils.h> -#include <bcmnvram.h> #include <aiutils.h> #include <bcmdevs.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_bmac.c +0 -1
@@ -28,7 +28,6 @@#include <bcmsrom.h> #include <bcmotp.h> #include <brcmu_utils.h> -#include <bcmnvram.h> #include <chipcommon.h> #include <nicpci.h> #include <bcmdma.h>
drivers/staging/brcm80211/brcmsmac/wlc_channel.c +0 -1
@@ -21,7 +21,6 @@#include <bcmdefs.h> #include <brcmu_utils.h> -#include <bcmnvram.h> #include <aiutils.h> #include "bcmdma.h"
drivers/staging/brcm80211/brcmsmac/wlc_main.c +43 -1
53 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/wlc_pmu.c +2 -1
@@ -21,7 +21,8 @@#include <bcmdevs.h> #include <chipcommon.h> #include <brcmu_utils.h> -#include <bcmnvram.h> +#include "wlc_scb.h" +#include "wlc_pub.h" #include "wlc_pmu.h" /*
drivers/staging/brcm80211/brcmsmac/wlc_pub.h +4 -2
@@ -634,8 +634,10 @@ extern void wlc_default_rateset(struct wlc_info *wlc, wlc_rateset_t *rs);struct ieee80211_sta ;extern void wlc_ampdu_flush (struct wlc_info *wlc,struct ieee80211_sta *sta,u16 tid); -int wlc_set_par (struct wlc_info *wlc,enum wlc_par_id par_id,int val); -int wlc_get_par (struct wlc_info *wlc,enum wlc_par_id par_id,int *ret_int_ptr); +extern int wlc_set_par (struct wlc_info *wlc,enum wlc_par_id par_id,int val); +extern int wlc_get_par (struct wlc_info *wlc,enum wlc_par_id par_id,int *ret_int_ptr); +extern char *getvar (char *vars,const char *name); +extern int getintvar (char *vars,const char *name);/* wlc_phy.c helper functions */ extern void wlc_set_ps_ctrl (struct wlc_info *wlc);
drivers/staging/brcm80211/brcmsmac/wlc_stf.c +0 -1
@@ -21,7 +21,6 @@#include <brcmu_utils.h> #include <aiutils.h> #include <brcmu_wifi.h> -#include <bcmnvram.h> #include "bcmdma.h" #include "wlc_types.h"
Signature · 1 line
1.7.4.1
PATCH 69/83 staging: brcm80211: removed OSL_WRITE_REG and OSL_READ_REG macros
In reply to Roland VossenCode cleanup.
--- drivers/staging/brcm80211/include/brcmu_utils.h | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-)
drivers/staging/brcm80211/include/brcmu_utils.h +5 -9
@@ -240,10 +240,6 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg,#ifdef BRCM_FULLMAC #include <bcmsdh.h> #endif -#define OSL_WRITE_REG (r, v) \ - (bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v))) -#define OSL_READ_REG (r) \ - (bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r))))#endif #if defined(BCMSDIO )
@@ -270,7 +266,7 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg, SELECT_BUS_READ(sizeof(*(r)) == sizeof(u8) ? \ readb((volatile u8*)(r)) : \ sizeof(*(r)) == sizeof(u16) ? readw((volatile u16*)(r)) : \ - readl((volatile u32*)(r)), OSL_READ_REG(r)) \ + readl((volatile u32*)(r)), bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))) \ )#else /* __mips__ */ #define R_REG (r) (\
@@ -296,7 +292,7 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg, ({ \ __typeof(*(r)) __osl_v; \ __asm__ __volatile__("sync" ); \ - __osl_v =OSL_READ_REG (r); \ + __osl_v =bcmsdh_reg_read (NULL , (unsigned long )r,sizeof (*r)); \ __asm__ __volatile__("sync" ); \ __osl_v; \ })) \
@@ -313,7 +309,7 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg,case sizeof (u32): \writel ((u32)(v), (volatile u32 *)(r));break ; \ }, \ - (OSL_WRITE_REG(r, v))); \ + bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), (v))); \ } while (0)#else /* __BIG_ENDIAN */ #define R_REG (r) (\
@@ -335,7 +331,7 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg, } \ __osl_v; \ }), \ - OSL_READ_REG(r)) \ + bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))) \ )#define W_REG (r, v) do { \ SELECT_BUS_WRITE( \
@@ -350,7 +346,7 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg,writel ((u32)(v), \ (volatile u32 *)(r));break ; \ }, \ - (OSL_WRITE_REG(r, v))); \ + bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), v)); \ } while (0)#endif /* __BIG_ENDIAN */
Signature · 1 line
1.7.4.1
PATCH 70/83 staging: brcm80211: moved register read/write macro's
In reply to Roland VossenCode cleanup. R_REG()/W_REG() macro's are overly complex. Copied the macro's to both fullmac and softmac. Next patches will simplify both copies of the macro's.
--- drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c | 1 + drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 1 + .../brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c | 1 + drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 126 ++++++++++++++++++++ drivers/staging/brcm80211/brcmsmac/aiutils.c | 1 + drivers/staging/brcm80211/brcmsmac/bcmotp.c | 1 + drivers/staging/brcm80211/brcmsmac/nicpci.c | 1 + drivers/staging/brcm80211/brcmsmac/wlc_pmu.c | 1 + drivers/staging/brcm80211/brcmsmac/wlc_types.h | 123 +++++++++++++++++++ drivers/staging/brcm80211/include/brcmu_utils.h | 123 ------------------- 10 files changed, 256 insertions(+), 123 deletions(-)
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c +1 -0
@@ -28,6 +28,7 @@#include <bcmdefs.h> #include <bcmdevs.h> #include <brcmu_utils.h> +#include <bcmsdh.h> #include <brcmu_wifi.h> #if defined(OOB_INTR_ONLY )
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +1 -0
@@ -20,6 +20,7 @@#include <bcmdevs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> +#include <bcmsdh.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* ioctl/iovars */
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c +1 -0
@@ -20,6 +20,7 @@#include <bcmdefs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> +#include <bcmsdh.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* to get msglevel bit values */
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +126 -0
132 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/aiutils.c +1 -0
@@ -18,6 +18,7 @@#include <linux/kernel.h> #include <linux/string.h> #include <bcmdefs.h> +#include "wlc_types.h" #include <linux/module.h> #include <linux/pci.h> #include <brcmu_utils.h>
drivers/staging/brcm80211/brcmsmac/bcmotp.c +1 -0
@@ -23,6 +23,7 @@#include <bcmdefs.h> #include <bcmdevs.h> +#include "wlc_types.h" #include <brcmu_utils.h> #include <aiutils.h> #include <bcmsoc.h>
drivers/staging/brcm80211/brcmsmac/nicpci.c +1 -0
@@ -18,6 +18,7 @@#include <linux/string.h> #include <linux/pci.h> #include <bcmdefs.h> +#include "wlc_types.h" #include <brcmu_utils.h> #include <aiutils.h> #include <bcmsoc.h>
drivers/staging/brcm80211/brcmsmac/wlc_pmu.c +1 -0
@@ -19,6 +19,7 @@#include <linux/io.h> #include <bcmdevs.h> +#include "wlc_types.h" #include <chipcommon.h> #include <brcmu_utils.h> #include "wlc_scb.h"
drivers/staging/brcm80211/brcmsmac/wlc_types.h +123 -0
129 lines not on this page · raw message
drivers/staging/brcm80211/include/brcmu_utils.h +0 -123
135 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 71/83 staging: brcm80211: further simplified register access macro's
In reply to Roland VossenThe SELECT_BUS_READ and SELECT_BUS_WRITE macro's always select a (sdio) bus operation for fullmac, and a memory operation for softmac. Thus they can be removed by expanding them in place.
--- drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 102 +++------------------ drivers/staging/brcm80211/brcmsmac/wlc_types.h | 116 ++++++++++-------------- 2 files changed, 61 insertions(+), 157 deletions(-)
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +14 -88
@@ -38,102 +38,30 @@#endif #endif -#if defined(BCMSDIO ) -#define SELECT_BUS_WRITE (mmap_op, bus_op) bus_op -#define SELECT_BUS_READ (mmap_op, bus_op) bus_op -#else -#define SELECT_BUS_WRITE (mmap_op, bus_op) mmap_op -#define SELECT_BUS_READ (mmap_op, bus_op) mmap_op -#endif -/* register access macros */ #ifndef __BIG_ENDIAN#ifndef __mips__ -#define R_REG (r) (\ - SELECT_BUS_READ(sizeof(*(r)) == sizeof(u8) ? \ - readb((volatile u8*)(r)) : \ - sizeof(*(r)) == sizeof(u16) ? readw((volatile u16*)(r)) : \ - readl((volatile u32*)(r)), bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))) \ -) +#define R_REG (r) \ + bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))#else /* __mips__ */ -#define R_REG (r) (\ - SELECT_BUS_READ( \ - ({ \ - __typeof(*(r)) __osl_v; \ - __asm__ __volatile__("sync"); \ - switch (sizeof(*(r))) { \ - case sizeof(u8): \ - __osl_v = readb((volatile u8*)(r)); \ - break; \ - case sizeof(u16): \ - __osl_v = readw((volatile u16*)(r)); \ - break; \ - case sizeof(u32): \ - __osl_v = \ - readl((volatile u32*)(r)); \ - break; \ - } \ - __asm__ __volatile__("sync"); \ - __osl_v; \ - }), \ - ({ \ - __typeof(*(r)) __osl_v; \ - __asm__ __volatile__("sync"); \ - __osl_v = bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)); \ - __asm__ __volatile__("sync"); \ - __osl_v; \ - })) \ -) +#define R_REG (r) \ + ({ \ + __typeof(*(r)) __osl_v; \ + __asm__ __volatile__("sync"); \ + __osl_v = bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)); \ + __asm__ __volatile__("sync"); \ + __osl_v; \ + })#endif /* __mips__ */ #define W_REG (r, v) do { \ - SELECT_BUS_WRITE( \ - switch (sizeof(*(r))) { \ - case sizeof(u8): \ - writeb((u8)(v), (volatile u8*)(r)); break; \ - case sizeof(u16): \ - writew((u16)(v), (volatile u16*)(r)); break; \ - case sizeof(u32): \ - writel((u32)(v), (volatile u32*)(r)); break; \ - }, \ - bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), (v))); \ + bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), (v)); \ } while (0)#else /* __BIG_ENDIAN */ -#define R_REG (r) (\ - SELECT_BUS_READ( \ - ({ \ - __typeof(*(r)) __osl_v; \ - switch (sizeof(*(r))) { \ - case sizeof(u8): \ - __osl_v = \ - readb((volatile u8*)((r)^3)); \ - break; \ - case sizeof(u16): \ - __osl_v = \ - readw((volatile u16*)((r)^2)); \ - break; \ - case sizeof(u32): \ - __osl_v = readl((volatile u32*)(r)); \ - break; \ - } \ - __osl_v; \ - }), \ - bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))) \ -) +#define R_REG (r) \ + bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))#define W_REG (r, v) do { \ - SELECT_BUS_WRITE( \ - switch (sizeof(*(r))) { \ - case sizeof(u8): \ - writeb((u8)(v), \ - (volatile u8*)((r)^3)); break; \ - case sizeof(u16): \ - writew((u16)(v), \ - (volatile u16*)((r)^2)); break; \ - case sizeof(u32): \ - writel((u32)(v), \ - (volatile u32*)(r)); break; \ - }, \ - bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), v)); \ + bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), v); \ } while (0)#endif /* __BIG_ENDIAN */
@@ -154,8 +82,6 @@#define SET_REG (r, mask, val) \ W_REG((r), ((R_REG(r) & ~(mask)) | (val))) - -#ifdef DHD_DEBUG /* ARM trap handling */
drivers/staging/brcm80211/brcmsmac/wlc_types.h +47 -69
144 lines not on this page · raw message
Signature · 1 line
1.7.4.1
Re: [PATCH 71/83] staging: brcm80211: further simplified register access macro's
Quoted 6 lines · Roland Vossen
The
SELECT_BUS_READandSELECT_BUS_WRITEmacro's always select a (sdio) bus operation for fullmac, and a memory operation for softmac. Thus they can be removed by expanding them in place.Signed-off-by Roland Vossen <[email protected]>Reviewed-by Arend van Spriel <[email protected]>
As a next step of this cleanup, you might want to turn these into static inline functions instead of macros.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/
Re: [PATCH 71/83] staging: brcm80211: further simplified register access macro's
Quoted 2 lines
As a next step of this cleanup, you might want to turn these into static inline functions instead of macros.
True, inline functions have better type safety. Arend van Spriel is currently looking at interfacing the macro's (cc'ed), we will keep this in mind.
Thanks, Roland.
PATCH 72/83 staging: brcm80211: cleanup after R_REG/W_REG patches
In reply to Roland VossenCode cleanup. Removed unused sections. Added () to make macro safe.
--- drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 29 ++++------------------ drivers/staging/brcm80211/brcmsmac/wlc_types.h | 7 ----- drivers/staging/brcm80211/include/brcmu_utils.h | 4 --- 3 files changed, 6 insertions(+), 34 deletions(-)
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +6 -23
@@ -32,50 +32,33 @@#include <bcmsoc.h> /* register access macros */ -#if defined(BCMSDIO ) -#ifdef BRCM_FULLMAC -#include <bcmsdh.h> -#endif -#endif - -/* register access macros */ #ifndef __BIG_ENDIAN#ifndef __mips__#define R_REG (r) \ - bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)) + bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r)))#else /* __mips__ */ #define R_REG (r) \ ({ \ __typeof(*(r)) __osl_v; \ __asm__ __volatile__("sync"); \ - __osl_v = bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)); \ + __osl_v = bcmsdh_reg_read(NULL, (unsigned long)(r),\ + sizeof(*(r))); \ __asm__ __volatile__("sync"); \ __osl_v; \ })#endif /* __mips__ */ #define W_REG (r, v) do { \ - bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), (v)); \ + bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v)); \ } while (0)#else /* __BIG_ENDIAN */ #define R_REG (r) \ - bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)) + bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r)))#define W_REG (r, v) do { \ - bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), v); \ + bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v)); \ } while (0)#endif /* __BIG_ENDIAN */ -#ifdef __mips__ -/* -* bcm4716 (which includes 4717 & 4718), plus 4706 on PCIe can reorder -* transactions. As a fix, a read after write is performed on certain places -* in the code. Older chips and the newer 5357 family don't require this fix. -*/ -#define W_REG_FLUSH (r, v) ({ W_REG((r), (v)); (void)R_REG(r); }) -#else -#define W_REG_FLUSH (r, v) W_REG((r), (v)) -#endif /* __mips__ */ -#define AND_REG (r, v) W_REG((r), R_REG(r) & (v))#define OR_REG (r, v) W_REG((r), R_REG(r) | (v))
drivers/staging/brcm80211/brcmsmac/wlc_types.h +0 -7
@@ -42,13 +42,6 @@ do { \#define WL_ERROR_ON () (brcm_msg_level & LOG_ERROR_VAL)/* register access macros */ -#if defined(BCMSDIO ) -#ifdef BRCM_FULLMAC -#include <bcmsdh.h> -#endif -#endif - -/* register access macros */ #ifndef __BIG_ENDIAN#ifndef __mips__#define R_REG (r) \
drivers/staging/brcm80211/include/brcmu_utils.h +0 -4
@@ -239,10 +239,6 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg,#define PKTBUFSZ 2048#define OSL_SYSUPTIME () ((u32)jiffies * (1000 / HZ)) -#ifdef BRCM_FULLMAC -#include <linux/kernel.h> /* for vsn/printf's */ -#include <linux/string.h> /* for mem*, str* */ -#endif #ifndef setbit#ifndef NBBY /* the BSD family defines NBBY */
Signature · 1 line
1.7.4.1
PATCH 73/83 staging: brcm80211: prepared header files for file rename
In reply to Roland VossenCode cleanup. Removing 'bcm' and 'wlc_' file name prefixes.
--- drivers/staging/brcm80211/brcmsmac/aiutils.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/bcmdma.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/bcmotp.h | 6 +++--- .../staging/brcm80211/brcmsmac/brcms_mac80211.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/d11.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/nicpci.h | 6 +++--- .../staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h | 8 ++++---- .../staging/brcm80211/brcmsmac/phy/wlc_phy_int.h | 6 +++--- .../staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.h | 6 +++--- .../staging/brcm80211/brcmsmac/phy/wlc_phy_qmath.h | 6 +++--- .../staging/brcm80211/brcmsmac/phy/wlc_phy_radio.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_ampdu.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_antsel.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_bmac.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_cfg.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_channel.h | 4 ++-- drivers/staging/brcm80211/brcmsmac/wlc_key.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_main.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.h | 8 ++++---- drivers/staging/brcm80211/brcmsmac/wlc_pmu.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_pub.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_scb.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_stf.h | 6 +++--- drivers/staging/brcm80211/brcmsmac/wlc_types.h | 6 +++--- drivers/staging/brcm80211/include/bcmdefs.h | 6 +++--- drivers/staging/brcm80211/include/bcmdevs.h | 6 +++--- drivers/staging/brcm80211/include/bcmsdh.h | 6 +++--- drivers/staging/brcm80211/include/bcmsoc.h | 6 +++--- drivers/staging/brcm80211/include/bcmsrom.h | 6 +++--- drivers/staging/brcm80211/include/brcmu_utils.h | 6 +++--- drivers/staging/brcm80211/include/brcmu_wifi.h | 6 +++--- 32 files changed, 97 insertions(+), 97 deletions(-)
drivers/staging/brcm80211/brcmsmac/aiutils.h +3 -3
@@ -14,8 +14,8 @@* 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>
@@ -573,4 +573,4 @@ extern void ai_epa_4313war(struct si_pub *sih);char *ai_getnvramflvar (struct si_pub *sih,const char *name); -#endif /* _aiutils_h_ */ +#endif /* _BRCM_AIUTILS_H_ */
drivers/staging/brcm80211/brcmsmac/bcmdma.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -252,4 +252,4 @@ static inline void dma_spin_for_len(uint len, struct sk_buff *head) #endif /* defined(__mips__) */ } -#endif /* _bcmdma_h_ */ +#endif /* _BRCM_DMA_H_ */
drivers/staging/brcm80211/brcmsmac/bcmotp.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -42,4 +42,4 @@ extern int otp_read_region(struct si_pub *sih, int region, u16 *data, uint *wlen);extern int otp_nvread (void *oh,char *data,uint *len); -#endif /* _bcmotp_h_ */ +#endif /* _BRCM_OTP_H_ */
drivers/staging/brcm80211/brcmsmac/brcms_mac80211.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -106,4 +106,4 @@ extern void brcms_add_timer(struct brcms_info *wl, struct brcms_timer *timer,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_ */
drivers/staging/brcm80211/brcmsmac/d11.h +3 -3
@@ -14,8 +14,8 @@* 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>
@@ -1775,4 +1775,4 @@ typedef struct d11cnt { u32 rxundec; } d11cnt_t; -#endif /* _D11_H */ +#endif /* _BRCM_D11_H_ */
drivers/staging/brcm80211/brcmsmac/nicpci.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -82,4 +82,4 @@ extern u8 pcicore_find_pci_capability(void *dev, u8 req_cap_id,extern void pcicore_fixcfg (void *pch,void *regs);extern void pcicore_pci_setup (void *pch,void *regs); -#endif /* _NICPCI_H */ +#endif /* _BRCM_NICPCI_H_ */
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h +4 -4
@@ -15,11 +15,11 @@*/ /* -* 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>
@@ -290,4 +290,4 @@ extern const u8 *wlc_phy_get_ofdm_rate_lookup(void);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_ */
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_int.h +3 -3
@@ -14,8 +14,8 @@* 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>
@@ -1232,4 +1232,4 @@ extern s8 wlc_phy_upd_rssi_offset(phy_info_t *pi, s8 rssi, 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_ */
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.h +3 -3
@@ -14,8 +14,8 @@* 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;
@@ -116,4 +116,4 @@ struct phy_info_lcnphy {uint lcnphy_aci_start_time; s8 lcnphy_tx_power_offset[TXP_NUM_RATES]; }; -#endif /* _wlc_phy_lcn_h_ */ +#endif /* _BRCM_PHY_LCN_H_ */
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_qmath.h +3 -3
@@ -14,8 +14,8 @@* 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);
@@ -37,4 +37,4 @@ s16 qm_norm32(s32 op);void qm_log10 (s32 N ,s16 qN,s16 *log10N,s16 *qLog10N); -#endif /* #ifndef __QMATH_H__ */ +#endif /* #ifndef _BRCM_QMATH_H_ */
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_radio.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -1530,4 +1530,4 @@#define RADIO_2057_VCM_MASK 0x7 -#endif /* _BCM20XX_H */ +#endif /* _BRCM_PHY_RADIO_H_ */
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.h +3 -3
@@ -14,8 +14,8 @@* 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);
@@ -26,4 +26,4 @@ extern void wlc_ampdu_dotxstatus(struct ampdu_info *ampdu, struct scb *scb,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_ */
drivers/staging/brcm80211/brcmsmac/wlc_antsel.h +3 -3
@@ -14,8 +14,8 @@* 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);
@@ -26,4 +26,4 @@ extern void wlc_antsel_antcfg_get(struct antsel_info *asi, bool usedef, u8 *fbantcfg);extern u8 wlc_antsel_antsel2id (struct antsel_info *asi,u16 antsel); -#endif /* _wlc_antsel_h_ */ +#endif /* _BRCM_ANTSEL_H_ */
drivers/staging/brcm80211/brcmsmac/wlc_bmac.h +3 -3
@@ -13,8 +13,8 @@* 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
@@ -175,4 +175,4 @@ extern void wlc_bmac_hw_up(struct wlc_hw_info *wlc_hw);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_ */
drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h +3 -3
@@ -14,8 +14,8 @@* 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)
@@ -132,4 +132,4 @@ struct wlc_bsscfg {#define SOFTPRB_ENAB (pub) (0)#define wlc_bsscfg_tx_check (a) do { } while (0); -#endif /* _WLC_BSSCFG_H_ */ +#endif /* _BRCM_BSSCFG_H_ */
drivers/staging/brcm80211/brcmsmac/wlc_cfg.h +3 -3
@@ -14,8 +14,8 @@* 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)
@@ -277,4 +277,4 @@#define WLBANDINITDATA (_data) _data#define WLBANDINITFN (_fn) _fn -#endif /* _wlc_cfg_h_ */ +#endif /* _BRCM_CFG_H_ */
drivers/staging/brcm80211/brcmsmac/wlc_channel.h +2 -2
@@ -14,8 +14,8 @@* 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 */
drivers/staging/brcm80211/brcmsmac/wlc_key.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -139,4 +139,4 @@ typedef struct wsec_key {#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_ */
drivers/staging/brcm80211/brcmsmac/wlc_main.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -877,4 +877,4 @@ extern bool wlc_ps_allowed(struct wlc_info *wlc);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_ */
drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.h +4 -4
@@ -15,11 +15,11 @@*/ /* -* 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 */
@@ -164,4 +164,4 @@ extern void wlapi_copyto_objmem(wlc_phy_shim_info_t *physhim, uint,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_ */
drivers/staging/brcm80211/brcmsmac/wlc_pmu.h +3 -3
@@ -15,8 +15,8 @@*/ -#ifndef WLC_PMU_H_ -#define WLC_PMU_H_ +#ifndef _BRCM_PMU_H_ +#define _BRCM_PMU_H_#include <linux/types.h>
@@ -55,4 +55,4 @@ extern u32 si_pmu_measure_alpclk(struct si_pub *sih);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_ */
drivers/staging/brcm80211/brcmsmac/wlc_pub.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -671,4 +671,4 @@ extern bool wlc_radio_monitor_stop(struct wlc_info *wlc);/* 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_ */
drivers/staging/brcm80211/brcmsmac/wlc_scb.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -79,4 +79,4 @@ struct scb {#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_ */
drivers/staging/brcm80211/brcmsmac/wlc_stf.h +3 -3
@@ -14,8 +14,8 @@* 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);
@@ -33,4 +33,4 @@ extern void wlc_stf_phy_chain_calc(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_ */
drivers/staging/brcm80211/brcmsmac/wlc_types.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -154,4 +154,4 @@ struct si_pub;/* 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_ */
drivers/staging/brcm80211/include/bcmdefs.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -107,4 +107,4 @@ typedef struct wl_rateset {#define PAD _XSTR(__LINE__)#endif -#endif /* _bcmdefs_h_ */ +#endif /* _BRCM_DEFS_H_ */
drivers/staging/brcm80211/include/bcmdevs.h +3 -3
@@ -14,8 +14,8 @@* 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
@@ -122,4 +122,4 @@/* Reference board types */ #define SPI_BOARD 0x0402 -#endif /* _BCMDEVS_H */ +#endif /* _BRCM_HW_IDS_H_ */
drivers/staging/brcm80211/include/bcmsdh.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -223,4 +223,4 @@ extern u32 bcmsdh_cur_sbwad(void *sdh);/* 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_ */
drivers/staging/brcm80211/include/bcmsoc.h +3 -3
@@ -14,8 +14,8 @@* 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>
@@ -195,4 +195,4 @@#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 */
drivers/staging/brcm80211/include/bcmsrom.h +3 -3
@@ -14,8 +14,8 @@* 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,
@@ -29,4 +29,4 @@ extern int srom_read(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_ */
drivers/staging/brcm80211/include/brcmu_utils.h +3 -3
@@ -14,8 +14,8 @@* 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.
@@ -364,4 +364,4 @@ extern uint brcmu_mkiovar(char *name, char *data, uint datalen, char *buf, uint len);extern uint brcmu_bitcount (u8 *bitmap,uint bytelength); -#endif /* _brcmutils_h_ */ +#endif /* _BRCMU_UTILS_H_ */
drivers/staging/brcm80211/include/brcmu_wifi.h +3 -3
@@ -14,8 +14,8 @@* 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 */
@@ -239,4 +239,4 @@ typedef struct _pmkid_cand_list {typedef u8 ac_bitmap_t ; -#endif /* _brcmu_wifi_h_ */ +#endif /* _BRCMU_WIFI_H_ */
Signature · 1 line
1.7.4.1
PATCH 74/83 staging: brcm80211: renamed files in brcmsmac and include directories
In reply to Roland VossenCode cleanup.
---
drivers/staging/brcm80211/brcmfmac/bcmsdh.c | 8 ++--
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c | 6 +-
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 6 +-
.../brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c | 4 +-
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c | 2 +-
drivers/staging/brcm80211/brcmfmac/dhd_common.c | 2 +-
.../staging/brcm80211/brcmfmac/dhd_custom_gpio.c | 2 +-
drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 2 +-
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 10 ++--
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 2 +-
drivers/staging/brcm80211/brcmfmac/wl_iw.c | 2 +-
drivers/staging/brcm80211/brcmsmac/Makefile | 38 ++++++++--------
drivers/staging/brcm80211/brcmsmac/aiutils.c | 16 ++++----
.../brcm80211/brcmsmac/{wlc_alloc.c => alloc.c} | 26 ++++++------
.../brcm80211/brcmsmac/{wlc_alloc.h => alloc.h} | 0
.../brcm80211/brcmsmac/{wlc_ampdu.c => ampdu.c} | 27 ++++++------
.../brcm80211/brcmsmac/{wlc_ampdu.h => ampdu.h} | 0
.../brcm80211/brcmsmac/{wlc_antsel.c => antsel.c} | 26 ++++++------
.../brcm80211/brcmsmac/{wlc_antsel.h => antsel.h} | 0
.../brcmsmac/{wlc_bmac.c => bottom_mac.c} | 38 ++++++++--------
.../brcmsmac/{wlc_bmac.h => bottom_mac.h} | 11 -----
.../brcm80211/brcmsmac/{wlc_bsscfg.h => bsscfg.h} | 0
.../brcm80211/brcmsmac/{wlc_cfg.h => cfg.h} | 0
.../brcmsmac/{wlc_channel.c => channel.c} | 26 ++++++------
.../brcmsmac/{wlc_channel.h => channel.h} | 0
drivers/staging/brcm80211/brcmsmac/dma.c | 11 ++---
.../staging/brcm80211/brcmsmac/{bcmdma.h => dma.h} | 2 +-
.../brcm80211/brcmsmac/{wlc_key.h => key.h} | 0
.../brcmsmac/{brcms_mac80211.c => mac80211_if.c} | 20 ++++----
.../brcmsmac/{brcms_mac80211.h => mac80211_if.h} | 0
.../brcm80211/brcmsmac/{wlc_main.c => main.c} | 45 ++++++++++----------
.../brcm80211/brcmsmac/{wlc_main.h => main.h} | 2 +-
drivers/staging/brcm80211/brcmsmac/nicpci.c | 12 +++---
.../staging/brcm80211/brcmsmac/{bcmotp.c => otp.c} | 10 ++--
.../staging/brcm80211/brcmsmac/{bcmotp.h => otp.h} | 0
.../brcmsmac/phy/{wlc_phy_cmn.c => phy_cmn.c} | 18 ++++----
.../brcmsmac/phy/{wlc_phy_hal.h => phy_hal.h} | 2 +-
.../brcmsmac/phy/{wlc_phy_int.h => phy_int.h} | 4 +-
.../brcmsmac/phy/{wlc_phy_lcn.c => phy_lcn.c} | 22 +++++-----
.../brcmsmac/phy/{wlc_phy_lcn.h => phy_lcn.h} | 0
.../brcmsmac/phy/{wlc_phy_n.c => phy_n.c} | 20 ++++----
.../brcmsmac/phy/{wlc_phy_qmath.c => phy_qmath.c} | 2 +-
.../brcmsmac/phy/{wlc_phy_qmath.h => phy_qmath.h} | 0
.../brcmsmac/phy/{wlc_phy_radio.h => phy_radio.h} | 0
.../brcmsmac/phy/{wlc_phyreg_n.h => phyreg_n.h} | 0
.../phy/{wlc_phytbl_lcn.c => phytbl_lcn.c} | 6 +-
.../phy/{wlc_phytbl_lcn.h => phytbl_lcn.h} | 0
.../brcmsmac/phy/{wlc_phytbl_n.c => phytbl_n.c} | 6 +-
.../brcmsmac/phy/{wlc_phytbl_n.h => phytbl_n.h} | 0
.../brcmsmac/{wlc_phy_shim.c => phy_shim.c} | 34 +++++++-------
.../brcmsmac/{wlc_phy_shim.h => phy_shim.h} | 0
.../brcm80211/brcmsmac/{wlc_pmu.c => pmu.c} | 10 ++--
.../brcm80211/brcmsmac/{wlc_pmu.h => pmu.h} | 0
.../brcm80211/brcmsmac/{wlc_pub.h => pub.h} | 2 +-
.../brcm80211/brcmsmac/{wlc_rate.c => rate.c} | 14 +++---
.../brcm80211/brcmsmac/{wlc_rate.h => rate.h} | 0
.../brcm80211/brcmsmac/{wlc_scb.h => scb.h} | 0
.../brcm80211/brcmsmac/{bcmsrom.c => srom.c} | 12 +++---
.../brcm80211/brcmsmac/{wlc_stf.c => stf.c} | 26 ++++++------
.../brcm80211/brcmsmac/{wlc_stf.h => stf.h} | 0
.../brcm80211/brcmsmac/{wlc_types.h => types.h} | 2 +-
drivers/staging/brcm80211/brcmsmac/ucode_loader.c | 2 +-
drivers/staging/brcm80211/brcmsmac/ucode_loader.h | 2 +-
drivers/staging/brcm80211/brcmutil/utils.c | 4 +-
drivers/staging/brcm80211/brcmutil/wifi.c | 2 +-
drivers/staging/brcm80211/include/aidmp.h | 2 +-
.../brcm80211/include/{bcmdevs.h => brcm_hw_ids.h} | 0
drivers/staging/brcm80211/include/chipcommon.h | 2 +-
.../brcm80211/include/{bcmdefs.h => defs.h} | 0
.../brcm80211/include/{bcmsdh.h => sdio_host.h} | 0
.../staging/brcm80211/include/{bcmsoc.h => soc.h} | 0
.../brcm80211/include/{bcmsrom.h => srom.h} | 0
72 files changed, 268 insertions(+), 282 deletions(-)
rename drivers/staging/brcm80211/brcmsmac/{wlc_alloc.c => alloc.c} (95%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_alloc.h => alloc.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_ampdu.c => ampdu.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_ampdu.h => ampdu.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_antsel.c => antsel.c} (97%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_antsel.h => antsel.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_bmac.c => bottom_mac.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_bmac.h => bottom_mac.h} (94%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_bsscfg.h => bsscfg.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_cfg.h => cfg.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_channel.c => channel.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_channel.h => channel.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{bcmdma.h => dma.h} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_key.h => key.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{brcms_mac80211.c => mac80211_if.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{brcms_mac80211.h => mac80211_if.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_main.c => main.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_main.h => main.h} (99%)
rename drivers/staging/brcm80211/brcmsmac/{bcmotp.c => otp.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{bcmotp.h => otp.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_cmn.c => phy_cmn.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_hal.h => phy_hal.h} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_int.h => phy_int.h} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_lcn.c => phy_lcn.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_lcn.h => phy_lcn.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_n.c => phy_n.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_qmath.c => phy_qmath.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_qmath.h => phy_qmath.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phy_radio.h => phy_radio.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phyreg_n.h => phyreg_n.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phytbl_lcn.c => phytbl_lcn.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phytbl_lcn.h => phytbl_lcn.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phytbl_n.c => phytbl_n.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/phy/{wlc_phytbl_n.h => phytbl_n.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_phy_shim.c => phy_shim.c} (93%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_phy_shim.h => phy_shim.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_pmu.c => pmu.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_pmu.h => pmu.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_pub.h => pub.h} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_rate.c => rate.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_rate.h => rate.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_scb.h => scb.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{bcmsrom.c => srom.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_stf.c => stf.c} (97%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_stf.h => stf.h} (100%)
rename drivers/staging/brcm80211/brcmsmac/{wlc_types.h => types.h} (98%)
rename drivers/staging/brcm80211/include/{bcmdevs.h => brcm_hw_ids.h} (100%)
rename drivers/staging/brcm80211/include/{bcmdefs.h => defs.h} (100%)
rename drivers/staging/brcm80211/include/{bcmsdh.h => sdio_host.h} (100%)
rename drivers/staging/brcm80211/include/{bcmsoc.h => soc.h} (100%)
rename drivers/staging/brcm80211/include/{bcmsrom.h => srom.h} (100%)drivers/staging/brcm80211/brcmfmac/bcmsdh.c +4 -4
@@ -19,13 +19,13 @@#include <linux/netdevice.h> #include <linux/pci_ids.h> #include <linux/sched.h> -#include <bcmdefs.h> -#include <bcmdevs.h> +#include <defs.h> +#include <brcm_hw_ids.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> -#include <bcmsoc.h> +#include <soc.h> -#include <bcmsdh.h> /* BRCM API for SDIO +#include <sdio_host.h> /* BRCM API for SDIO clients (such as wl, dhd) */ #include <bcmsdbus.h> /* common SDIO/controller interface */ #include <sbsdio.h> /* BRCM sdio device core */
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c +3 -3
@@ -25,10 +25,10 @@#include <linux/completion.h> #include <linux/sched.h> -#include <bcmdefs.h> -#include <bcmdevs.h> +#include <defs.h> +#include <brcm_hw_ids.h> #include <brcmu_utils.h> -#include <bcmsdh.h> +#include <sdio_host.h> #include <brcmu_wifi.h> #if defined(OOB_INTR_ONLY )
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +3 -3
@@ -16,11 +16,11 @@#include <linux/types.h> #include <linux/netdevice.h> #include <linux/mmc/sdio.h> -#include <bcmdefs.h> -#include <bcmdevs.h> +#include <defs.h> +#include <brcm_hw_ids.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> -#include <bcmsdh.h> +#include <sdio_host.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* ioctl/iovars */
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c +2 -2
@@ -17,10 +17,10 @@#include <linux/sched.h> /* request_irq() */ #include <linux/netdevice.h> #include <net/cfg80211.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> -#include <bcmsdh.h> +#include <sdio_host.h> #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* to get msglevel bit values */
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c +1 -1
@@ -17,7 +17,7 @@#include <linux/types.h> #include <linux/netdevice.h> #include <linux/sched.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h>
drivers/staging/brcm80211/brcmfmac/dhd_common.c +1 -1
@@ -16,7 +16,7 @@#include <linux/kernel.h> #include <linux/string.h> #include <linux/sched.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_wifi.h> #include <linux/netdevice.h> #include <asm/unaligned.h>
drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c +1 -1
@@ -17,7 +17,7 @@#include <linux/netdevice.h> #include <linux/sched.h> #include <brcmu_utils.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_wifi.h> #include <dngl_stats.h>
drivers/staging/brcm80211/brcmfmac/dhd_linux.c +1 -1
@@ -32,7 +32,7 @@#include <linux/fs.h> #include <linux/uaccess.h> #include <net/cfg80211.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h>
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +5 -5
@@ -21,15 +21,15 @@#include <linux/sched.h> #include <linux/mmc/sdio.h> #include <asm/unaligned.h> -#include <bcmdefs.h> -#include <bcmsdh.h> +#include <defs.h> +#include <sdio_host.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_wifi.h> #include <brcmu_utils.h> -#include <bcmdevs.h> +#include <brcm_hw_ids.h> -#include <bcmsoc.h> +#include <soc.h> /* register access macros */ #ifndef __BIG_ENDIAN
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +1 -1
@@ -19,7 +19,7 @@#include <linux/sched.h> #include <brcmu_utils.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_wifi.h> #include <asm/uaccess.h>
drivers/staging/brcm80211/brcmfmac/wl_iw.c +1 -1
@@ -16,7 +16,7 @@#include <linux/kthread.h> #include <linux/semaphore.h> -#include <bcmdefs.h> +#include <defs.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/wireless.h>
drivers/staging/brcm80211/brcmsmac/Makefile +19 -19
@@ -28,27 +28,27 @@ ccflags-y := \ -Idrivers/staging/brcm80211/include BRCMSMAC_OFILES := \ - brcms_mac80211.o \ + mac80211_if.o \ ucode_loader.o \ - wlc_alloc.o \ - wlc_ampdu.o \ - wlc_antsel.o \ - wlc_bmac.o \ - wlc_channel.o \ - wlc_main.o \ - wlc_phy_shim.o \ - wlc_pmu.o \ - wlc_rate.o \ - wlc_stf.o \ + alloc.o \ + ampdu.o \ + antsel.o \ + bottom_mac.o \ + channel.o \ + main.o \ + phy_shim.o \ + pmu.o \ + rate.o \ + stf.o \ aiutils.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 \ - phy/wlc_phy_qmath.o \ - bcmotp.o \ - bcmsrom.o \ + phy/phy_cmn.o \ + phy/phy_lcn.o \ + phy/phy_n.o \ + phy/phytbl_lcn.o \ + phy/phytbl_n.o \ + phy/phy_qmath.o \ + otp.o \ + srom.o \ dma.o \ nicpci.o
drivers/staging/brcm80211/brcmsmac/aiutils.c +8 -8
@@ -17,22 +17,22 @@#include <linux/delay.h> #include <linux/kernel.h> #include <linux/string.h> -#include <bcmdefs.h> -#include "wlc_types.h" +#include <defs.h> +#include "types.h" #include <linux/module.h> #include <linux/pci.h> #include <brcmu_utils.h> #include <aiutils.h> -#include <bcmsoc.h> +#include <soc.h> #include <chipcommon.h> -#include <bcmdevs.h> +#include <brcm_hw_ids.h> /* ********** from siutils.c *********** */ #include <nicpci.h> -#include <bcmsrom.h> -#include <wlc_pmu.h> -#include <wlc_scb.h> -#include <wlc_pub.h> +#include <srom.h> +#include <pmu.h> +#include <scb.h> +#include <pub.h> /* slow_clk_ctl */ #define SCC_SS_MASK 0x00000007/* slow clock source mask */
drivers/staging/brcm80211/brcmsmac/alloc.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_alloc.c +13 -13
@@ -16,23 +16,23 @@#include <linux/kernel.h> #include <linux/types.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> -#include "bcmdma.h" +#include "dma.h" #include "d11.h" -#include "wlc_types.h" -#include "wlc_cfg.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_key.h" -#include "wlc_alloc.h" -#include "wlc_rate.h" -#include "wlc_bsscfg.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_channel.h" -#include "wlc_main.h" +#include "types.h" +#include "cfg.h" +#include "scb.h" +#include "pub.h" +#include "key.h" +#include "alloc.h" +#include "rate.h" +#include "bsscfg.h" +#include "phy/phy_hal.h" +#include "channel.h" +#include "main.h" static struct wlc_bsscfg *wlc_bsscfg_malloc (uint unit);static void wlc_bsscfg_mfree (struct wlc_bsscfg *cfg);
drivers/staging/brcm80211/brcmsmac/alloc.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_alloc.h +0 -0
drivers/staging/brcm80211/brcmsmac/ampdu.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c +13 -14
@@ -16,24 +16,23 @@#include <linux/kernel.h> #include <net/mac80211.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> -#include "bcmdma.h" -#include <bcmdma.h> +#include "dma.h" #include <d11.h> -#include "wlc_types.h" -#include "wlc_cfg.h" -#include "wlc_rate.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_key.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_antsel.h" -#include "wlc_channel.h" -#include "wlc_main.h" -#include "wlc_ampdu.h" +#include "types.h" +#include "cfg.h" +#include "rate.h" +#include "scb.h" +#include "pub.h" +#include "key.h" +#include "phy/phy_hal.h" +#include "antsel.h" +#include "channel.h" +#include "main.h" +#include "ampdu.h" #define AMPDU_MAX_MPDU 32/* max number of mpdus in an ampdu */ #define AMPDU_NUM_MPDU_LEGACY 16/* max number of mpdus in an ampdu to a legacy */
drivers/staging/brcm80211/brcmsmac/ampdu.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_ampdu.h +0 -0
drivers/staging/brcm80211/brcmsmac/antsel.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_antsel.c +13 -13
@@ -14,28 +14,28 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <wlc_cfg.h> +#include <cfg.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> -#include <bcmdevs.h> -#include "bcmdma.h" +#include <brcm_hw_ids.h> +#include "dma.h" #include "d11.h" -#include "wlc_rate.h" -#include "wlc_key.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_bmac.h" -#include "wlc_channel.h" -#include "wlc_main.h" -#include "wlc_antsel.h" +#include "rate.h" +#include "key.h" +#include "scb.h" +#include "pub.h" +#include "phy/phy_hal.h" +#include "bottom_mac.h" +#include "channel.h" +#include "main.h" +#include "antsel.h" #define ANT_SELCFG_AUTO 0x80/* bit indicates antenna sel AUTO */ #define ANT_SELCFG_MASK 0x33/* antenna configuration mask */
drivers/staging/brcm80211/brcmsmac/antsel.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_antsel.h +0 -0
drivers/staging/brcm80211/brcmsmac/bottom_mac.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_bmac.c +19 -19
@@ -21,33 +21,33 @@#include <linux/netdevice.h> #include <linux/etherdevice.h> -#include <bcmdefs.h> -#include <bcmdevs.h> +#include <defs.h> +#include <brcm_hw_ids.h> #include <brcmu_wifi.h> #include <aiutils.h> -#include <bcmsrom.h> -#include <bcmotp.h> +#include <srom.h> +#include "otp.h" #include <brcmu_utils.h> #include <chipcommon.h> #include <nicpci.h> -#include <bcmdma.h> +#include "dma.h" -#include "wlc_types.h" -#include "wlc_pmu.h" +#include "types.h" +#include "pmu.h" #include "d11.h" -#include "wlc_cfg.h" -#include "wlc_rate.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_key.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_channel.h" -#include "wlc_main.h" +#include "cfg.h" +#include "rate.h" +#include "scb.h" +#include "pub.h" +#include "key.h" +#include "phy/phy_hal.h" +#include "channel.h" +#include "main.h" #include "ucode_loader.h" -#include "wlc_antsel.h" -#include "wlc_alloc.h" -#include "wlc_bmac.h" -#include "brcms_mac80211.h" +#include "antsel.h" +#include "alloc.h" +#include "bottom_mac.h" +#include "mac80211_if.h" #define TIMER_INTERVAL_WATCHDOG_BMAC 1000/* watchdog timer, in unit of ms */
drivers/staging/brcm80211/brcmsmac/bottom_mac.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_bmac.h +0 -11
@@ -16,17 +16,6 @@ #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 - * - * high driver files(e.g. wlc_ampdu.c etc) - * wlc.h/wlc.c - * wlc_bmac.h/wlc_bmac.c - * - * So don't include this in files other than wlc.c, wlc_bmac* wl_rte.c(dongle port) and wl_phy.c - * create wrappers in wlc.c if needed - */ - /* dup state between BMAC(struct wlc_hw_info) and HIGH(struct wlc_info) driver */ typedef struct wlc_bmac_state {
drivers/staging/brcm80211/brcmsmac/bsscfg.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h +0 -0
drivers/staging/brcm80211/brcmsmac/cfg.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_cfg.h +0 -0
drivers/staging/brcm80211/brcmsmac/channel.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_channel.c +13 -13
@@ -19,23 +19,23 @@#include <linux/module.h> #include <linux/pci.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> -#include "bcmdma.h" +#include "dma.h" -#include "wlc_types.h" +#include "types.h" #include "d11.h" -#include "wlc_cfg.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_key.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_bmac.h" -#include "wlc_rate.h" -#include "wlc_channel.h" -#include "wlc_main.h" -#include "wlc_stf.h" +#include "cfg.h" +#include "scb.h" +#include "pub.h" +#include "key.h" +#include "phy/phy_hal.h" +#include "bottom_mac.h" +#include "rate.h" +#include "channel.h" +#include "main.h" +#include "stf.h" #define VALID_CHANNEL20_DB (wlc, val) wlc_valid_channel20_db((wlc)->cmi, val)#define VALID_CHANNEL20_IN_BAND (wlc, bandunit, val) \
drivers/staging/brcm80211/brcmsmac/channel.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_channel.h +0 -0
drivers/staging/brcm80211/brcmsmac/dma.c +5 -6
@@ -18,15 +18,14 @@#include <linux/string.h> #include <linux/netdevice.h> #include <linux/pci.h> -#include <bcmdefs.h> -#include <bcmdevs.h> -#include <bcmsoc.h> +#include <defs.h> +#include <brcm_hw_ids.h> +#include <soc.h> #include <brcmu_utils.h> #include <aiutils.h> -#include "wlc_types.h" -#include "bcmdma.h" -#include <bcmdma.h> +#include "types.h" +#include "dma.h" #if defined(__mips__)#include <asm/addrspace.h>
drivers/staging/brcm80211/brcmsmac/dma.h renamed from drivers/staging/brcm80211/brcmsmac/bcmdma.h +1 -1
@@ -17,7 +17,7 @@#ifndef _BRCM_DMA_H_#define _BRCM_DMA_H_ -#include "wlc_types.h" /* forward structure declarations */ +#include "types.h" /* forward structure declarations */ #ifndef _dma_pub_#define _dma_pub_
drivers/staging/brcm80211/brcmsmac/key.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_key.h +0 -0
drivers/staging/brcm80211/brcmsmac/mac80211_if.c renamed from drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c +10 -10
@@ -25,22 +25,22 @@#include <linux/sched.h> #include <linux/firmware.h> #include <net/mac80211.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_wifi.h> #include <brcmu_utils.h> #include <nicpci.h> -#include "bcmdma.h" +#include "dma.h" -#include "phy/wlc_phy_int.h" +#include "phy/phy_int.h" #include "d11.h" -#include "wlc_types.h" -#include "wlc_cfg.h" -#include "wlc_key.h" -#include "wlc_channel.h" -#include "wlc_scb.h" -#include "wlc_pub.h" +#include "types.h" +#include "cfg.h" +#include "key.h" +#include "channel.h" +#include "scb.h" +#include "pub.h" #include "ucode_loader.h" -#include "brcms_mac80211.h" +#include "mac80211_if.h" #define N_TX_QUEUES 4/* #tx queues on mac80211<->driver interface */
drivers/staging/brcm80211/brcmsmac/mac80211_if.h renamed from drivers/staging/brcm80211/brcmsmac/brcms_mac80211.h +0 -0
drivers/staging/brcm80211/brcmsmac/main.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_main.c +22 -23
56 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/main.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_main.h +1 -1
@@ -166,7 +166,7 @@ extern const u8 prio2fifo[];#define MAXTXFRAMEBURST 8/* vanilla xpress mode: max frames/burst */ #define MAXFRAMEBURST_TXOP 10000/* Frameburst TXOP in usec */ -/* Per-AC retry limit register definitions; uses bcmdefs.h bitfield macros */ +/* Per-AC retry limit register definitions; uses defs.h bitfield macros */ #define EDCF_SHORT_S 0#define EDCF_SFB_S 4#define EDCF_LONG_S 8
drivers/staging/brcm80211/brcmsmac/nicpci.c +6 -6
@@ -17,15 +17,15 @@#include <linux/delay.h> #include <linux/string.h> #include <linux/pci.h> -#include <bcmdefs.h> -#include "wlc_types.h" +#include <defs.h> +#include "types.h" #include <brcmu_utils.h> #include <aiutils.h> -#include <bcmsoc.h> -#include <bcmdevs.h> +#include <soc.h> +#include <brcm_hw_ids.h> #include <chipcommon.h> -#include <wlc_scb.h> -#include <wlc_pub.h> +#include <scb.h> +#include <pub.h> #include <nicpci.h> /* SPROM offsets */
drivers/staging/brcm80211/brcmsmac/otp.c renamed from drivers/staging/brcm80211/brcmsmac/bcmotp.c +5 -5
@@ -21,14 +21,14 @@#include <linux/pci.h> #include <linux/crc-ccitt.h> -#include <bcmdefs.h> -#include <bcmdevs.h> -#include "wlc_types.h" +#include <defs.h> +#include <brcm_hw_ids.h> +#include "types.h" #include <brcmu_utils.h> #include <aiutils.h> -#include <bcmsoc.h> +#include <soc.h> #include <chipcommon.h> -#include <bcmotp.h> +#include "otp.h" #define OTPS_GUP_MASK 0x00000f00#define OTPS_GUP_SHIFT 8
drivers/staging/brcm80211/brcmsmac/otp.h renamed from drivers/staging/brcm80211/brcmsmac/bcmotp.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_cmn.c +10 -10
@@ -14,7 +14,7 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <wlc_cfg.h> +#include <cfg.h> #include <linux/kernel.h> #include <linux/string.h>
@@ -23,16 +23,16 @@#include <linux/module.h> #include <linux/pci.h> -#include <bcmdefs.h> +#include <defs.h> #include <chipcommon.h> -#include <bcmdevs.h> -#include "bcmdma.h" - -#include <wlc_types.h> -#include <wlc_phy_int.h> -#include <wlc_phyreg_n.h> -#include <wlc_phy_radio.h> -#include <wlc_phy_lcn.h> +#include <brcm_hw_ids.h> +#include <dma.h> + +#include <types.h> +#include <phy_int.h> +#include <phyreg_n.h> +#include <phy_radio.h> +#include <phy_lcn.h> u32 phyhal_msg_level =PHYHAL_ERROR ;
drivers/staging/brcm80211/brcmsmac/phy/phy_hal.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_hal.h +1 -1
@@ -23,7 +23,7 @@#include <aiutils.h> #include <d11.h> -#include <wlc_phy_shim.h> +#include <phy_shim.h> #include <net/mac80211.h> /* struct wiphy */ #include "brcmu_wifi.h" /* chanspec_t */
drivers/staging/brcm80211/brcmsmac/phy/phy_int.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_int.h +2 -2
@@ -18,10 +18,10 @@#define _BRCM_PHY_INT_H_#include <linux/kernel.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> -#include <wlc_phy_hal.h> +#include <phy_hal.h> #define PHY_VERSION { 1, 82, 8, 0 }
drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c +13 -13
@@ -18,22 +18,22 @@#include <linux/string.h> #include <linux/bitops.h> #include <linux/delay.h> -#include <wlc_cfg.h> +#include <cfg.h> #include <linux/pci.h> #include <brcmu_utils.h> #include <aiutils.h> -#include <wlc_pmu.h> -#include <wlc_scb.h> -#include <wlc_pub.h> - -#include <bcmdevs.h> -#include "bcmdma.h" - -#include "wlc_phy_radio.h" -#include "wlc_phy_int.h" -#include "wlc_phy_qmath.h" -#include "wlc_phy_lcn.h" -#include "wlc_phytbl_lcn.h" +#include <pmu.h> +#include <scb.h> +#include <pub.h> + +#include <brcm_hw_ids.h> +#include <dma.h> + +#include "phy_radio.h" +#include "phy_int.h" +#include "phy_qmath.h" +#include "phy_lcn.h" +#include "phytbl_lcn.h" #define PLL_2064_NDIV 90#define PLL_2064_LOW_END_VCO 3000
drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phy_n.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_n.c +10 -10
@@ -16,22 +16,22 @@#include <linux/kernel.h> #include <linux/string.h> -#include <bcmdefs.h> -#include <wlc_cfg.h> +#include <defs.h> +#include <cfg.h> #include <linux/delay.h> #include <linux/pci.h> #include <aiutils.h> #include <chipcommon.h> -#include <wlc_pmu.h> +#include <pmu.h> -#include <bcmdevs.h> -#include "bcmdma.h" +#include <brcm_hw_ids.h> +#include <dma.h> -#include <wlc_types.h> -#include <wlc_phy_radio.h> -#include <wlc_phy_int.h> -#include <wlc_phyreg_n.h> -#include <wlc_phytbl_n.h> +#include <types.h> +#include <phy_radio.h> +#include <phy_int.h> +#include <phyreg_n.h> +#include <phytbl_n.h> #define READ_RADIO_REG2 (pi, radio_type, jspace, core, reg_name) \ read_radio_reg(pi, radio_type##_##jspace##_##reg_name | \
drivers/staging/brcm80211/brcmsmac/phy/phy_qmath.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_qmath.c +1 -1
@@ -16,7 +16,7 @@#include <linux/types.h> -#include "wlc_phy_qmath.h" +#include "phy_qmath.h" /* Description: This function make 16 bit unsigned multiplication. To fit the output into
drivers/staging/brcm80211/brcmsmac/phy/phy_qmath.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_qmath.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phy_radio.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_radio.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phyreg_n.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phyreg_n.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phytbl_lcn.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_lcn.c +3 -3
@@ -15,9 +15,9 @@*/ #include <linux/types.h> -#include "bcmdma.h" -#include <wlc_phy_int.h> -#include <wlc_phytbl_lcn.h> +#include <dma.h> +#include <phy_int.h> +#include <phytbl_lcn.h> const u32 dot11lcn_gain_tbl_rev0[] = {0x00000000 ,
drivers/staging/brcm80211/brcmsmac/phy/phytbl_lcn.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_lcn.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy/phytbl_n.c renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_n.c +3 -3
@@ -16,9 +16,9 @@#include <linux/kernel.h> -#include "bcmdma.h" -#include <wlc_phy_int.h> -#include <wlc_phytbl_n.h> +#include <dma.h> +#include <phy_int.h> +#include <phytbl_n.h> const u32 frame_struct_rev0[] = {0x08004a04 ,
drivers/staging/brcm80211/brcmsmac/phy/phytbl_n.h renamed from drivers/staging/brcm80211/brcmsmac/phy/wlc_phytbl_n.h +0 -0
drivers/staging/brcm80211/brcmsmac/phy_shim.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.c +17 -17
@@ -24,29 +24,29 @@#include <linux/kernel.h> #include <linux/module.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> #include <aiutils.h> #include <chipcommon.h> -#include "bcmdma.h" -#include <wlc_pmu.h> +#include "dma.h" +#include <pmu.h> -#include "wlc_types.h" -#include "wlc_cfg.h" +#include "types.h" +#include "cfg.h" #include "d11.h" -#include "wlc_rate.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_channel.h" -#include "bcmsrom.h" -#include "wlc_key.h" -#include "wlc_bmac.h" -#include "wlc_phy_hal.h" -#include "wlc_main.h" -#include "wlc_phy_shim.h" -#include "brcms_mac80211.h" +#include "rate.h" +#include "scb.h" +#include "pub.h" +#include "phy/phy_hal.h" +#include "channel.h" +#include <srom.h> +#include "key.h" +#include "bottom_mac.h" +#include "phy_hal.h" +#include "main.h" +#include "phy_shim.h" +#include "mac80211_if.h" /* PHY SHIM module specific state */ struct wlc_phy_shim_info {
drivers/staging/brcm80211/brcmsmac/phy_shim.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.h +0 -0
drivers/staging/brcm80211/brcmsmac/pmu.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_pmu.c +5 -5
@@ -18,13 +18,13 @@#include <linux/delay.h> #include <linux/io.h> -#include <bcmdevs.h> -#include "wlc_types.h" +#include <brcm_hw_ids.h> +#include "types.h" #include <chipcommon.h> #include <brcmu_utils.h> -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_pmu.h" +#include "scb.h" +#include "pub.h" +#include "pmu.h" /* * d11 slow to fast clock transition time in slow clock cycles
drivers/staging/brcm80211/brcmsmac/pmu.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_pmu.h +0 -0
drivers/staging/brcm80211/brcmsmac/pub.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_pub.h +1 -1
@@ -17,7 +17,7 @@#ifndef _BRCM_PUB_H_#define _BRCM_PUB_H_ -#include "wlc_types.h" /* forward structure declarations */ +#include "types.h" /* forward structure declarations */ #include "brcmu_wifi.h" /* for chanspec_t */ #define WLC_NUMRATES 16/* max # of rates in a rateset */
drivers/staging/brcm80211/brcmsmac/rate.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_rate.c +7 -7
@@ -16,17 +16,17 @@#include <linux/kernel.h> #include <linux/module.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> -#include "bcmdma.h" +#include "dma.h" -#include "wlc_types.h" +#include "types.h" #include "d11.h" -#include "wlc_cfg.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_rate.h" +#include "cfg.h" +#include "scb.h" +#include "pub.h" +#include "rate.h" /* Rate info per rate: It tells whether a rate is ofdm or not and its phy_rate value */ const u8 rate_info[WLC_MAXRATE +1 ] = {
drivers/staging/brcm80211/brcmsmac/rate.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_rate.h +0 -0
drivers/staging/brcm80211/brcmsmac/scb.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_scb.h +0 -0
drivers/staging/brcm80211/brcmsmac/srom.c renamed from drivers/staging/brcm80211/brcmsmac/bcmsrom.c +6 -6
@@ -16,19 +16,19 @@#include <linux/kernel.h> #include <linux/string.h> #include <linux/etherdevice.h> -#include <bcmdefs.h> +#include <defs.h> #include <linux/module.h> #include <linux/pci.h> #include <stdarg.h> -#include "wlc_types.h" +#include "types.h" #include <brcmu_utils.h> -#include <bcmsoc.h> +#include <soc.h> #include <chipcommon.h> -#include <bcmdevs.h> +#include <brcm_hw_ids.h> #include <nicpci.h> #include <aiutils.h> -#include <bcmsrom.h> -#include <bcmotp.h> +#include <srom.h> +#include "otp.h" #define SROM_OFFSET (sih) ((sih->ccrev > 31) ? \ (((sih->cccaps & CC_CAP_SROM) == 0) ? NULL : \
drivers/staging/brcm80211/brcmsmac/stf.c renamed from drivers/staging/brcm80211/brcmsmac/wlc_stf.c +13 -13
@@ -17,24 +17,24 @@#include <linux/kernel.h> #include <linux/module.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <aiutils.h> #include <brcmu_wifi.h> -#include "bcmdma.h" +#include "dma.h" -#include "wlc_types.h" +#include "types.h" #include "d11.h" -#include "wlc_cfg.h" -#include "wlc_rate.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wlc_key.h" -#include "phy/wlc_phy_hal.h" -#include "wlc_channel.h" -#include "wlc_main.h" -#include "wlc_bmac.h" -#include "wlc_stf.h" +#include "cfg.h" +#include "rate.h" +#include "scb.h" +#include "pub.h" +#include "key.h" +#include "phy/phy_hal.h" +#include "channel.h" +#include "main.h" +#include "bottom_mac.h" +#include "stf.h" #define MIN_SPATIAL_EXPANSION 0#define MAX_SPATIAL_EXPANSION 1
drivers/staging/brcm80211/brcmsmac/stf.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_stf.h +0 -0
drivers/staging/brcm80211/brcmsmac/types.h renamed from drivers/staging/brcm80211/brcmsmac/wlc_types.h +1 -1
@@ -151,7 +151,7 @@ struct wlc_bsscfg;struct brcmu_strbuf ;struct si_pub ; -/* brcm_msg_level is a bit vector with defs in bcmdefs.h */ +/* brcm_msg_level is a bit vector with defs in defs.h */ extern u32 brcm_msg_level;#endif /* _BRCM_TYPES_H_ */
drivers/staging/brcm80211/brcmsmac/ucode_loader.c +1 -1
@@ -15,7 +15,7 @@*/ #include <linux/types.h> -#include <bcmdefs.h> +#include <defs.h> #include <ucode_loader.h> enum {
drivers/staging/brcm80211/brcmsmac/ucode_loader.h +1 -1
@@ -14,7 +14,7 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "wlc_types.h" /* forward structure declarations */ +#include "types.h" /* forward structure declarations */ #define MIN_FW_SIZE 40000/* minimum firmware file size in bytes */ #define MAX_FW_SIZE 150000
drivers/staging/brcm80211/brcmutil/utils.c +2 -2
@@ -21,10 +21,10 @@#include <linux/pci.h> #include <linux/netdevice.h> #include <linux/sched.h> -#include <bcmdefs.h> +#include <defs.h> #include <stdarg.h> #include <brcmu_utils.h> -#include <bcmdevs.h> +#include <brcm_hw_ids.h> MODULE_AUTHOR ("Broadcom Corporation" );MODULE_DESCRIPTION ("Broadcom 802.11n wireless LAN driver utilities." );
drivers/staging/brcm80211/brcmutil/wifi.c +1 -1
@@ -16,7 +16,7 @@#include <linux/ctype.h> #include <linux/kernel.h> #include <linux/module.h> -#include <bcmdefs.h> +#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h>
drivers/staging/brcm80211/include/aidmp.h +1 -1
@@ -17,7 +17,7 @@#ifndef _AIDMP_H#define _AIDMP_H -#include "bcmdefs.h" /* for PAD macro */ +#include "defs.h" /* for PAD macro */ /* Manufacturer Ids */ #define MFGID_ARM 0x43b
drivers/staging/brcm80211/include/brcm_hw_ids.h renamed from drivers/staging/brcm80211/include/bcmdevs.h +0 -0
drivers/staging/brcm80211/include/chipcommon.h +1 -1
@@ -17,7 +17,7 @@ #ifndef _SBCHIPC_H #define _SBCHIPC_H -#include "bcmdefs.h" /* for PAD macro */ +#include "defs.h" /* for PAD macro */ typedef volatile struct { u32 chipid; /* 0x0 */
drivers/staging/brcm80211/include/defs.h renamed from drivers/staging/brcm80211/include/bcmdefs.h +0 -0
drivers/staging/brcm80211/include/sdio_host.h renamed from drivers/staging/brcm80211/include/bcmsdh.h +0 -0
drivers/staging/brcm80211/include/soc.h renamed from drivers/staging/brcm80211/include/bcmsoc.h +0 -0
drivers/staging/brcm80211/include/srom.h renamed from drivers/staging/brcm80211/include/bcmsrom.h +0 -0
Signature · 1 line
1.7.4.1
PATCH 75/83 staging: brcm80211: deleted header file include/aidmp.h
In reply to Roland VossenCode cleanup. Merged used contents into brcmsmac/aiutils.c.
--- drivers/staging/brcm80211/brcmsmac/aiutils.c | 189 +++++++++++++ drivers/staging/brcm80211/brcmsmac/aiutils.h | 3 - drivers/staging/brcm80211/brcmsmac/scb.h | 1 + drivers/staging/brcm80211/include/aidmp.h | 372 -------------------------- drivers/staging/brcm80211/include/soc.h | 3 - 5 files changed, 190 insertions(+), 378 deletions(-) delete mode 100644 drivers/staging/brcm80211/include/aidmp.h
drivers/staging/brcm80211/brcmsmac/aiutils.c +189 -0
@@ -166,6 +166,195 @@ (sih->chiprev == 0) && \ (sii->coreid[sii->curidx] == MIPS74K_CORE_ID)) +/* Manufacturer Ids */ +#define MFGID_ARM 0x43b +#define MFGID_BRCM 0x4bf +#define MFGID_MIPS 0x4a7 + +/* Enumeration ROM registers */ +#define ER_EROMENTRY 0x000 +#define ER_REMAPCONTROL 0xe00 +#define ER_REMAPSELECT 0xe04 +#define ER_MASTERSELECT 0xe10 +#define ER_ITCR 0xf00 +#define ER_ITIP 0xf04 + +/* Erom entries */ +#define ER_TAG 0xe +#define ER_TAG1 0x6 +#define ER_VALID 1 +#define ER_CI 0 +#define ER_MP 2 +#define ER_ADD 4 +#define ER_END 0xe +#define ER_BAD 0xffffffff + +/* EROM CompIdentA */ +#define CIA_MFG_MASK 0xfff00000 +#define CIA_MFG_SHIFT 20 +#define CIA_CID_MASK 0x000fff00 +#define CIA_CID_SHIFT 8 +#define CIA_CCL_MASK 0x000000f0 +#define CIA_CCL_SHIFT 4 + +/* EROM CompIdentB */ +#define CIB_REV_MASK 0xff000000 +#define CIB_REV_SHIFT 24 +#define CIB_NSW_MASK 0x00f80000 +#define CIB_NSW_SHIFT 19 +#define CIB_NMW_MASK 0x0007c000 +#define CIB_NMW_SHIFT 14 +#define CIB_NSP_MASK 0x00003e00 +#define CIB_NSP_SHIFT 9 +#define CIB_NMP_MASK 0x000001f0 +#define CIB_NMP_SHIFT 4 + +/* EROM AddrDesc */ +#define AD_ADDR_MASK 0xfffff000 +#define AD_SP_MASK 0x00000f00 +#define AD_SP_SHIFT 8 +#define AD_ST_MASK 0x000000c0 +#define AD_ST_SHIFT 6 +#define AD_ST_SLAVE 0x00000000 +#define AD_ST_BRIDGE 0x00000040 +#define AD_ST_SWRAP 0x00000080 +#define AD_ST_MWRAP 0x000000c0 +#define AD_SZ_MASK 0x00000030 +#define AD_SZ_SHIFT 4 +#define AD_SZ_4K 0x00000000 +#define AD_SZ_8K 0x00000010 +#define AD_SZ_16K 0x00000020 +#define AD_SZ_SZD 0x00000030 +#define AD_AG32 0x00000008 +#define AD_ADDR_ALIGN 0x00000fff +#define AD_SZ_BASE 0x00001000/* 4KB */ + +/* EROM SizeDesc */ +#define SD_SZ_MASK 0xfffff000 +#define SD_SG32 0x00000008 +#define SD_SZ_ALIGN 0x00000fff + +/* resetctrl */ +#define AIRC_RESET 1 + +typedef volatile struct _aidmp { +u32 oobselina30;/* 0x000 */ +u32 oobselina74;/* 0x004 */ +u32 PAD[6 ]; +u32 oobselinb30;/* 0x020 */ +u32 oobselinb74;/* 0x024 */ +u32 PAD[6 ]; +u32 oobselinc30;/* 0x040 */ +u32 oobselinc74;/* 0x044 */ +u32 PAD[6 ]; +u32 oobselind30;/* 0x060 */ +u32 oobselind74;/* 0x064 */ +u32 PAD[38 ]; +u32 oobselouta30;/* 0x100 */ +u32 oobselouta74;/* 0x104 */ +u32 PAD[6 ]; +u32 oobseloutb30;/* 0x120 */ +u32 oobseloutb74;/* 0x124 */ +u32 PAD[6 ]; +u32 oobseloutc30;/* 0x140 */ +u32 oobseloutc74;/* 0x144 */ +u32 PAD[6 ]; +u32 oobseloutd30;/* 0x160 */ +u32 oobseloutd74;/* 0x164 */ +u32 PAD[38 ]; +u32 oobsynca;/* 0x200 */ +u32 oobseloutaen;/* 0x204 */ +u32 PAD[6 ]; +u32 oobsyncb;/* 0x220 */ +u32 oobseloutben;/* 0x224 */ +u32 PAD[6 ]; +u32 oobsyncc;/* 0x240 */ +u32 oobseloutcen;/* 0x244 */ +u32 PAD[6 ]; +u32 oobsyncd;/* 0x260 */ +u32 oobseloutden;/* 0x264 */ +u32 PAD[38 ]; +u32 oobaextwidth;/* 0x300 */ +u32 oobainwidth;/* 0x304 */ +u32 oobaoutwidth;/* 0x308 */ +u32 PAD[5 ]; +u32 oobbextwidth;/* 0x320 */ +u32 oobbinwidth;/* 0x324 */ +u32 oobboutwidth;/* 0x328 */ +u32 PAD[5 ]; +u32 oobcextwidth;/* 0x340 */ +u32 oobcinwidth;/* 0x344 */ +u32 oobcoutwidth;/* 0x348 */ +u32 PAD[5 ]; +u32 oobdextwidth;/* 0x360 */ +u32 oobdinwidth;/* 0x364 */ +u32 oobdoutwidth;/* 0x368 */ +u32 PAD[37 ]; +u32 ioctrlset;/* 0x400 */ +u32 ioctrlclear;/* 0x404 */ +u32 ioctrl;/* 0x408 */ +u32 PAD[61 ]; +u32 iostatus;/* 0x500 */ +u32 PAD[127 ]; +u32 ioctrlwidth;/* 0x700 */ +u32 iostatuswidth;/* 0x704 */ +u32 PAD[62 ]; +u32 resetctrl;/* 0x800 */ +u32 resetstatus;/* 0x804 */ +u32 resetreadid;/* 0x808 */ +u32 resetwriteid;/* 0x80c */ +u32 PAD[60 ]; +u32 errlogctrl;/* 0x900 */ +u32 errlogdone;/* 0x904 */ +u32 errlogstatus;/* 0x908 */ +u32 errlogaddrlo;/* 0x90c */ +u32 errlogaddrhi;/* 0x910 */ +u32 errlogid;/* 0x914 */ +u32 errloguser;/* 0x918 */ +u32 errlogflags;/* 0x91c */ +u32 PAD[56 ]; +u32 intstatus;/* 0xa00 */ +u32 PAD[127 ]; +u32 config;/* 0xe00 */ +u32 PAD[63 ]; +u32 itcr;/* 0xf00 */ +u32 PAD[3 ]; +u32 itipooba;/* 0xf10 */ +u32 itipoobb;/* 0xf14 */ +u32 itipoobc;/* 0xf18 */ +u32 itipoobd;/* 0xf1c */ +u32 PAD[4 ]; +u32 itipoobaout;/* 0xf30 */ +u32 itipoobbout;/* 0xf34 */ +u32 itipoobcout;/* 0xf38 */ +u32 itipoobdout;/* 0xf3c */ +u32 PAD[4 ]; +u32 itopooba;/* 0xf50 */ +u32 itopoobb;/* 0xf54 */ +u32 itopoobc;/* 0xf58 */ +u32 itopoobd;/* 0xf5c */ +u32 PAD[4 ]; +u32 itopoobain;/* 0xf70 */ +u32 itopoobbin;/* 0xf74 */ +u32 itopoobcin;/* 0xf78 */ +u32 itopoobdin;/* 0xf7c */ +u32 PAD[4 ]; +u32 itopreset;/* 0xf90 */ +u32 PAD[15 ]; +u32 peripherialid4;/* 0xfd0 */ +u32 peripherialid5;/* 0xfd4 */ +u32 peripherialid6;/* 0xfd8 */ +u32 peripherialid7;/* 0xfdc */ +u32 peripherialid0;/* 0xfe0 */ +u32 peripherialid1;/* 0xfe4 */ +u32 peripherialid2;/* 0xfe8 */ +u32 peripherialid3;/* 0xfec */ +u32 componentid0;/* 0xff0 */ +u32 componentid1;/* 0xff4 */ +u32 componentid2;/* 0xff8 */ +u32 componentid3;/* 0xffc */ +}aidmp_t ; +/* EROM parsing */ static u32
drivers/staging/brcm80211/brcmsmac/aiutils.h +0 -3
@@ -17,9 +17,6 @@#ifndef _BRCM_AIUTILS_H_#define _BRCM_AIUTILS_H_ -/* Include the soci specific files */ -#include <aidmp.h> -/* * SOC Interconnect Address Map. * All regions may not exist on all chips.
drivers/staging/brcm80211/brcmsmac/scb.h +1 -0
@@ -18,6 +18,7 @@#define _BRCM_SCB_H_#include <linux/if_ether.h> /* for ETH_ALEN */ +#include <defs.h> #define AMPDU_TX_BA_MAX_WSIZE 64/* max Tx ba window size (in pdu) */ /* structure to store per-tid state for the ampdu initiator */
drivers/staging/brcm80211/include/aidmp.h deleted +0 -372
372 lines not on this page · raw message
drivers/staging/brcm80211/include/soc.h +0 -3
@@ -17,9 +17,6 @@#ifndef _BRCM_SOC_H#define _BRCM_SOC_H -/* Include the soci specific files */ -#include <aidmp.h> -/* * SOC Interconnect Address Map. * All regions may not exist on all chips.
Signature · 1 line
1.7.4.1
PATCH 76/83 staging: brcm80211: cleaned include/brcm_hw_ids.h
In reply to Roland VossenCode cleanup.
--- drivers/staging/brcm80211/brcmsmac/aiutils.c | 9 +++ drivers/staging/brcm80211/brcmsmac/aiutils.h | 17 ++++++ drivers/staging/brcm80211/brcmsmac/types.h | 38 +++++++++++++ drivers/staging/brcm80211/include/brcm_hw_ids.h | 66 ----------------------- 4 files changed, 64 insertions(+), 66 deletions(-)
drivers/staging/brcm80211/brcmsmac/aiutils.c +9 -0
@@ -234,6 +234,15 @@#define SD_SG32 0x00000008#define SD_SZ_ALIGN 0x00000fff +#define PCI_CFG_GPIO_SCS 0x10/* PCI config space bit 4 for 4306c0 slow clock source */ +#define PCI_CFG_GPIO_XTAL 0x40/* PCI config space GPIO 14 for Xtal power-up */ +#define PCI_CFG_GPIO_PLL 0x80/* PCI config space GPIO 15 for PLL power-down */ + +/* power control defines */ +#define PLL_DELAY 150/* us pll on delay */ +#define FREF_DELAY 200/* us fref change delay */ +#define XTAL_ON_DELAY 1000/* us crystal power-on delay */ +/* resetctrl */ #define AIRC_RESET 1
drivers/staging/brcm80211/brcmsmac/aiutils.h +17 -0
@@ -259,6 +259,23 @@#define CST4330_CBUCK_POWER_OK 0x00004000#define CST4330_BB_PLL_LOCKED 0x00008000 +/* Package IDs */ +#define BCM4329_289PIN_PKG_ID 0/* 4329 289-pin package id */ +#define BCM4329_182PIN_PKG_ID 1/* 4329N 182-pin package id */ +#define BCM4717_PKG_ID 9/* 4717 package id */ +#define BCM4718_PKG_ID 10/* 4718 package id */ +#define HDLSIM_PKG_ID 14/* HDL simulator package id */ +#define HWSIM_PKG_ID 15/* Hardware simulator package id */ +#define BCM43224_FAB_SMIC 0xa/* the chip is manufactured by SMIC */ + +/* these are router chips */ +#define BCM4716_CHIP_ID 0x4716/* 4716 chipcommon chipid */ +#define BCM47162_CHIP_ID 47162/* 47162 chipcommon chipid */ +#define BCM4748_CHIP_ID 0x4748/* 4716 chipcommon chipid (OTP, RBBU) */ +#define BCM5356_CHIP_ID 0x5356/* 5356 chipcommon chipid */ +#define BCM5357_CHIP_ID 0x5357/* 5357 chipcommon chipid */ + +#define SI_INFO (sih) ((si_info_t *)sih)#define GOODCOREADDR (x, b) \
drivers/staging/brcm80211/brcmsmac/types.h +38 -0
@@ -33,6 +33,44 @@#define MAX_DMA_SEGS 4 +/* boardflags */ +#define BFL_PACTRL 0x00000002/* Board has gpio 9 controlling the PA */ +#define BFL_NOPLLDOWN 0x00000020/* Not ok to power down the chip pll and oscillator */ +#define BFL_FEM 0x00000800/* Board supports the Front End Module */ +#define BFL_EXTLNA 0x00001000/* Board has an external LNA in 2.4GHz band */ +#define BFL_NOPA 0x00010000/* Board has no PA */ +#define BFL_BUCKBOOST 0x00200000/* Power topology uses BUCKBOOST */ +#define BFL_FEM_BT 0x00400000/* Board has FEM and switch to share antenna w/ BT */ +#define BFL_NOCBUCK 0x00800000/* Power topology doesn't use CBUCK */ +#define BFL_PALDO 0x02000000/* Power topology uses PALDO */ +#define BFL_EXTLNA_5GHz 0x10000000/* Board has an external LNA in 5GHz band */ + +/* boardflags2 */ +#define BFL2_RXBB_INT_REG_DIS 0x00000001/* Board has an external rxbb regulator */ +#define BFL2_APLL_WAR 0x00000002/* Flag to implement alternative A-band PLL settings */ +#define BFL2_TXPWRCTRL_EN 0x00000004/* Board permits enabling TX Power Control */ +#define BFL2_2X4_DIV 0x00000008/* Board supports the 2X4 diversity switch */ +#define BFL2_5G_PWRGAIN 0x00000010/* Board supports 5G band power gain */ +#define BFL2_PCIEWAR_OVR 0x00000020/* Board overrides ASPM and Clkreq settings */ +#define BFL2_LEGACY 0x00000080 +#define BFL2_SKWRKFEM_BRD 0x00000100/* 4321mcm93 board uses Skyworks FEM */ +#define BFL2_SPUR_WAR 0x00000200/* Board has a WAR for clock-harmonic spurs */ +#define BFL2_GPLL_WAR 0x00000400/* Flag to narrow G-band PLL loop b/w */ +#define BFL2_SINGLEANT_CCK 0x00001000/* Tx CCK pkts on Ant 0 only */ +#define BFL2_2G_SPUR_WAR 0x00002000/* WAR to reduce and avoid clock-harmonic spurs in 2G */ +#define BFL2_GPLL_WAR2 0x00010000/* Flag to widen G-band PLL loop b/w */ +#define BFL2_IPALVLSHIFT_3P3 0x00020000 +#define BFL2_INTERNDET_TXIQCAL 0x00040000/* Use internal envelope detector for TX IQCAL */ +#define BFL2_XTALBUFOUTEN 0x00080000/* Keep the buffered Xtal output from radio "ON" +* Most drivers will turn it off without this flag +* to save power. +*/ + +/* board specific GPIO assignment, gpio 0-3 are also customer-configurable led */ +#define BOARD_GPIO_PACTRL 0x200/* bit 9 controls the PA on new 4306 boards */ +#define BOARD_GPIO_12 0x1000/* gpio 12 */ +#define BOARD_GPIO_13 0x2000/* gpio 13 */ + #define BCMMSG(dev, fmt, args...) \ do { \ if (brcm_msg_level & LOG_TRACE_VAL) \
drivers/staging/brcm80211/include/brcm_hw_ids.h +0 -66
70 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 77/83 staging: brcm80211: moved /include/sdio_host.h to /brcmfmac dir
In reply to Roland VossenCode cleanup.
---
drivers/staging/brcm80211/brcmfmac/bcmsdbus.h | 2 ++
drivers/staging/brcm80211/brcmfmac/bcmsdh.c | 2 --
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c | 2 +-
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 2 +-
.../brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c | 2 +-
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 4 +---
.../brcm80211/{include => brcmfmac}/sdio_host.h | 0
7 files changed, 6 insertions(+), 8 deletions(-)
rename drivers/staging/brcm80211/{include => brcmfmac}/sdio_host.h (100%)drivers/staging/brcm80211/brcmfmac/bcmsdbus.h +2 -0
@@ -17,6 +17,8 @@#ifndef _sdio_api_h_#define _sdio_api_h_ +#include "sdio_host.h" +#define SDIOH_API_RC_SUCCESS (0x00)#define SDIOH_API_RC_FAIL (0x01)#define SDIOH_API_SUCCESS (status) (status == 0)
drivers/staging/brcm80211/brcmfmac/bcmsdh.c +0 -2
@@ -25,8 +25,6 @@#include <brcmu_wifi.h> #include <soc.h> -#include <sdio_host.h> /* BRCM API for SDIO -clients (such as wl, dhd) */ #include <bcmsdbus.h> /* common SDIO/controller interface */ #include <sbsdio.h> /* BRCM sdio device core */
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c +1 -1
@@ -28,8 +28,8 @@#include <defs.h> #include <brcm_hw_ids.h> #include <brcmu_utils.h> -#include <sdio_host.h> #include <brcmu_wifi.h> +#include "sdio_host.h" #if defined(OOB_INTR_ONLY )#include <linux/irq.h>
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +1 -1
@@ -20,7 +20,7 @@#include <brcm_hw_ids.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> -#include <sdio_host.h> +#include "sdio_host.h" #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* ioctl/iovars */
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c +1 -1
@@ -20,7 +20,7 @@#include <defs.h> #include <brcmu_utils.h> #include <brcmu_wifi.h> -#include <sdio_host.h> +#include "sdio_host.h" #include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */ #include <sdiovar.h> /* to get msglevel bit values */
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +1 -3
@@ -22,9 +22,7 @@#include <linux/mmc/sdio.h> #include <asm/unaligned.h> #include <defs.h> -#include <sdio_host.h> - -#include <defs.h> +#include "sdio_host.h" #include <brcmu_wifi.h> #include <brcmu_utils.h> #include <brcm_hw_ids.h>
drivers/staging/brcm80211/brcmfmac/sdio_host.h renamed from drivers/staging/brcm80211/include/sdio_host.h +0 -0
Signature · 1 line
1.7.4.1
PATCH 78/83 staging: brcm80211: removed unused definitions from include/soc.h
In reply to Roland VossenCode cleanup.
--- drivers/staging/brcm80211/include/soc.h | 100 ------------------------------- 1 files changed, 0 insertions(+), 100 deletions(-)
drivers/staging/brcm80211/include/soc.h +0 -100
@@ -17,54 +17,12 @@#ifndef _BRCM_SOC_H#define _BRCM_SOC_H -/* -* SOC Interconnect Address Map. -* All regions may not exist on all chips. -*/ -#define SI_SDRAM_BASE 0x00000000/* Physical SDRAM */ -#define SI_PCI_MEM 0x08000000/* Host Mode sb2pcitranslation0 (64 MB) */ -#define SI_PCI_MEM_SZ (64 * 1024 * 1024) -#define SI_PCI_CFG 0x0c000000/* Host Mode sb2pcitranslation1 (64 MB) */ -#define SI_SDRAM_SWAPPED 0x10000000/* Byteswapped Physical SDRAM */ -#define SI_SDRAM_R2 0x80000000/* Region 2 for sdram (512 MB) */ -#ifdef SI_ENUM_BASE_VARIABLE #define SI_ENUM_BASE (sii->pub.si_enum_base)#else #define SI_ENUM_BASE 0x18000000/* Enumeration space base */ #endif /* SI_ENUM_BASE_VARIABLE */ -#define SI_WRAP_BASE 0x18100000/* Wrapper space base */ -#define SI_CORE_SIZE 0x1000/* each core gets 4Kbytes for registers */ -#define SI_MAXCORES 16/* Max cores (this is arbitrary, for software -* convenience and could be changed if we -* make any larger chips -*/ - -#define SI_FASTRAM 0x19000000/* On-chip RAM on chips that also have DDR */ -#define SI_FASTRAM_SWAPPED 0x19800000 - -#define SI_FLASH2 0x1c000000/* Flash Region 2 (region 1 shadowed here) */ -#define SI_FLASH2_SZ 0x02000000/* Size of Flash Region 2 */ -#define SI_ARMCM3_ROM 0x1e000000/* ARM Cortex-M3 ROM */ -#define SI_FLASH1 0x1fc00000/* MIPS Flash Region 1 */ -#define SI_FLASH1_SZ 0x00400000/* MIPS Size of Flash Region 1 */ -#define SI_ARM7S_ROM 0x20000000/* ARM7TDMI-S ROM */ -#define SI_ARMCM3_SRAM2 0x60000000/* ARM Cortex-M3 SRAM Region 2 */ -#define SI_ARM7S_SRAM2 0x80000000/* ARM7TDMI-S SRAM Region 2 */ -#define SI_ARM_FLASH1 0xffff0000/* ARM Flash Region 1 */ -#define SI_ARM_FLASH1_SZ 0x00010000/* ARM Size of Flash Region 1 */ - -#define SI_PCI_DMA 0x40000000/* Client Mode sb2pcitranslation2 (1 GB) */ -#define SI_PCI_DMA2 0x80000000/* Client Mode sb2pcitranslation2 (1 GB) */ -#define SI_PCI_DMA_SZ 0x40000000/* Client Mode sb2pcitranslation2 size in bytes */ -#define SI_PCIE_DMA_L32 0x00000000/* PCIE Client Mode sb2pcitranslation2 -* (2 ZettaBytes), low 32 bits -*/ -#define SI_PCIE_DMA_H32 0x80000000/* PCIE Client Mode sb2pcitranslation2 -* (2 ZettaBytes), high 32 bits -*/ -/* core codes */ #define NODEV_CORE_ID 0x700/* Invalid coreid */ #define CC_CORE_ID 0x800/* chipcommon core */
@@ -127,14 +85,6 @@* unused address ranges */ -/* There are TWO constants on all Broadcom chips: SI_ENUM_BASE above, -* and chipcommon being the first core: -*/ -#define SI_CC_IDX 0 - -/* SOC Interconnect types (aka chip types) */ -#define SOCI_AI 1 -/* Common core control flags */ #define SICF_BIST_EN 0x8000#define SICF_PME_EN 0x4000
@@ -142,54 +92,4 @@#define SICF_FGC 0x0002#define SICF_CLOCK_EN 0x0001 -/* Common core status flags */ -#define SISF_BIST_DONE 0x8000 -#define SISF_BIST_ERROR 0x4000 -#define SISF_GATED_CLK 0x2000 -#define SISF_DMA64 0x1000 -#define SISF_CORE_BITS 0x0fff - -/* A register that is common to all cores to -* communicate w/PMU regarding clock control. -*/ -#define SI_CLK_CTL_ST 0x1e0/* clock control and status */ - -/* clk_ctl_st register */ -#define CCS_FORCEALP 0x00000001/* force ALP request */ -#define CCS_FORCEHT 0x00000002/* force HT request */ -#define CCS_FORCEILP 0x00000004/* force ILP request */ -#define CCS_ALPAREQ 0x00000008/* ALP Avail Request */ -#define CCS_HTAREQ 0x00000010/* HT Avail Request */ -#define CCS_FORCEHWREQOFF 0x00000020/* Force HW Clock Request Off */ -#define CCS_ERSRC_REQ_MASK 0x00000700/* external resource requests */ -#define CCS_ERSRC_REQ_SHIFT 8 -#define CCS_ALPAVAIL 0x00010000/* ALP is available */ -#define CCS_HTAVAIL 0x00020000/* HT is available */ -#define CCS_BP_ON_APL 0x00040000/* RO: Backplane is running on ALP clock */ -#define CCS_BP_ON_HT 0x00080000/* RO: Backplane is running on HT clock */ -#define CCS_ERSRC_STS_MASK 0x07000000/* external resource status */ -#define CCS_ERSRC_STS_SHIFT 24 - -#define CCS0_HTAVAIL 0x00010000/* HT avail in chipc and pcmcia on 4328a0 */ -#define CCS0_ALPAVAIL 0x00020000/* ALP avail in chipc and pcmcia on 4328a0 */ - -/* Not really related to SOC Interconnect, but a couple of software -* conventions for the use the flash space: -*/ - -/* Minimum amount of flash we support */ -#define FLASH_MIN 0x00020000/* Minimum flash size */ - -/* A boot/binary may have an embedded block that describes its size */ -#define BISZ_OFFSET 0x3e0/* At this offset into the binary */ -#define BISZ_MAGIC 0x4249535a/* Marked with this value: 'BISZ' */ -#define BISZ_MAGIC_IDX 0/* Word 0: magic */ -#define BISZ_TXTST_IDX 1/* 1: text start */ -#define BISZ_TXTEND_IDX 2/* 2: text end */ -#define BISZ_DATAST_IDX 3/* 3: data start */ -#define BISZ_DATAEND_IDX 4/* 4: data end */ -#define BISZ_BSSST_IDX 5/* 5: bss start */ -#define BISZ_BSSEND_IDX 6/* 6: bss end */ -#define BISZ_SIZE 7/* descriptor size in 32-bit integers */ -#endif /* _BRCM_SOC_H */
Signature · 1 line
1.7.4.1
PATCH 79/83 staging: brcm80211: moved /include/srom.h into /brcmsmac dir
In reply to Roland VossenCode cleanup.
---
drivers/staging/brcm80211/brcmsmac/aiutils.c | 2 +-
drivers/staging/brcm80211/brcmsmac/bottom_mac.c | 2 +-
drivers/staging/brcm80211/brcmsmac/main.c | 2 +-
drivers/staging/brcm80211/brcmsmac/phy_shim.c | 2 +-
drivers/staging/brcm80211/brcmsmac/srom.c | 2 +-
.../staging/brcm80211/{include => brcmsmac}/srom.h | 0
6 files changed, 5 insertions(+), 5 deletions(-)
rename drivers/staging/brcm80211/{include => brcmsmac}/srom.h (100%)drivers/staging/brcm80211/brcmsmac/aiutils.c +1 -1
@@ -29,7 +29,7 @@/* ********** from siutils.c *********** */ #include <nicpci.h> -#include <srom.h> +#include "srom.h" #include <pmu.h> #include <scb.h> #include <pub.h>
drivers/staging/brcm80211/brcmsmac/bottom_mac.c +1 -1
@@ -25,7 +25,7 @@#include <brcm_hw_ids.h> #include <brcmu_wifi.h> #include <aiutils.h> -#include <srom.h> +#include "srom.h" #include "otp.h" #include <brcmu_utils.h> #include <chipcommon.h>
drivers/staging/brcm80211/brcmsmac/main.c +1 -1
@@ -24,7 +24,7 @@#include <brcmu_utils.h> #include <brcmu_wifi.h> #include <aiutils.h> -#include <srom.h> +#include "srom.h" #include "dma.h" #include "pmu.h"
drivers/staging/brcm80211/brcmsmac/phy_shim.c +1 -1
@@ -40,7 +40,7 @@#include "pub.h" #include "phy/phy_hal.h" #include "channel.h" -#include <srom.h> +#include "srom.h" #include "key.h" #include "bottom_mac.h" #include "phy_hal.h"
drivers/staging/brcm80211/brcmsmac/srom.c +1 -1
@@ -27,7 +27,7 @@#include <brcm_hw_ids.h> #include <nicpci.h> #include <aiutils.h> -#include <srom.h> +#include "srom.h" #include "otp.h" #define SROM_OFFSET (sih) ((sih->ccrev > 31) ? \
drivers/staging/brcm80211/brcmsmac/srom.h renamed from drivers/staging/brcm80211/include/srom.h +0 -0
Signature · 1 line
1.7.4.1
PATCH 80/83 staging: brcm80211: deleted brcmsmac/cfg.h and brcmsmac/bsscfg.h
In reply to Roland VossenCode cleanup. Moved used sections to other source files.
--- drivers/staging/brcm80211/brcmsmac/alloc.c | 2 - drivers/staging/brcm80211/brcmsmac/ampdu.c | 1 - drivers/staging/brcm80211/brcmsmac/antsel.c | 2 - drivers/staging/brcm80211/brcmsmac/bottom_mac.c | 1 - drivers/staging/brcm80211/brcmsmac/bsscfg.h | 135 ----------- drivers/staging/brcm80211/brcmsmac/cfg.h | 280 ---------------------- drivers/staging/brcm80211/brcmsmac/channel.c | 1 - drivers/staging/brcm80211/brcmsmac/channel.h | 7 + drivers/staging/brcm80211/brcmsmac/mac80211_if.c | 1 - drivers/staging/brcm80211/brcmsmac/main.c | 30 +++- drivers/staging/brcm80211/brcmsmac/main.h | 80 ++++++ drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c | 2 - drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c | 1 - drivers/staging/brcm80211/brcmsmac/phy/phy_n.c | 1 - drivers/staging/brcm80211/brcmsmac/phy_shim.c | 1 - drivers/staging/brcm80211/brcmsmac/rate.c | 1 - drivers/staging/brcm80211/brcmsmac/stf.c | 1 - drivers/staging/brcm80211/brcmsmac/types.h | 171 +++++++++++++ 18 files changed, 286 insertions(+), 432 deletions(-) delete mode 100644 drivers/staging/brcm80211/brcmsmac/bsscfg.h delete mode 100644 drivers/staging/brcm80211/brcmsmac/cfg.h
drivers/staging/brcm80211/brcmsmac/alloc.c +0 -2
@@ -23,13 +23,11 @@#include "d11.h" #include "types.h" -#include "cfg.h" #include "scb.h" #include "pub.h" #include "key.h" #include "alloc.h" #include "rate.h" -#include "bsscfg.h" #include "phy/phy_hal.h" #include "channel.h" #include "main.h"
drivers/staging/brcm80211/brcmsmac/ampdu.c +0 -1
@@ -23,7 +23,6 @@#include <d11.h> #include "types.h" -#include "cfg.h" #include "rate.h" #include "scb.h" #include "pub.h"
drivers/staging/brcm80211/brcmsmac/antsel.c +0 -2
@@ -14,8 +14,6 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <cfg.h> -#include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h>
drivers/staging/brcm80211/brcmsmac/bottom_mac.c +0 -1
@@ -35,7 +35,6 @@#include "types.h" #include "pmu.h" #include "d11.h" -#include "cfg.h" #include "rate.h" #include "scb.h" #include "pub.h"
drivers/staging/brcm80211/brcmsmac/bsscfg.h deleted +0 -135
135 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/cfg.h deleted +0 -280
280 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/channel.c +0 -1
@@ -26,7 +26,6 @@#include "types.h" #include "d11.h" -#include "cfg.h" #include "scb.h" #include "pub.h" #include "key.h"
drivers/staging/brcm80211/brcmsmac/channel.h +7 -0
@@ -19,6 +19,7 @@#define WLC_TXPWR_DB_FACTOR 4/* conversion for phy txpwr cacluations that use .25 dB units */ +struct wlc_info ;/* maxpwr mapping to 5GHz band channels:
@@ -50,6 +51,12 @@ struct wlc_info;#define WLC_MAXPWR_TBL_SIZE 6/* max of BAND_5G_PWR_LVLS and 6 for 2.4 GHz */ #define WLC_MAXPWR_MIMO_TBL_SIZE 14/* max of BAND_5G_PWR_LVLS and 14 for 2.4 GHz */ +#define NBANDS (wlc) ((wlc)->pub->_nbands) +#define NBANDS_PUB (pub) ((pub)->_nbands) +#define NBANDS_HW (hw) ((hw)->_nbands) + +#define IS_SINGLEBAND_5G (device) 0 +/* locale channel and power info. */ typedef struct { u32 valid_channels;
drivers/staging/brcm80211/brcmsmac/mac80211_if.c +0 -1
@@ -34,7 +34,6 @@#include "phy/phy_int.h" #include "d11.h" #include "types.h" -#include "cfg.h" #include "key.h" #include "channel.h" #include "scb.h"
drivers/staging/brcm80211/brcmsmac/main.c +28 -2
@@ -30,12 +30,10 @@#include "pmu.h" #include "d11.h" #include "types.h" -#include "cfg.h" #include "rate.h" #include "scb.h" #include "pub.h" #include "key.h" -#include "bsscfg.h" #include "phy/phy_hal.h" #include "channel.h" #include "main.h"
@@ -239,6 +237,18 @@ const u8 prio2fifo[NUMPRIO] = {#define _WLC_PREC_VO 12/* Vo - Voice */ #define _WLC_PREC_NC 14/* NC - Network Control */ +#define MAXMACLIST 64/* max # source MAC matches */ +#define BCN_TEMPLATE_COUNT 2 + +#define WLC_BSSCFG_HW_BCN 0x20/* The BSS is generating beacons in HW */ + +#define HWBCN_ENAB (cfg) (((cfg)->flags & WLC_BSSCFG_HW_BCN) != 0) +#define HWPRB_ENAB (cfg) (((cfg)->flags & WLC_BSSCFG_HW_PRB) != 0) + +#define MBSS_BCN_ENAB (cfg) 0 +#define MBSS_PRB_ENAB (cfg) 0 +#define SOFTBCN_ENAB (pub) (0) +/* 802.1D Priority to precedence queue mapping */ const u8 wlc_prio2prec_map[] = { _WLC_PREC_BE,/* 0 BE - Best-effort */
@@ -251,6 +261,22 @@ const u8 wlc_prio2prec_map[] = { _WLC_PREC_NC, /* 7 NC - Network Control */ }; +/* Check if a particular BSS config is AP or STA */ +#define BSSCFG_AP (cfg) (0) +#define BSSCFG_STA (cfg) (1) +#define BSSCFG_IBSS (cfg) (!(cfg)->BSS) + +/* Iterator for "associated" STA bss configs: +(struct wlc_info *wlc, int idx, struct wlc_bsscfg *cfg) */ +#define FOREACH_AS_STA (wlc, idx, cfg) \ + for (idx = 0; (int) idx < WLC_MAXBSSCFG; idx++) \ + if ((cfg = (wlc)->bsscfg[idx]) && BSSCFG_STA(cfg) && cfg->associated) + +/* As above for all non-NULL BSS configs */ +#define FOREACH_BSS (wlc, idx, cfg) \ + for (idx = 0; (int) idx < WLC_MAXBSSCFG; idx++) \ + if ((cfg = (wlc)->bsscfg[idx])) +/* Sanity check for tx_prec_map and fifo synchup * Either there are some packets pending for the fifo, else if fifo is empty then * all the corresponding precmap bits should be set
drivers/staging/brcm80211/brcmsmac/main.h +80 -0
92 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c +0 -2
@@ -14,8 +14,6 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <cfg.h> -#include <linux/kernel.h> #include <linux/string.h> #include <linux/bitops.h>
drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c +0 -1
@@ -18,7 +18,6 @@#include <linux/string.h> #include <linux/bitops.h> #include <linux/delay.h> -#include <cfg.h> #include <linux/pci.h> #include <brcmu_utils.h> #include <aiutils.h>
drivers/staging/brcm80211/brcmsmac/phy/phy_n.c +0 -1
@@ -17,7 +17,6 @@#include <linux/kernel.h> #include <linux/string.h> #include <defs.h> -#include <cfg.h> #include <linux/delay.h> #include <linux/pci.h> #include <aiutils.h>
drivers/staging/brcm80211/brcmsmac/phy_shim.c +0 -1
@@ -33,7 +33,6 @@#include <pmu.h> #include "types.h" -#include "cfg.h" #include "d11.h" #include "rate.h" #include "scb.h"
drivers/staging/brcm80211/brcmsmac/rate.c +0 -1
@@ -23,7 +23,6 @@#include "types.h" #include "d11.h" -#include "cfg.h" #include "scb.h" #include "pub.h" #include "rate.h"
drivers/staging/brcm80211/brcmsmac/stf.c +0 -1
@@ -25,7 +25,6 @@#include "types.h" #include "d11.h" -#include "cfg.h" #include "rate.h" #include "scb.h" #include "pub.h"
drivers/staging/brcm80211/brcmsmac/types.h +171 -0
183 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 81/83 staging: brcm80211: removed keys.h
In reply to Roland VossenCode cleanup. Moved used definitions into main.h
--- drivers/staging/brcm80211/brcmsmac/alloc.c | 1 - drivers/staging/brcm80211/brcmsmac/ampdu.c | 1 - drivers/staging/brcm80211/brcmsmac/antsel.c | 1 - drivers/staging/brcm80211/brcmsmac/bottom_mac.c | 1 - drivers/staging/brcm80211/brcmsmac/channel.c | 1 - drivers/staging/brcm80211/brcmsmac/key.h | 142 ---------------------- drivers/staging/brcm80211/brcmsmac/mac80211_if.c | 1 - drivers/staging/brcm80211/brcmsmac/main.c | 3 - drivers/staging/brcm80211/brcmsmac/main.h | 43 +++++++ drivers/staging/brcm80211/brcmsmac/phy_shim.c | 1 - drivers/staging/brcm80211/brcmsmac/stf.c | 1 - 11 files changed, 43 insertions(+), 153 deletions(-) delete mode 100644 drivers/staging/brcm80211/brcmsmac/key.h
drivers/staging/brcm80211/brcmsmac/alloc.c +0 -1
@@ -25,7 +25,6 @@#include "types.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "alloc.h" #include "rate.h" #include "phy/phy_hal.h"
drivers/staging/brcm80211/brcmsmac/ampdu.c +0 -1
@@ -26,7 +26,6 @@#include "rate.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "phy/phy_hal.h" #include "antsel.h" #include "channel.h"
drivers/staging/brcm80211/brcmsmac/antsel.c +0 -1
@@ -26,7 +26,6 @@#include "d11.h" #include "rate.h" -#include "key.h" #include "scb.h" #include "pub.h" #include "phy/phy_hal.h"
drivers/staging/brcm80211/brcmsmac/bottom_mac.c +0 -1
@@ -38,7 +38,6 @@#include "rate.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "phy/phy_hal.h" #include "channel.h" #include "main.h"
drivers/staging/brcm80211/brcmsmac/channel.c +0 -1
@@ -28,7 +28,6 @@#include "d11.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "phy/phy_hal.h" #include "bottom_mac.h" #include "rate.h"
drivers/staging/brcm80211/brcmsmac/key.h deleted +0 -142
142 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/mac80211_if.c +0 -1
@@ -34,7 +34,6 @@#include "phy/phy_int.h" #include "d11.h" #include "types.h" -#include "key.h" #include "channel.h" #include "scb.h" #include "pub.h"
drivers/staging/brcm80211/brcmsmac/main.c +0 -3
@@ -33,7 +33,6 @@#include "rate.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "phy/phy_hal.h" #include "channel.h" #include "main.h"
@@ -521,8 +520,6 @@ void wlc_init(struct wlc_info *wlc) } } -wlc_key_hw_init_all (wlc); -wlc_bandinit_ordered (wlc, chanspec);wlc_init_scb (wlc, &global_scb);
drivers/staging/brcm80211/brcmsmac/main.h +43 -0
49 lines not on this page · raw message
drivers/staging/brcm80211/brcmsmac/phy_shim.c +0 -1
@@ -40,7 +40,6 @@#include "phy/phy_hal.h" #include "channel.h" #include "srom.h" -#include "key.h" #include "bottom_mac.h" #include "phy_hal.h" #include "main.h"
drivers/staging/brcm80211/brcmsmac/stf.c +0 -1
@@ -28,7 +28,6 @@#include "rate.h" #include "scb.h" #include "pub.h" -#include "key.h" #include "phy/phy_hal.h" #include "channel.h" #include "main.h"
Signature · 1 line
1.7.4.1
PATCH 82/83 staging: brcm80211: renamed file
In reply to Roland Vossen---
drivers/staging/brcm80211/brcmsmac/Makefile | 2 +-
drivers/staging/brcm80211/brcmsmac/antsel.c | 2 +-
.../brcm80211/brcmsmac/{bottom_mac.c => bmac.c} | 2 +-
.../brcm80211/brcmsmac/{bottom_mac.h => bmac.h} | 0
drivers/staging/brcm80211/brcmsmac/channel.c | 2 +-
drivers/staging/brcm80211/brcmsmac/main.c | 2 +-
drivers/staging/brcm80211/brcmsmac/phy_shim.c | 2 +-
drivers/staging/brcm80211/brcmsmac/stf.c | 2 +-
8 files changed, 7 insertions(+), 7 deletions(-)
rename drivers/staging/brcm80211/brcmsmac/{bottom_mac.c => bmac.c} (99%)
rename drivers/staging/brcm80211/brcmsmac/{bottom_mac.h => bmac.h} (100%)drivers/staging/brcm80211/brcmsmac/Makefile +1 -1
@@ -33,7 +33,7 @@ BRCMSMAC_OFILES := \ alloc.o \ ampdu.o \ antsel.o \ - bottom_mac.o \ + bmac.o \ channel.o \ main.o \ phy_shim.o \
drivers/staging/brcm80211/brcmsmac/antsel.c +1 -1
@@ -29,7 +29,7 @@#include "scb.h" #include "pub.h" #include "phy/phy_hal.h" -#include "bottom_mac.h" +#include "bmac.h" #include "channel.h" #include "main.h" #include "antsel.h"
drivers/staging/brcm80211/brcmsmac/bmac.c renamed from drivers/staging/brcm80211/brcmsmac/bottom_mac.c +1 -1
@@ -44,7 +44,7 @@#include "ucode_loader.h" #include "antsel.h" #include "alloc.h" -#include "bottom_mac.h" +#include "bmac.h" #include "mac80211_if.h" #define TIMER_INTERVAL_WATCHDOG_BMAC 1000/* watchdog timer, in unit of ms */
drivers/staging/brcm80211/brcmsmac/bmac.h renamed from drivers/staging/brcm80211/brcmsmac/bottom_mac.h +0 -0
drivers/staging/brcm80211/brcmsmac/channel.c +1 -1
@@ -29,7 +29,7 @@#include "scb.h" #include "pub.h" #include "phy/phy_hal.h" -#include "bottom_mac.h" +#include "bmac.h" #include "rate.h" #include "channel.h" #include "main.h"
drivers/staging/brcm80211/brcmsmac/main.c +1 -1
@@ -36,7 +36,7 @@#include "phy/phy_hal.h" #include "channel.h" #include "main.h" -#include "bottom_mac.h" +#include "bmac.h" #include "phy_hal.h" #include "antsel.h" #include "stf.h"
drivers/staging/brcm80211/brcmsmac/phy_shim.c +1 -1
@@ -40,7 +40,7 @@#include "phy/phy_hal.h" #include "channel.h" #include "srom.h" -#include "bottom_mac.h" +#include "bmac.h" #include "phy_hal.h" #include "main.h" #include "phy_shim.h"
drivers/staging/brcm80211/brcmsmac/stf.c +1 -1
@@ -31,7 +31,7 @@#include "phy/phy_hal.h" #include "channel.h" #include "main.h" -#include "bottom_mac.h" +#include "bmac.h" #include "stf.h" #define MIN_SPATIAL_EXPANSION 0
Signature · 1 line
1.7.4.1
PATCH 83/83 staging: brcm80211: updated TODO with current state of affairs
In reply to Roland Vossen--- drivers/staging/brcm80211/TODO | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/brcm80211/TODO +4 -4
@@ -6,13 +6,13 @@ Bugs brcmfmac and brcmsmac ===================== - -- Remove unnecessary includes, move #includes from .h files into .c files. -- Absorb and delete header files that are included in only one .c file +- replace company specific acronym wlc_ +- Resolve all XXX, TODO, FIXME in code brcmfmac ===================== - +- Remove unnecessary includes, move #includes from .h files into .c files. +- Absorb and delete header files that are included in only one .c file - ASSERTS not allowed in mainline, replace by warning + error handling - Replace printk and WL_ERROR() with proper routines - Replace driver's proprietary ssb interface with generic kernel ssb module
Signature · 1 line
1.7.4.1
2011/6/1 Roland Vossen <[email protected]>:
Quoted 1 line
Code cleanup. Removal of code that is not invoked.
Have you heard of "Release early, release often"? It's something, we like here...
I've no idea who will try to review 83 patches :|
And you didn't even send [00/83] with summary.
Signature · 1 line
Rafał
Quoted 5 lines · Rafał Miłecki
2011/6/1 Roland Vossen<[email protected]>:
Quoted 1 line
Code cleanup. Removal of code that is not invoked.
Have you heard of "Release early, release often"? It's something, we like here...
These are all changes that piled up during the merge window.
We had some issues previously with patch dependencies when sending patches out early and often, so we're trying to organize the patches a little better. Perhaps we went a little to far with this set. We'll try to find a better balance in the future.
Quoted 4 lines
I've no idea who will try to review 83 patches :|
And you didn't even send [00/83] with summary.
Yea, that's not good. Will make sure to include a summary in the future.
Thanks,
- Henry
W dniu 1 czerwca 2011 18:23 użytkownik Henry Ptasinski
Quoted 9 lines · <[email protected]> napisał:
Quoted 7 lines · Rafał Miłecki
2011/6/1 Roland Vossen<[email protected]>:
Quoted 2 lines
Code cleanup. Removal of code that is not invoked.
Have you heard of "Release early, release often"? It's something, we like here...
Quoted 6 lines
These are all changes that piled up during the merge window.
We had some issues previously with patch dependencies when sending patches out early and often, so we're trying to organize the patches a little better. Perhaps we went a little to far with this set. We'll try to find a better balance in the future.
Yeah, merge window is something ugly for development :( I got already lost with my bcma/b43 patches and I'm just waiting for John to start grabbing old patches.
John, wireless guys: did you ever consider creating some tree open during merge window? Something like to-become-wireless-next?
Signature · 1 line
Rafał
Roland,
I've passed an eye over the entire patch set.
My comments are pretty minor, but I've replied to the patches that I have concerns for. Please note that I'm not really a developer, and my comments are mostly style issues, not actual functional issues. Oh, and also, I read most of the patches out of order, so some of the comments may not make complete sense.
Overall, my comments are these:
1. If you're doing typedef removals in a patch, mention it in the summary.
2. Work on your summaries, there are a few cases where I think they're a little too terse.
3. Good work!
4. Keep going =)
A couple of items you might want to add to your TODO list:
1. Replace the REG_[RW] macros with inline functions or equivalent because they're ugly.
2. You shouldn't need to #ifdef on BIG_ENDIAN - there are a set of macros to help with working with different endian systems.
3. Do a typedef removal sweep over the code because typedefs are ugly =)
4. I had a glance at /Documentation/CodingStyle and saw that there were some issues mentioned in there that could be fixed in your code. You might also want to play with checkpatch.
5. Personally, I'd avoid void pointers, but I'm not sure of the exact rules. Could someone else weigh in on this?
I'm probably missing a whole lot of other, much more important, stuff, but this is what I saw.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/
Quoted 10 lines · Julian Calaby
Roland,
I've passed an eye over the entire patch set.
My comments are pretty minor, but I've replied to the patches that I have concerns for. Please note that I'm not really a developer, and my comments are mostly style issues, not actual functional issues. Oh, and also, I read most of the patches out of order, so some of the comments may not make complete sense.
Quoted 6 lines
Overall, my comments are these:
1. If you're doing typedef removals in a patch, mention it in the summary.
2. Work on your summaries, there are a few cases where I think they're a little too terse.
3. Good work!
4. Keep going =)
Thanks ! Your comments are noted. Btw, this patch train is not just the fruit of my labor, so Arend and Franky deserve this credit as well :-)
Quoted 3 lines
A couple of items you might want to add to your TODO list:
1. Replace the REG_[RW] macros with inline functions or equivalent because they're ugly.
Noted it down.
Quoted 2 lines
2. You shouldn't need to #ifdef on
BIG_ENDIAN- there are a set of macros to help with working with different endian systems.
Noted that one down as well.
Quoted 1 line
3. Do a typedef removal sweep over the code because typedefs are ugly =)
Agree. At the end of the patch train, all typedefs have been moved over to one file. Next step is to get rid of them.
Quoted 3 lines
4. I had a glance at /Documentation/CodingStyle and saw that there were some issues mentioned in there that could be fixed in your code. You might also want to play with checkpatch.
When writing new code, we adhere to checkpatch. But in these patches, a lot of (existing) code was moved around. We could have placed a separate commit after each move that fixed up checkpatch issues (not in the same commit since that blocks tools from detecting the movement of code), but at the moment the focus is on structural code cleanup (reducing number of .c and .h files, removing dead code, etc).
Quoted 2 lines
5. Personally, I'd avoid void pointers, but I'm not sure of the exact rules. Could someone else weigh in on this?
I am curious too, the CodingStyle doc says nothing about it.
Quoted 3 lines
I'm probably missing a whole lot of other, much more important, stuff, but this is what I saw.
Valuable feedback, taken into account. Thanks for investing time in this.
Bye, Roland.
Quoted 19 lines · Roland Vossen
Quoted 11 lines · Julian Calaby
Roland,
I've passed an eye over the entire patch set.
My comments are pretty minor, but I've replied to the patches that I have concerns for. Please note that I'm not really a developer, and my comments are mostly style issues, not actual functional issues. Oh, and also, I read most of the patches out of order, so some of the comments may not make complete sense.
Quoted 6 lines
Overall, my comments are these:
1. If you're doing typedef removals in a patch, mention it in the summary.
2. Work on your summaries, there are a few cases where I think they're a little too terse.
3. Good work!
4. Keep going =)
Quoted 2 lines
Thanks ! Your comments are noted. Btw, this patch train is not just the fruit of my labor, so Arend and Franky deserve this credit as well :-)
Of course! I was addressing you as you posted them to the list.
Quoted 4 lines
Quoted 1 line
3. Do a typedef removal sweep over the code because typedefs are ugly =)
Agree. At the end of the patch train, all typedefs have been moved over to one file. Next step is to get rid of them.
Cool!
Quoted 10 lines
Quoted 3 lines
4. I had a glance at /Documentation/CodingStyle and saw that there were some issues mentioned in there that could be fixed in your code. You might also want to play with checkpatch.
When writing new code, we adhere to checkpatch. But in these patches, a lot of (existing) code was moved around. We could have placed a separate commit after each move that fixed up checkpatch issues (not in the same commit since that blocks tools from detecting the movement of code), but at the moment the focus is on structural code cleanup (reducing number of .c and .h files, removing dead code, etc).
Fair enough, was just pointing it out.
Quoted 4 lines
Quoted 2 lines
I'm probably missing a whole lot of other, much more important, stuff, but this is what I saw.
Valuable feedback, taken into account. Thanks for investing time in this.
No problem, I try to pass my eye over all patches that make their way through the list, particularly if they're for drivers I care about.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/
Quoted 3 lines · Julian Calaby
Roland,
I've passed an eye over the entire patch set.
Thanks for taking the time and putting in the effort to reveiw them all.
Quoted 8 lines
My comments are pretty minor, but I've replied to the patches that I have concerns for. Please note that I'm not really a developer, and my comments are mostly style issues, not actual functional issues. Oh, and also, I read most of the patches out of order, so some of the comments may not make complete sense.
Overall, my comments are these:
1. If you're doing typedef removals in a patch, mention it in the summary.
Will do.
Quoted 2 lines
2. Work on your summaries, there are a few cases where I think they're a little too terse.
Ditto.
Quoted 1 line
3. Good work!
Thanks!
Quoted 1 line
4. Keep going =)
We definitely will.
Quoted 3 lines
A couple of items you might want to add to your TODO list:
1. Replace the REG_[RW] macros with inline functions or equivalent because they're ugly.
Agree that they're ugly. Still working on how exactly to clean them up, but we'll get there eventually.
Quoted 2 lines
2. You shouldn't need to #ifdef on
BIG_ENDIAN- there are a set of macros to help with working with different endian systems.
Any specific ones we should be looking at?
Quoted 1 line
3. Do a typedef removal sweep over the code because typedefs are ugly =)
Definitely on the list of cleanup.
Quoted 3 lines
4. I had a glance at /Documentation/CodingStyle and saw that there were some issues mentioned in there that could be fixed in your code. You might also want to play with checkpatch.
A few of the patches have complaints from checkpatch, but I believe that in all cases the complaints are on existing code that's being moved from one file to another to help consolidate things. We'll keep working on cleaning up those issues as we go along.
Any specific checkpatch issues in this series that we should take a second look at?
Quoted 5 lines
5. Personally, I'd avoid void pointers, but I'm not sure of the exact rules. Could someone else weigh in on this?
I'm probably missing a whole lot of other, much more important, stuff, but this is what I saw.
Thanks again for all the effort.
At this point, should we regenerate the whole series to try and address your concerns, or should we do the additional cleanup as followup patches?
Thanks,
- Henry
Quoted 7 lines · Henry Ptasinski
Quoted 4 lines · Julian Calaby
Roland,
I've passed an eye over the entire patch set.
Thanks for taking the time and putting in the effort to reveiw them all.
No problem!
Quoted 4 lines
Quoted 2 lines
2. You shouldn't need to #ifdef on
BIG_ENDIAN- there are a set of macros to help with working with different endian systems.Any specific ones we should be looking at?
All of them, to be quite honest. The ones that stuck out for me were the ones around the REG_[RW] macros, but any that are in the drivers are worthy targets.
Quoted 4 lines
Quoted 1 line
3. Do a typedef removal sweep over the code because typedefs are ugly =)
Definitely on the list of cleanup.
Quoted 8 lines
Quoted 3 lines
4. I had a glance at /Documentation/CodingStyle and saw that there were some issues mentioned in there that could be fixed in your code. You might also want to play with checkpatch.
A few of the patches have complaints from checkpatch, but I believe that in all cases the complaints are on existing code that's being moved from one file to another to help consolidate things. We'll keep working on cleaning up those issues as we go along.
That's perfectly valid. This point was more a future-work sort of thing, not something I expect you to deal with right now.
Quoted 2 lines
Any specific checkpatch issues in this series that we should take a second look at?
Not really. I was more trying to point out that there are a lot of issues with the code as a whole that could be fixed, not that there were any specific issues.
Quoted 1 line
Thanks again for all the effort.
Again, no problem!
Quoted 2 lines
At this point, should we regenerate the whole series to try and address your concerns, or should we do the additional cleanup as followup patches?
I don't see any reason to - unless anyone else has issues. My comments are more things to work on in the future - I understand that this patch set is about moving and re-organising code, not making it clean and shiny.
Unless anyone else has a reason to, I see no reason to re-generate this patch set.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/