/* Return Value: TRUE if succeeded; FALSE if failed.  */
BOOL IFRFbWriteEmbeded(DWORD_PTR dwIoBase, DWORD dwData)
/* Return Value: TRUE if succeeded; FALSE if failed.  */
BOOL IFRFbWriteEmbeded(DWORD_PTR dwIoBase, DWORD dwData)
{
    WORD    ww;
    DWORD   dwValue;
    VNSvOutPortD(dwIoBase + MAC_REG_IFREGCTL, dwData);
    for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
        VNSvInPortD(dwIoBase + MAC_REG_IFREGCTL, &dwValue);
        if (dwValue & IFREGCTL_DONE)
            break;
    }
    if (ww == W_MAX_TIMEOUT) {
        return FALSE;
    }
    return TRUE;
}