~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to ubuntu/rtl8192se/rtl8192s/r8192S_Efuse.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/******************************************************************************
2
 
 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3
 
 * 
4
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
5
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6
 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
7
 
 * more details.
8
 
 * 
9
 
 * You should have received a copy of the GNU General Public License along with
10
 
 * this program; if not, write to the Free Software Foundation, Inc.,
11
 
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
12
 
 * 
13
 
 * The full GNU General Public License is included in this distribution in the
14
 
 * file called LICENSE.
15
 
 * 
16
 
 * Contact Information:
17
 
 * wlanfae <wlanfae@realtek.com>
18
 
******************************************************************************/
19
 
 
20
 
#ifndef __INC_EFUSE_H
21
 
#define __INC_EFUSE_H
22
 
 
23
 
#define         EFUSE_FOR_92SU          1
24
 
 
25
 
/*--------------------------Define Parameters-------------------------------*/
26
 
#define         EFUSE_REAL_CONTENT_LEN                  512
27
 
#define         EFUSE_MAP_LEN                           128
28
 
#define         EFUSE_MAX_SECTION                       16
29
 
#define         EFUSE_MAX_WORD_UNIT                     4
30
 
#define                EFUSE_IC_ID_OFFSET                       506 
31
 
 
32
 
#define         EFUSE_INIT_MAP                          0
33
 
#define         EFUSE_MODIFY_MAP                                1
34
 
 
35
 
#define         EFUSE_CLK_CTRL                  EFUSE_CTRL
36
 
#define         EFUSE_BIT(x)  (1 << (x))
37
 
 
38
 
#define         PG_STATE_HEADER         0x01
39
 
#define         PG_STATE_WORD_0         0x02
40
 
#define         PG_STATE_WORD_1         0x04
41
 
#define         PG_STATE_WORD_2         0x08
42
 
#define         PG_STATE_WORD_3         0x10
43
 
#define         PG_STATE_DATA           0x20
44
 
 
45
 
#define         PG_SWBYTE_H                     0x01
46
 
#define         PG_SWBYTE_L                     0x02
47
 
 
48
 
/*--------------------------Define Parameters-------------------------------*/
49
 
 
50
 
 
51
 
/*------------------------------Define structure----------------------------*/ 
52
 
 
53
 
/*------------------------------Define structure----------------------------*/ 
54
 
 
55
 
 
56
 
/*------------------------Export global variable----------------------------*/
57
 
/*------------------------Export global variable----------------------------*/
58
 
 
59
 
/*------------------------Export Marco Definition---------------------------*/
60
 
 
61
 
/*------------------------Export Marco Definition---------------------------*/
62
 
 
63
 
 
64
 
/*--------------------------Exported Function prototype---------------------*/
65
 
extern  void    
66
 
EFUSE_Initialize(struct net_device* dev);
67
 
extern  u8      
68
 
EFUSE_Read1Byte(struct net_device* dev,u16 Address);
69
 
extern  void    
70
 
EFUSE_Write1Byte(struct net_device* dev,u16 Address,u8 Value);
71
 
 
72
 
#ifdef EFUSE_FOR_92SU 
73
 
extern  void 
74
 
ReadEFuse(struct net_device* dev,u16 _offset,u16 _size_byte,u8* pbuf);
75
 
extern  void
76
 
ReadEFuseByte(struct net_device* dev,u16  _offset,u8  *pbuf);
77
 
#endif  
78
 
 
79
 
extern  void
80
 
EFUSE_ShadowRead(struct net_device* dev,unsigned char Type,unsigned short Offset,u32 *Value);
81
 
extern  void
82
 
EFUSE_ShadowWrite(struct net_device* dev,unsigned char Type,unsigned short Offset,u32 Value);
83
 
extern  bool
84
 
EFUSE_ShadowUpdate(struct net_device* dev);
85
 
extern  bool
86
 
EFUSE_ShadowUpdateChk(struct net_device* dev);
87
 
extern  void 
88
 
EFUSE_ShadowMapUpdate(struct net_device* dev);
89
 
extern  void 
90
 
EFUSE_RePgSection1(struct net_device* dev);
91
 
 
92
 
extern  bool    
93
 
EFUSE_ProgramMap(struct net_device* dev,char* pFileName, u8 TableType);         
94
 
/*--------------------------Exported Function prototype---------------------*/
95
 
 
96
 
/* End of Efuse.h */
97
 
 
98
 
#endif