Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
efuse.h File Reference

Go to the source code of this file.

Data Structures

struct  efuse_map
 
struct  pgpkt_struct
 
struct  efuse_priv
 

Macros

#define EFUSE_IC_ID_OFFSET   506
 
#define EFUSE_REAL_CONTENT_LEN   512
 
#define EFUSE_MAP_LEN   128
 
#define EFUSE_MAX_WORD_UNIT   4
 
#define EFUSE_INIT_MAP   0
 
#define EFUSE_MODIFY_MAP   1
 
#define PG_STATE_HEADER   0x01
 
#define PG_STATE_WORD_0   0x02
 
#define PG_STATE_WORD_1   0x04
 
#define PG_STATE_WORD_2   0x08
 
#define PG_STATE_WORD_3   0x10
 
#define PG_STATE_DATA   0x20
 
#define PG_SWBYTE_H   0x01
 
#define PG_SWBYTE_L   0x02
 
#define _POWERON_DELAY_
 
#define _PRE_EXECUTE_READ_CMD_
 
#define EFUSE_REPEAT_THRESHOLD_   3
 
#define EFUSE_ERROE_HANDLE   1
 

Enumerations

enum  efuse_data_item {
  EFUSE_CHIP_ID = 0, EFUSE_LDO_SETTING, EFUSE_CLK_SETTING, EFUSE_SDIO_SETTING,
  EFUSE_CCCR, EFUSE_SDIO_MODE, EFUSE_OCR, EFUSE_F0CIS,
  EFUSE_F1CIS, EFUSE_MAC_ADDR, EFUSE_EEPROM_VER, EFUSE_CHAN_PLAN,
  EFUSE_TXPW_TAB
}
 
enum  { VOLTAGE_V25 = 0x03, LDOE25_SHIFT = 28 }
 

Functions

void read_efuse_byte (struct ieee80211_hw *hw, u16 _offset, u8 *pbuf)
 
void efuse_initialize (struct ieee80211_hw *hw)
 
u8 efuse_read_1byte (struct ieee80211_hw *hw, u16 address)
 
void efuse_write_1byte (struct ieee80211_hw *hw, u16 address, u8 value)
 
void read_efuse (struct ieee80211_hw *hw, u16 _offset, u16 _size_byte, u8 *pbuf)
 
void efuse_shadow_read (struct ieee80211_hw *hw, u8 type, u16 offset, u32 *value)
 
void efuse_shadow_write (struct ieee80211_hw *hw, u8 type, u16 offset, u32 value)
 
bool efuse_shadow_update (struct ieee80211_hw *hw)
 
bool efuse_shadow_update_chk (struct ieee80211_hw *hw)
 
void rtl_efuse_shadow_map_update (struct ieee80211_hw *hw)
 
void efuse_force_write_vendor_Id (struct ieee80211_hw *hw)
 
void efuse_re_pg_section (struct ieee80211_hw *hw, u8 section_idx)
 

Macro Definition Documentation

#define _POWERON_DELAY_

Definition at line 52 of file efuse.h.

#define _PRE_EXECUTE_READ_CMD_

Definition at line 53 of file efuse.h.

#define EFUSE_ERROE_HANDLE   1

Definition at line 56 of file efuse.h.

#define EFUSE_IC_ID_OFFSET   506

Definition at line 33 of file efuse.h.

#define EFUSE_INIT_MAP   0

Definition at line 39 of file efuse.h.

#define EFUSE_MAP_LEN   128

Definition at line 36 of file efuse.h.

#define EFUSE_MAX_WORD_UNIT   4

Definition at line 37 of file efuse.h.

#define EFUSE_MODIFY_MAP   1

Definition at line 40 of file efuse.h.

#define EFUSE_REAL_CONTENT_LEN   512

Definition at line 35 of file efuse.h.

#define EFUSE_REPEAT_THRESHOLD_   3

Definition at line 55 of file efuse.h.

#define PG_STATE_DATA   0x20

Definition at line 47 of file efuse.h.

#define PG_STATE_HEADER   0x01

Definition at line 42 of file efuse.h.

#define PG_STATE_WORD_0   0x02

Definition at line 43 of file efuse.h.

#define PG_STATE_WORD_1   0x04

Definition at line 44 of file efuse.h.

#define PG_STATE_WORD_2   0x08

Definition at line 45 of file efuse.h.

#define PG_STATE_WORD_3   0x10

Definition at line 46 of file efuse.h.

#define PG_SWBYTE_H   0x01

Definition at line 49 of file efuse.h.

#define PG_SWBYTE_L   0x02

Definition at line 50 of file efuse.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
VOLTAGE_V25 
LDOE25_SHIFT 

Definition at line 87 of file efuse.h.

Enumerator:
EFUSE_CHIP_ID 
EFUSE_LDO_SETTING 
EFUSE_CLK_SETTING 
EFUSE_SDIO_SETTING 
EFUSE_CCCR 
EFUSE_SDIO_MODE 
EFUSE_OCR 
EFUSE_F0CIS 
EFUSE_F1CIS 
EFUSE_MAC_ADDR 
EFUSE_EEPROM_VER 
EFUSE_CHAN_PLAN 
EFUSE_TXPW_TAB 

Definition at line 71 of file efuse.h.

Function Documentation

void efuse_force_write_vendor_Id ( struct ieee80211_hw hw)

Definition at line 521 of file efuse.c.

void efuse_initialize ( struct ieee80211_hw hw)

Definition at line 86 of file efuse.c.

void efuse_re_pg_section ( struct ieee80211_hw hw,
u8  section_idx 
)

Definition at line 533 of file efuse.c.

u8 efuse_read_1byte ( struct ieee80211_hw hw,
u16  address 
)

Definition at line 110 of file efuse.c.

void efuse_shadow_read ( struct ieee80211_hw hw,
u8  type,
u16  offset,
u32 value 
)

Definition at line 404 of file efuse.c.

bool efuse_shadow_update ( struct ieee80211_hw hw)

Definition at line 428 of file efuse.c.

bool efuse_shadow_update_chk ( struct ieee80211_hw hw)

Definition at line 363 of file efuse.c.

void efuse_shadow_write ( struct ieee80211_hw hw,
u8  type,
u16  offset,
u32  value 
)

Definition at line 416 of file efuse.c.

void efuse_write_1byte ( struct ieee80211_hw hw,
u16  address,
u8  value 
)

Definition at line 156 of file efuse.c.

void read_efuse ( struct ieee80211_hw hw,
u16  _offset,
u16  _size_byte,
u8 pbuf 
)

Definition at line 235 of file efuse.c.

void read_efuse_byte ( struct ieee80211_hw hw,
u16  _offset,
u8 pbuf 
)

Definition at line 204 of file efuse.c.

void rtl_efuse_shadow_map_update ( struct ieee80211_hw hw)

Definition at line 503 of file efuse.c.