Lines Matching refs:core

597 	struct bcma_device *core = wlc_hw->d11core;  in brcms_b_update_slot_timing()  local
601 bcma_write16(core, D11REGOFFS(ifs_slot), 0x0207); in brcms_b_update_slot_timing()
605 bcma_write16(core, D11REGOFFS(ifs_slot), 0x0212); in brcms_b_update_slot_timing()
682 struct bcma_device *core = wlc_hw->d11core; in brcms_c_write_inits() local
695 bcma_write16(core, offset, value); in brcms_c_write_inits()
697 bcma_write32(core, offset, value); in brcms_c_write_inits()
751 struct bcma_device *core = wlc_hw->d11core; in brcms_b_core_ioctl() local
752 u32 ioctl = bcma_aread32(core, BCMA_IOCTL) & ~m; in brcms_b_core_ioctl()
754 bcma_awrite32(core, BCMA_IOCTL, ioctl | v); in brcms_b_core_ioctl()
1032 struct bcma_device *core; in brcms_b_txstatus() local
1043 core = wlc_hw->d11core; in brcms_b_txstatus()
1047 s1 = bcma_read32(core, D11REGOFFS(frmtxstatus)); in brcms_b_txstatus()
1049 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_b_txstatus()
1058 s2 = bcma_read32(core, D11REGOFFS(frmtxstatus2)); in brcms_b_txstatus()
1506 struct bcma_device *core = wlc_hw->d11core; in brcms_b_set_addrmatch() local
1511 brcms_dbg_rx(core, "wl%d: brcms_b_set_addrmatch\n", wlc_hw->unit); in brcms_b_set_addrmatch()
1518 bcma_write16(core, D11REGOFFS(rcm_ctl), in brcms_b_set_addrmatch()
1520 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_l); in brcms_b_set_addrmatch()
1521 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_m); in brcms_b_set_addrmatch()
1522 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_h); in brcms_b_set_addrmatch()
1529 struct bcma_device *core = wlc_hw->d11core; in brcms_b_write_template_ram() local
1534 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); in brcms_b_write_template_ram()
1536 bcma_write32(core, D11REGOFFS(tplatewrptr), offset); in brcms_b_write_template_ram()
1542 be_bit = (bcma_read32(core, D11REGOFFS(maccontrol)) & MCTL_BIGEND) != 0; in brcms_b_write_template_ram()
1555 bcma_write32(core, D11REGOFFS(tplatewrdata), word); in brcms_b_write_template_ram()
2085 struct bcma_device *core = wlc_hw->d11core; in brcms_b_corerev_fifofixup() local
2106 bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd); in brcms_b_corerev_fifofixup()
2107 bcma_write16(core, D11REGOFFS(xmtfifodef), txfifo_def); in brcms_b_corerev_fifofixup()
2108 bcma_write16(core, D11REGOFFS(xmtfifodef1), txfifo_def1); in brcms_b_corerev_fifofixup()
2110 bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd); in brcms_b_corerev_fifofixup()
2145 struct bcma_device *core = wlc_hw->d11core; in brcms_b_switch_macfreq() local
2150 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x2082); in brcms_b_switch_macfreq()
2151 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2153 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x5341); in brcms_b_switch_macfreq()
2154 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2156 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x8889); in brcms_b_switch_macfreq()
2157 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2161 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x7CE0); in brcms_b_switch_macfreq()
2162 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC); in brcms_b_switch_macfreq()
2164 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0xCCCD); in brcms_b_switch_macfreq()
2165 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC); in brcms_b_switch_macfreq()
2262 struct bcma_device *core = wlc_hw->d11core; in brcms_ucode_write() local
2270 bcma_write32(core, D11REGOFFS(objaddr), in brcms_ucode_write()
2272 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_ucode_write()
2274 bcma_write32(core, D11REGOFFS(objdata), le32_to_cpu(ucode[i])); in brcms_ucode_write()
2340 struct bcma_device *core = wlc_hw->d11core; in brcms_b_fifoerrors() local
2347 bcma_read32(core, in brcms_b_fifoerrors()
2353 brcms_dbg_int(core, "wl%d: intstatus%d 0x%x\n", in brcms_b_fifoerrors()
2357 brcms_err(core, "wl%d: fifo %d: receive fifo " in brcms_b_fifoerrors()
2363 brcms_err(core, "wl%d: fifo %d: descriptor error\n", in brcms_b_fifoerrors()
2369 brcms_err(core, "wl%d: fifo %d: data error\n", unit, in brcms_b_fifoerrors()
2375 brcms_err(core, "wl%d: fifo %d: descriptor protocol " in brcms_b_fifoerrors()
2381 brcms_err(core, "wl%d: fifo %d: receive descriptor " in brcms_b_fifoerrors()
2385 brcms_err(core, "wl%d: fifo %d: transmit fifo " in brcms_b_fifoerrors()
2394 bcma_write32(core, in brcms_b_fifoerrors()
2544 struct bcma_device *core = wlc_hw->d11core; in wlc_intstatus() local
2548 macintstatus = bcma_read32(core, D11REGOFFS(macintstatus)); in wlc_intstatus()
2551 trace_brcms_macintstatus(&core->dev, in_isr, macintstatus, mask); in wlc_intstatus()
2571 bcma_write32(core, D11REGOFFS(macintmask), 0); in wlc_intstatus()
2572 (void)bcma_read32(core, D11REGOFFS(macintmask)); in wlc_intstatus()
2576 bcma_write32(core, D11REGOFFS(macintstatus), macintstatus); in wlc_intstatus()
2585 bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intstatus), in wlc_intstatus()
2647 struct bcma_device *core = wlc_hw->d11core; in brcms_c_suspend_mac_and_wait() local
2650 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2663 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_suspend_mac_and_wait()
2666 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2675 mi = bcma_read32(core, D11REGOFFS(macintstatus)); in brcms_c_suspend_mac_and_wait()
2677 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2686 SPINWAIT(!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD), in brcms_c_suspend_mac_and_wait()
2689 if (!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD)) { in brcms_c_suspend_mac_and_wait()
2690 brcms_err(core, "wl%d: wlc_suspend_mac_and_wait: waited %d uS" in brcms_c_suspend_mac_and_wait()
2693 brcms_err(core, "wl%d: psmdebug 0x%08x, phydebug 0x%08x, " in brcms_c_suspend_mac_and_wait()
2695 bcma_read32(core, D11REGOFFS(psmdebug)), in brcms_c_suspend_mac_and_wait()
2696 bcma_read32(core, D11REGOFFS(phydebug)), in brcms_c_suspend_mac_and_wait()
2697 bcma_read16(core, D11REGOFFS(psm_brc))); in brcms_c_suspend_mac_and_wait()
2700 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_suspend_mac_and_wait()
2702 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2715 struct bcma_device *core = wlc_hw->d11core; in brcms_c_enable_mac() local
2718 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_enable_mac()
2728 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_enable_mac()
2734 bcma_write32(core, D11REGOFFS(macintstatus), MI_MACSSPNDD); in brcms_c_enable_mac()
2736 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_enable_mac()
2741 mi = bcma_read32(core, D11REGOFFS(macintstatus)); in brcms_c_enable_mac()
2758 struct bcma_device *core = wlc_hw->d11core; in brcms_b_validate_chip_access() local
2764 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2765 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2766 w = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2769 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2770 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2771 bcma_write32(core, D11REGOFFS(objdata), (u32) 0xaa5555aa); in brcms_b_validate_chip_access()
2773 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2774 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2775 val = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2782 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2783 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2784 bcma_write32(core, D11REGOFFS(objdata), (u32) 0x55aaaa55); in brcms_b_validate_chip_access()
2786 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2787 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2788 val = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2795 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2796 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2797 bcma_write32(core, D11REGOFFS(objdata), w); in brcms_b_validate_chip_access()
2800 bcma_write32(core, D11REGOFFS(tsf_cfpstart), 0); in brcms_b_validate_chip_access()
2802 w = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_b_validate_chip_access()
2819 struct bcma_device *core = wlc_hw->d11core; in brcms_b_core_phypll_ctl() local
2822 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); in brcms_b_core_phypll_ctl()
2828 bcma_set32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2832 SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) & in brcms_b_core_phypll_ctl()
2836 tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2838 brcms_err(core, "%s: turn on PHY PLL failed\n", in brcms_b_core_phypll_ctl()
2841 bcma_set32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2844 SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) & in brcms_b_core_phypll_ctl()
2850 tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2855 brcms_err(core, "%s: turn on PHY PLL failed\n", in brcms_b_core_phypll_ctl()
2864 bcma_mask32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2866 (void)bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2920 struct bcma_device *core = wlc_hw->d11core; in brcms_b_read_objmem() local
2923 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_read_objmem()
2924 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_read_objmem()
2928 return bcma_read16(core, objoff); in brcms_b_read_objmem()
2935 struct bcma_device *core = wlc_hw->d11core; in brcms_b_write_objmem() local
2938 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_write_objmem()
2939 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_write_objmem()
2943 bcma_wflush16(core, objoff, v); in brcms_b_write_objmem()
3094 macstats = wlc->core->macstat_snapshot; in brcms_c_statsupd()
3151 memset(wlc->core->macstat_snapshot, 0, sizeof(struct macstat)); in brcms_c_reset()
3182 struct bcma_device *core = wlc_hw->d11core; in brcms_b_coreinit() local
3191 brcms_dbg_info(core, "wl%d: core init\n", wlc_hw->unit); in brcms_b_coreinit()
3203 bcma_write32(core, D11REGOFFS(macintstatus), -1); in brcms_b_coreinit()
3208 SPINWAIT(((bcma_read32(core, D11REGOFFS(macintstatus)) & in brcms_b_coreinit()
3210 if ((bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD) == 0) in brcms_b_coreinit()
3211 brcms_err(core, "wl%d: wlc_coreinit: ucode did not self-" in brcms_b_coreinit()
3216 sflags = bcma_aread32(core, BCMA_IOST); in brcms_b_coreinit()
3222 brcms_err(core, "%s: wl%d: unsupported phy in corerev" in brcms_b_coreinit()
3229 brcms_err(core, "%s: wl%d: unsupported phy in corerev" in brcms_b_coreinit()
3233 brcms_err(core, "%s: wl%d: unsupported corerev %d\n", in brcms_b_coreinit()
3275 brcms_err(core, "wlc_coreinit: txfifo mismatch: ucode size %d" in brcms_b_coreinit()
3280 WARN_ON(bcma_read32(core, D11REGOFFS(maccontrol)) == 0xffffffff); in brcms_b_coreinit()
3289 bcma_write32(core, D11REGOFFS(intrcvlazy[0]), (1 << IRL_FC_SHIFT)); in brcms_b_coreinit()
3298 bcma_write32(core, D11REGOFFS(tsf_cfprep), in brcms_b_coreinit()
3300 bcma_write32(core, D11REGOFFS(tsf_cfpstart), bcnint_us); in brcms_b_coreinit()
3301 bcma_write32(core, D11REGOFFS(macintstatus), MI_GP1); in brcms_b_coreinit()
3304 bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intmask), in brcms_b_coreinit()
3312 bcma_write16(core, D11REGOFFS(scc_fastpwrup_dly), wlc->fastpwrup_dly); in brcms_b_coreinit()
3325 bcma_write32(core, D11REGOFFS(objaddr), in brcms_b_coreinit()
3327 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_coreinit()
3328 bcma_write32(core, D11REGOFFS(objdata), wlc_hw->SRL); in brcms_b_coreinit()
3329 bcma_write32(core, D11REGOFFS(objaddr), in brcms_b_coreinit()
3331 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_coreinit()
3332 bcma_write32(core, D11REGOFFS(objdata), wlc_hw->LRL); in brcms_b_coreinit()
3338 bcma_mask16(core, D11REGOFFS(ifs_ctl), 0x0FFF); in brcms_b_coreinit()
3339 bcma_write16(core, D11REGOFFS(ifs_aifsn), EDCF_AIFSN_MIN); in brcms_b_coreinit()
4403 static int brcms_b_attach(struct brcms_c_info *wlc, struct bcma_device *core, in brcms_b_attach() argument
4412 struct pci_dev *pcidev = core->bus->host_pci; in brcms_b_attach()
4413 struct ssb_sprom *sprom = &core->bus->sprom; in brcms_b_attach()
4415 if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) in brcms_b_attach()
4416 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, in brcms_b_attach()
4420 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, in brcms_b_attach()
4421 core->bus->boardinfo.vendor, in brcms_b_attach()
4422 core->bus->boardinfo.type); in brcms_b_attach()
4439 wlc_hw->sih = ai_attach(core->bus); in brcms_b_attach()
4448 if (!brcms_c_chipmatch(core)) { in brcms_b_attach()
4455 if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) { in brcms_b_attach()
4459 wlc_hw->vendorid = core->bus->boardinfo.vendor; in brcms_b_attach()
4460 wlc_hw->deviceid = core->bus->boardinfo.type; in brcms_b_attach()
4463 wlc_hw->d11core = core; in brcms_b_attach()
4464 wlc_hw->corerev = core->id.rev; in brcms_b_attach()
4582 wlc->core->coreidx = core->core_index; in brcms_b_attach()
4584 wlc_hw->machwcap = bcma_read32(core, D11REGOFFS(machwcap)); in brcms_b_attach()
4597 wlc_phy_attach(wlc_hw->phy_sh, core, in brcms_b_attach()
4654 brcms_dbg_info(core, "wl%d: phy %u/%u radio %x/%u\n", unit, in brcms_b_attach()
5640 static bool brcms_c_chipmatch_pci(struct bcma_device *core) in brcms_c_chipmatch_pci() argument
5642 struct pci_dev *pcidev = core->bus->host_pci; in brcms_c_chipmatch_pci()
5664 static bool brcms_c_chipmatch_soc(struct bcma_device *core) in brcms_c_chipmatch_soc() argument
5666 struct bcma_chipinfo *chipinfo = &core->bus->chipinfo; in brcms_c_chipmatch_soc()
5675 bool brcms_c_chipmatch(struct bcma_device *core) in brcms_c_chipmatch() argument
5677 switch (core->bus->hosttype) { in brcms_c_chipmatch()
5679 return brcms_c_chipmatch_pci(core); in brcms_c_chipmatch()
5681 return brcms_c_chipmatch_soc(core); in brcms_c_chipmatch()
5683 pr_err("unknown host type: %i\n", core->bus->hosttype); in brcms_c_chipmatch()
5891 struct bcma_device *core = wlc->hw->d11core; in mac80211_wlc_set_nrate() local
5908 brcms_err(core, "wl%d: %s: Invalid stf\n", in mac80211_wlc_set_nrate()
5919 brcms_err(core, "wl%d: %s: Invalid mcs 32\n", in mac80211_wlc_set_nrate()
5928 brcms_dbg_mac80211(core, "wl%d: enabling " in mac80211_wlc_set_nrate()
5941 brcms_err(core, "wl%d: %s: Invalid STBC\n", in mac80211_wlc_set_nrate()
5949 brcms_err(core, "wl%d: %s: Invalid OFDM\n", in mac80211_wlc_set_nrate()
5957 brcms_err(core, "wl%d: %s: Invalid CCK\n", in mac80211_wlc_set_nrate()
5963 brcms_err(core, "wl%d: %s: Unknown rate type\n", in mac80211_wlc_set_nrate()
5970 brcms_err(core, "wl%d: %s: SISO antenna but !SISO " in mac80211_wlc_set_nrate()
7018 struct bcma_device *core = wlc_hw->d11core; in brcms_b_read_tsf() local
7021 *tsf_l_ptr = bcma_read32(core, D11REGOFFS(tsf_timerlow)); in brcms_b_read_tsf()
7022 *tsf_h_ptr = bcma_read32(core, D11REGOFFS(tsf_timerhigh)); in brcms_b_read_tsf()
7358 struct bcma_device *core = wlc_hw->d11core; in brcms_c_update_beacon_hw() local
7366 if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid) in brcms_c_update_beacon_hw()
7368 bcma_write32(core, D11REGOFFS(macintstatus), MI_BCNTPL); in brcms_c_update_beacon_hw()
7375 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD); in brcms_c_update_beacon_hw()
7382 if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid) { in brcms_c_update_beacon_hw()
7387 if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN0VLD)) { in brcms_c_update_beacon_hw()
7391 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD); in brcms_c_update_beacon_hw()
7394 if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN1VLD)) { in brcms_c_update_beacon_hw()
7398 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN1VLD); in brcms_c_update_beacon_hw()
7780 struct bcma_device *core = wlc_hw->d11core; in brcms_c_dpc() local
7783 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_dpc()
7793 brcms_dbg_int(core, "wl%d: macintstatus 0x%x\n", in brcms_c_dpc()
7804 brcms_err(core, "MI_TFS: fatal\n"); in brcms_c_dpc()
7814 brcms_dbg_info(core, "end of ATIM window\n"); in brcms_c_dpc()
7815 bcma_set32(core, D11REGOFFS(maccommand), wlc->qvalid); in brcms_c_dpc()
7832 brcms_err(core, "wl%d: PSM microcode watchdog fired at %d " in brcms_c_dpc()
7843 bcma_write32(core, D11REGOFFS(gptimer), 0); in brcms_c_dpc()
7846 brcms_dbg_info(core, "wl%d: BMAC Detected a change on the" in brcms_c_dpc()
7865 struct bcma_device *core = wlc->hw->d11core; in brcms_c_init() local
7869 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); in brcms_c_init()
7892 bcma_write32(core, D11REGOFFS(tsf_cfprep), in brcms_c_init()
7923 bcma_set16(core, D11REGOFFS(ifs_ctl), IFS_USEEDCF); in brcms_c_init()
7946 bcma_write32(core, D11REGOFFS(rfdisabledly), RFDISABLE_DEFAULT); in brcms_c_init()
7966 brcms_c_attach(struct brcms_info *wl, struct bcma_device *core, uint unit, in brcms_c_attach() argument
7986 wlc->core = wlc->corestate; in brcms_c_attach()
8003 err = brcms_b_attach(wlc, core, unit, piomode); in brcms_c_attach()
8027 wlc->core->txavail[i] = wlc->hw->txavail[i]; in brcms_c_attach()