u16 bcm43xx_ilt_read(struct bcm43xx_private *bcm, u16 offset) { if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A) { bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_A_CTRL, offset); return bcm43xx_phy_read(bcm, BCM43xx_PHY_ILT_A_DATA1); } else { bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_G_CTRL, offset); return bcm43xx_phy_read(bcm, BCM43xx_PHY_ILT_G_DATA1); } }
u32 bcm43xx_ofdmtab_read32(struct bcm43xx_wldev *dev, u16 table, u16 offset) { u32 ret; bcm43xx_phy_write(dev, BCM43xx_PHY_OTABLECTL, table + offset); ret = bcm43xx_phy_read(dev, BCM43xx_PHY_OTABLEQ); ret <<= 16; ret |= bcm43xx_phy_read(dev, BCM43xx_PHY_OTABLEI); return ret; }
u16 bcm43xx_ofdmtab_read16(struct bcm43xx_wldev *dev, u16 table, u16 offset) { assert_sizes(); bcm43xx_phy_write(dev, BCM43xx_PHY_OTABLECTL, table + offset); return bcm43xx_phy_read(dev, BCM43xx_PHY_OTABLEI); }
u16 bcm43xx_gtab_read(struct bcm43xx_wldev *dev, u16 table, u16 offset) { bcm43xx_phy_write(dev, BCM43xx_PHY_GTABCTL, table + offset); return bcm43xx_phy_read(dev, BCM43xx_PHY_GTABDATA); }