BGMAC_DEV_STATUS
mode = (bgmac_read(bgmac, BGMAC_DEV_STATUS) & BGMAC_DS_MM_MASK) >>
imode = (bgmac_read(bgmac, BGMAC_DEV_STATUS) &