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

« back to all changes in this revision

Viewing changes to drivers/net/wireless/rtlwifi/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:
30
30
#ifndef __RTL_EFUSE_H_
31
31
#define __RTL_EFUSE_H_
32
32
 
 
33
#define EFUSE_IC_ID_OFFSET              506
 
34
 
33
35
#define EFUSE_REAL_CONTENT_LEN          512
34
36
#define EFUSE_MAP_LEN                   128
35
 
#define EFUSE_MAX_SECTION               16
36
37
#define EFUSE_MAX_WORD_UNIT             4
37
38
 
38
39
#define EFUSE_INIT_MAP                  0
52
53
#define _PRE_EXECUTE_READ_CMD_
53
54
 
54
55
#define EFUSE_REPEAT_THRESHOLD_         3
 
56
#define EFUSE_ERROE_HANDLE              1
55
57
 
56
58
struct efuse_map {
57
59
        u8 offset;
103
105
        u8 tx_power_g[14];
104
106
};
105
107
 
 
108
extern void read_efuse_byte(struct ieee80211_hw *hw, u16 _offset, u8 *pbuf);
106
109
extern void efuse_initialize(struct ieee80211_hw *hw);
107
110
extern u8 efuse_read_1byte(struct ieee80211_hw *hw, u16 address);
108
111
extern void efuse_write_1byte(struct ieee80211_hw *hw, u16 address, u8 value);
117
120
extern void rtl_efuse_shadow_map_update(struct ieee80211_hw *hw);
118
121
extern void efuse_force_write_vendor_Id(struct ieee80211_hw *hw);
119
122
extern void efuse_re_pg_section(struct ieee80211_hw *hw, u8 section_idx);
120
 
extern bool efuse_program_map(struct ieee80211_hw *hw,
121
 
                              char *p_filename, u8 tabletype);
122
 
extern void efuse_reset_loader(struct ieee80211_hw *hw);
123
123
 
124
124
#endif