allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / bcm57xx / sys / 5701rls.c
blobbc1fdbed8ce6d45f07c565f44da839b23d7061c1
1 /******************************************************************************/
2 /* */
3 /* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 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 /******************************************************************************/
15 #include <bcm57xx_cfg.h>
16 #ifdef INCLUDE_5701_AX_FIX
18 #include "mm.h"
19 #include "5701rls.h"
21 LM_STATUS LM_LoadRlsFirmware(PLM_DEVICE_BLOCK pDevice)
23 T3_FWIMG_INFO FwImgInfo;
25 FwImgInfo.StartAddress = t3FwStartAddr;
26 FwImgInfo.Text.Buffer = (PLM_UINT8)t3FwText;
27 FwImgInfo.Text.Offset = t3FwTextAddr;
28 FwImgInfo.Text.Length = t3FwTextLen;
29 FwImgInfo.ROnlyData.Buffer = (PLM_UINT8)t3FwRodata;
30 FwImgInfo.ROnlyData.Offset = t3FwRodataAddr;
31 FwImgInfo.ROnlyData.Length = t3FwRodataLen;
32 FwImgInfo.Data.Buffer = (PLM_UINT8)t3FwData;
33 FwImgInfo.Data.Offset = t3FwDataAddr;
34 FwImgInfo.Data.Length = t3FwDataLen;
36 if (LM_LoadFirmware(pDevice,
37 &FwImgInfo,
38 T3_RX_CPU_ID | T3_TX_CPU_ID,
39 T3_RX_CPU_ID) != LM_STATUS_SUCCESS)
41 return LM_STATUS_FAILURE;
44 return LM_STATUS_SUCCESS;
47 #endif /* INCLUDE_5701_AX_FIX */