VOID rtmp_ee_flash_write_all(PRTMP_ADAPTER pAd, USHORT *Data) { if (!pAd->chipCap.ee_inited) return; memcpy(pAd->eebuf, Data, EEPROM_SIZE); #ifdef MULTIPLE_CARD_SUPPORT DBGPRINT(RT_DEBUG_TRACE, ("rtmp_ee_flash_write_all:pAd->MC_RowID = %d\n", pAd->MC_RowID)); DBGPRINT(RT_DEBUG_TRACE, ("E2P_OFFSET = 0x%08x\n", pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID])); if ((pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID]==0x48000) || (pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID]==0x40000)) RtmpFlashWrite(pAd->eebuf, pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID], EEPROM_SIZE); #else RtmpFlashWrite(pAd->eebuf, RF_OFFSET, EEPROM_SIZE); #endif /* MULTIPLE_CARD_SUPPORT */ }
VOID rtmp_ee_flash_write_all(PRTMP_ADAPTER pAd, USHORT *Data) { if (!init_flag) return; memcpy(nv_ee_start, Data, EEPROM_SIZE); RtmpFlashWrite(pAd->chipCap.eebuf, RF_OFFSET, EEPROM_SIZE); }
int rtmp_ee_flash_write(PRTMP_ADAPTER pAd, USHORT Offset, USHORT Data) { if (pAd->chipCap.ee_inited) { memcpy(pAd->eebuf + Offset, &Data, 2); /*rt_nv_commit();*/ /*rt_cfg_commit();*/ #ifdef MULTIPLE_CARD_SUPPORT DBGPRINT(RT_DEBUG_TRACE, ("rtmp_ee_flash_write:pAd->MC_RowID = %d\n", pAd->MC_RowID)); DBGPRINT(RT_DEBUG_TRACE, ("E2P_OFFSET = 0x%08x\n", pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID])); if ((pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID]==0x48000) || (pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID]==0x40000)) RtmpFlashWrite(pAd->eebuf, pAd->E2P_OFFSET_IN_FLASH[pAd->MC_RowID], EEPROM_SIZE); #else RtmpFlashWrite(pAd->eebuf, RF_OFFSET, EEPROM_SIZE); #endif /* MULTIPLE_CARD_SUPPORT */ } return 0; }
int rtmp_ee_flash_write(PRTMP_ADAPTER pAd, USHORT Offset, USHORT Data) { if (init_flag) { memcpy(nv_ee_start+ Offset, &Data, 2); RtmpFlashWrite(pAd->chipCap.eebuf, RF_OFFSET, EEPROM_SIZE); } return 0; }
int rtmp_ee_flash_write(PRTMP_ADAPTER pAd, USHORT Offset, USHORT Data) { if (init_flag) { memcpy(nv_ee_start+ Offset, &Data, 2); //rt_nv_commit(); //rt_cfg_commit(); RtmpFlashWrite(EeBuffer, RF_OFFSET, EEPROM_SIZE); } return 0; }