Linux-libre 2.6.32.58-gnu1
[librecmc/linux-libre.git] / drivers / staging / rt3090 / eeprom.h
1 /*
2  *************************************************************************
3  * Ralink Tech Inc.
4  * 5F., No.36, Taiyuan St., Jhubei City,
5  * Hsinchu County 302,
6  * Taiwan, R.O.C.
7  *
8  * (c) Copyright 2002-2007, Ralink Technology, Inc.
9  *
10  * This program is free software; you can redistribute it and/or modify  *
11  * it under the terms of the GNU General Public License as published by  *
12  * the Free Software Foundation; either version 2 of the License, or     *
13  * (at your option) any later version.                                   *
14  *                                                                       *
15  * This program is distributed in the hope that it will be useful,       *
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
18  * GNU General Public License for more details.                          *
19  *                                                                       *
20  * You should have received a copy of the GNU General Public License     *
21  * along with this program; if not, write to the                         *
22  * Free Software Foundation, Inc.,                                       *
23  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
24  *                                                                       *
25  *************************************************************************
26
27     Module Name:
28     eeprom.h
29
30     Abstract:
31     Miniport generic portion header file
32
33     Revision History:
34     Who         When          What
35     --------    ----------    ----------------------------------------------
36 */
37 #ifndef __EEPROM_H__
38 #define __EEPROM_H__
39
40
41
42 #ifdef RTMP_PCI_SUPPORT
43 /*************************************************************************
44   *     Public function declarations for prom-based chipset
45   ************************************************************************/
46 int rtmp_ee_prom_read16(
47         IN PRTMP_ADAPTER        pAd,
48         IN USHORT                       Offset,
49         OUT USHORT                      *pValue);
50
51 int rtmp_ee_prom_write16(
52         IN PRTMP_ADAPTER        pAd,
53         IN USHORT                       Offset,
54         IN USHORT                       value);
55 #endif // RTMP_PCI_SUPPORT //
56
57
58
59
60
61 #ifdef RT30xx
62 #ifdef RTMP_EFUSE_SUPPORT
63 int rtmp_ee_efuse_read16(
64         IN RTMP_ADAPTER *pAd,
65         IN USHORT Offset,
66         OUT USHORT *pValue);
67
68 int rtmp_ee_efuse_write16(
69         IN RTMP_ADAPTER *pAd,
70         IN USHORT Offset,
71         IN USHORT data);
72 #endif // RTMP_EFUSE_SUPPORT //
73 #endif // RT30xx //
74
75 /*************************************************************************
76   *     Public function declarations for prom operation callback functions setting
77   ************************************************************************/
78 INT RtmpChipOpsEepromHook(
79         IN RTMP_ADAPTER *pAd,
80         IN INT                  infType);
81
82 #endif // __EEPROM_H__ //