1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\r
5 * This program is free software; you can redistribute it and/or modify it
\r
6 * under the terms of version 2 of the GNU General Public License as
\r
7 * published by the Free Software Foundation.
\r
9 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
14 * You should have received a copy of the GNU General Public License along with
\r
15 * this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
19 ******************************************************************************/
\r
21 //#include "Mp_Precomp.h"
\r
22 //#include "../odm_precomp.h"
\r
24 #include <drv_types.h>
\r
25 #include "../../../hal/OUTSRC/phydm_precomp.h"
\r
26 #include "HalEfuseMask8723B_USB.h"
\r
27 /******************************************************************************
\r
29 ******************************************************************************/
\r
31 u1Byte Array_MP_8723B_MUSB[] = {
\r
68 EFUSE_GetArrayLen_MP_8723B_MUSB(VOID)
\r
70 return sizeof(Array_MP_8723B_MUSB)/sizeof(u1Byte);
\r
74 EFUSE_GetMaskArray_MP_8723B_MUSB(
\r
75 IN OUT pu1Byte Array
\r
78 u2Byte len = EFUSE_GetArrayLen_MP_8723B_MUSB(), i = 0;
\r
80 for (i = 0; i < len; ++i)
\r
81 Array[i] = Array_MP_8723B_MUSB[i];
\r
84 EFUSE_IsAddressMasked_MP_8723B_MUSB(
\r
89 int c = (Offset%16) / 2;
\r
92 if (c < 4) // Upper double word
\r
93 result = (Array_MP_8723B_MUSB[r] & (0x10 << c));
\r
95 result = (Array_MP_8723B_MUSB[r] & (0x01 << (c-4)));
\r
97 return (result > 0) ? 0 : 1;
\r