void write_radio_reg(phy_info_t *pi, u16 addr, u16 val)
{
- struct osl_info *osh;
-
if (NORADIO_ENAB(pi->pubpi))
return;
- osh = pi->sh->osh;
-
if ((D11REV_GE(pi->sh->corerev, 24)) ||
(D11REV_IS(pi->sh->corerev, 22)
&& (pi->pubpi.phy_type != PHY_TYPE_SSN))) {
u16 read_phy_reg(phy_info_t *pi, u16 addr)
{
- struct osl_info *osh;
d11regs_t *regs;
- osh = pi->sh->osh;
regs = pi->regs;
W_REG(®s->phyregaddr, addr);
void write_phy_reg(phy_info_t *pi, u16 addr, u16 val)
{
- struct osl_info *osh;
d11regs_t *regs;
- osh = pi->sh->osh;
regs = pi->regs;
#ifdef __mips__
void and_phy_reg(phy_info_t *pi, u16 addr, u16 val)
{
- struct osl_info *osh;
d11regs_t *regs;
- osh = pi->sh->osh;
regs = pi->regs;
W_REG(®s->phyregaddr, addr);
void or_phy_reg(phy_info_t *pi, u16 addr, u16 val)
{
- struct osl_info *osh;
d11regs_t *regs;
- osh = pi->sh->osh;
regs = pi->regs;
W_REG(®s->phyregaddr, addr);
void mod_phy_reg(phy_info_t *pi, u16 addr, u16 mask, u16 val)
{
- struct osl_info *osh;
d11regs_t *regs;
- osh = pi->sh->osh;
regs = pi->regs;
W_REG(®s->phyregaddr, addr);
return NULL;
}
- sh->osh = shp->osh;
sh->sih = shp->sih;
sh->physhim = shp->physhim;
sh->unit = shp->unit;
void wlc_phy_shared_detach(shared_phy_t *phy_sh)
{
- struct osl_info *osh;
-
if (phy_sh) {
- osh = phy_sh->osh;
-
if (phy_sh->phy_head) {
ASSERT(!phy_sh->phy_head);
}
u32 sflags = 0;
uint phyversion;
int i;
- struct osl_info *osh;
-
- osh = sh->osh;
if (D11REV_IS(sh->corerev, 4))
sflags = SISF_2G_PHY | SISF_5G_PHY;