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