5701rls.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /******************************************************************************/
  2. /* */
  3. /* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 Broadcom */
  4. /* Corporation. */
  5. /* All rights reserved. */
  6. /* */
  7. /* This program is free software; you can redistribute it and/or modify */
  8. /* it under the terms of the GNU General Public License as published by */
  9. /* the Free Software Foundation, located in the file LICENSE. */
  10. /* */
  11. /* History: */
  12. /* */
  13. /******************************************************************************/
  14. #if INCLUDE_5701_AX_FIX
  15. #include "bcm570x_mm.h"
  16. #include "5701rls.h"
  17. LM_STATUS LM_LoadRlsFirmware(PLM_DEVICE_BLOCK pDevice)
  18. {
  19. T3_FWIMG_INFO FwImgInfo;
  20. FwImgInfo.StartAddress = t3FwStartAddr;
  21. FwImgInfo.Text.Buffer = (PLM_UINT8)t3FwText;
  22. FwImgInfo.Text.Offset = t3FwTextAddr;
  23. FwImgInfo.Text.Length = t3FwTextLen;
  24. FwImgInfo.ROnlyData.Buffer = (PLM_UINT8)t3FwRodata;
  25. FwImgInfo.ROnlyData.Offset = t3FwRodataAddr;
  26. FwImgInfo.ROnlyData.Length = t3FwRodataLen;
  27. FwImgInfo.Data.Buffer = (PLM_UINT8)t3FwData;
  28. FwImgInfo.Data.Offset = t3FwDataAddr;
  29. FwImgInfo.Data.Length = t3FwDataLen;
  30. if (LM_LoadFirmware(pDevice,
  31. &FwImgInfo,
  32. T3_RX_CPU_ID | T3_TX_CPU_ID,
  33. T3_RX_CPU_ID) != LM_STATUS_SUCCESS)
  34. {
  35. return LM_STATUS_FAILURE;
  36. }
  37. return LM_STATUS_SUCCESS;
  38. }
  39. #endif /* INCLUDE_5701_AX_FIX */