}
/*-----------------------------------------------------------------------------
- * Function: Efuse_PowerSwitch
- *
- * Overview: When we want to enable write operation, we should change to
- * pwr on state. When we stop write, we should switch to 500k mode
- * and disable LDO 2.5V.
- *
- * Input: NONE
- *
- * Output: NONE
- *
- * Return: NONE
- *
- * Revised History:
- * When Who Remark
- * 11/17/2008 MHC Create Version 0.
- *
- *---------------------------------------------------------------------------*/
-void
-Efuse_PowerSwitch(
- struct adapter *pAdapter,
- u8 write,
- u8 PwrState)
-{
- rtl8188e_EfusePowerSwitch(pAdapter, write, PwrState);
-}
-
-/*-----------------------------------------------------------------------------
* Function: efuse_GetCurrentSize
*
* Overview: Get current efuse size!!!
rw8 = &efuse_read8;
}
- Efuse_PowerSwitch(padapter, write, true);
+ rtl8188e_EfusePowerSwitch(padapter, write, true);
/* e-fuse one byte read / write */
for (i = 0; i < cnts; i++) {
break;
}
- Efuse_PowerSwitch(padapter, write, false);
+ rtl8188e_EfusePowerSwitch(padapter, write, false);
return res;
}
/* */
u8 efuse_GetCurrentSize(struct adapter *padapter, u16 *size)
{
- Efuse_PowerSwitch(padapter, false, true);
+ rtl8188e_EfusePowerSwitch(padapter, false, true);
*size = Efuse_GetCurrentSize(padapter, EFUSE_WIFI, false);
- Efuse_PowerSwitch(padapter, false, false);
+ rtl8188e_EfusePowerSwitch(padapter, false, false);
return _SUCCESS;
}
if ((addr + cnts) > mapLen)
return _FAIL;
- Efuse_PowerSwitch(padapter, false, true);
+ rtl8188e_EfusePowerSwitch(padapter, false, true);
efuse_ReadEFuse(padapter, EFUSE_WIFI, addr, cnts, data, false);
- Efuse_PowerSwitch(padapter, false, false);
+ rtl8188e_EfusePowerSwitch(padapter, false, false);
return _SUCCESS;
}
if ((addr + cnts) > mapLen)
return _FAIL;
- Efuse_PowerSwitch(padapter, false, true);
+ rtl8188e_EfusePowerSwitch(padapter, false, true);
efuse_ReadEFuse(padapter, EFUSE_BT, addr, cnts, data, false);
- Efuse_PowerSwitch(padapter, false, false);
+ rtl8188e_EfusePowerSwitch(padapter, false, false);
return _SUCCESS;
}
if (ret == _FAIL)
goto exit;
- Efuse_PowerSwitch(padapter, true, true);
+ rtl8188e_EfusePowerSwitch(padapter, true, true);
offset = (addr >> 3);
word_en = 0xF;
memset(newdata, 0xFF, PGPKT_DATA_SIZE);
} while (1);
- Efuse_PowerSwitch(padapter, true, false);
+ rtl8188e_EfusePowerSwitch(padapter, true, false);
exit:
kfree(map);
return ret;
if (ret == _FAIL)
goto exit;
- Efuse_PowerSwitch(padapter, true, true);
+ rtl8188e_EfusePowerSwitch(padapter, true, true);
offset = (addr >> 3);
word_en = 0xF;
memset(newdata, 0xFF, PGPKT_DATA_SIZE);
} while (1);
- Efuse_PowerSwitch(padapter, true, false);
+ rtl8188e_EfusePowerSwitch(padapter, true, false);
exit:
{
u16 mapLen = 0;
- Efuse_PowerSwitch(pAdapter, false, true);
+ rtl8188e_EfusePowerSwitch(pAdapter, false, true);
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, pseudo);
efuse_ReadEFuse(pAdapter, efuseType, 0, mapLen, Efuse, pseudo);
- Efuse_PowerSwitch(pAdapter, false, false);
+ rtl8188e_EfusePowerSwitch(pAdapter, false, false);
}
/*-----------------------------------------------------------------------------
_irqlevel_changed_(&oldirql, LOWER);
if (poid_par_priv->type_of_oid == QUERY_OID) {
- Efuse_PowerSwitch(Adapter, false, true);
+ rtl8188e_EfusePowerSwitch(Adapter, false, true);
if (Efuse_PgPacketRead(Adapter, ppgpkt->offset, ppgpkt->data, false))
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
else
status = NDIS_STATUS_FAILURE;
- Efuse_PowerSwitch(Adapter, false, false);
+ rtl8188e_EfusePowerSwitch(Adapter, false, false);
} else {
- Efuse_PowerSwitch(Adapter, true, true);
+ rtl8188e_EfusePowerSwitch(Adapter, true, true);
if (Efuse_PgPacketWrite(Adapter, ppgpkt->offset, ppgpkt->word_en, ppgpkt->data, false))
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
else
status = NDIS_STATUS_FAILURE;
- Efuse_PowerSwitch(Adapter, true, false);
+ rtl8188e_EfusePowerSwitch(Adapter, true, false);
}
_irqlevel_changed_(&oldirql, RAISE);