diff options
Diffstat (limited to 'drivers/staging/rtl8192su/r8192S_Efuse.h')
-rw-r--r-- | drivers/staging/rtl8192su/r8192S_Efuse.h | 67 |
1 files changed, 24 insertions, 43 deletions
diff --git a/drivers/staging/rtl8192su/r8192S_Efuse.h b/drivers/staging/rtl8192su/r8192S_Efuse.h index 1e50153ba02c..76289230f99f 100644 --- a/drivers/staging/rtl8192su/r8192S_Efuse.h +++ b/drivers/staging/rtl8192su/r8192S_Efuse.h @@ -1,39 +1,39 @@ /****************************************************************************** + * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved. * - * (c) Copyright 2008, RealTEK Technologies Inc. All Rights Reserved. + * Based on the r8180 driver, which is: + * Copyright 2004-2005 Andrea Merello <andreamrl@tiscali.it>, et al. + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. * - * Module: Efuse.h ( Header File) + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. * - * Note: - * - * Function: - * - * Export: - * - * Abbrev: - * - * History: - * Data Who Remark - * - * 09/23/2008 MHC Porting Efuse R/W API from WMAC. - * 11/10/2008 MHC Porting Efuse.h from 8712 SDIO. - * 1. We muse redefine the header file to fit our coding - * style. - * 2. THe API we export to other module, we must redefine - * for 8192S series. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * + * The full GNU General Public License is included in this distribution in the + * file called LICENSE. * + * Contact Information: + * wlanfae <wlanfae@realtek.com> ******************************************************************************/ -/* Check to see if the file has been included already. */ #ifndef __INC_EFUSE_H #define __INC_EFUSE_H -// Roger porting for 8192SU #define EFUSE_FOR_92SU 1 /*--------------------------Define Parameters-------------------------------*/ #define EFUSE_MAC_LEN 0x200 +#define EFUSE_REAL_CONTENT_LEN 512 +#define EFUSE_MAP_LEN 128 +#define EFUSE_MAX_SECTION 16 +#define EFUSE_MAX_WORD_UNIT 4 #define EFUSE_INIT_MAP 0 #define EFUSE_MODIFY_MAP 1 @@ -41,7 +41,6 @@ #define EFUSE_CLK_CTRL EFUSE_CTRL #define EFUSE_BIT(x) (1 << (x)) -// From 8712!!!!!!!! #define PG_STATE_HEADER 0x01 #define PG_STATE_WORD_0 0x02 #define PG_STATE_WORD_1 0x04 @@ -52,22 +51,6 @@ #define PG_SWBYTE_H 0x01 #define PG_SWBYTE_L 0x02 -/*--------------------------Define Parameters-------------------------------*/ - - -/*------------------------------Define structure----------------------------*/ - -/*------------------------------Define structure----------------------------*/ - - -/*------------------------Export global variable----------------------------*/ -/*------------------------Export global variable----------------------------*/ - -/*------------------------Export Marco Definition---------------------------*/ - -/*------------------------Export Marco Definition---------------------------*/ - - /*--------------------------Exported Function prototype---------------------*/ extern void EFUSE_Initialize(struct net_device* dev); @@ -81,13 +64,13 @@ extern void ReadEFuse(struct net_device* dev,u16 _offset,u16 _size_byte,u8* pbuf); extern void ReadEFuseByte(struct net_device* dev,u16 _offset,u8 *pbuf); -#endif // #if (EFUSE_FOR_92SU == 1) +#endif extern void EFUSE_ShadowRead(struct net_device* dev,unsigned char Type,unsigned short Offset,u32 *Value); extern void EFUSE_ShadowWrite(struct net_device* dev,unsigned char Type,unsigned short Offset,u32 Value); -extern void +extern bool EFUSE_ShadowUpdate(struct net_device* dev); extern void EFUSE_ShadowMapUpdate(struct net_device* dev); @@ -96,6 +79,4 @@ extern bool EFUSE_ProgramMap(struct net_device* dev,char* pFileName, u8 TableType); // 0=Shadow 1=Real Efuse /*--------------------------Exported Function prototype---------------------*/ -/* End of Efuse.h */ - -#endif //__INC_EFUSE_H +#endif |