Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtl8712_efuse.h File Reference
#include "osdep_service.h"

Go to the source code of this file.

Data Structures

struct  PGPKT_STRUCT
 

Macros

#define _REPEAT_THRESHOLD_   3
 
#define EFUSE_MAX_SIZE   512
 
#define EFUSE_MAP_MAX_SIZE   128
 
#define PGPKG_MAX_WORDS   4
 
#define PGPKT_DATA_SIZE   8 /* PGPKG_MAX_WORDS*2; BYTES sizeof(u8)*8*/
 
#define MAX_PGPKT_SIZE   9 /* 1 + PGPKT_DATA_SIZE; header + 2 * 4 words (BYTES)*/
 
#define GET_EFUSE_OFFSET(header)   ((header & 0xF0) >> 4)
 
#define GET_EFUSE_WORD_EN(header)   (header & 0x0F)
 
#define MAKE_EFUSE_HEADER(offset, word_en)
 

Functions

u8 r8712_efuse_reg_init (struct _adapter *padapter)
 
void r8712_efuse_reg_uninit (struct _adapter *padapter)
 
u16 r8712_efuse_get_current_size (struct _adapter *padapter)
 
int r8712_efuse_get_max_size (struct _adapter *padapter)
 
void r8712_efuse_change_max_size (struct _adapter *padapter)
 
u8 r8712_efuse_pg_packet_read (struct _adapter *padapter, u8 offset, u8 *data)
 
u8 r8712_efuse_pg_packet_write (struct _adapter *padapter, const u8 offset, const u8 word_en, const u8 *data)
 
u8 r8712_efuse_access (struct _adapter *padapter, u8 bRead, u16 start_addr, u16 cnts, u8 *data)
 
u8 r8712_efuse_map_read (struct _adapter *padapter, u16 addr, u16 cnts, u8 *data)
 
u8 r8712_efuse_map_write (struct _adapter *padapter, u16 addr, u16 cnts, u8 *data)
 

Macro Definition Documentation

#define _REPEAT_THRESHOLD_   3

Definition at line 7 of file rtl8712_efuse.h.

#define EFUSE_MAP_MAX_SIZE   128

Definition at line 10 of file rtl8712_efuse.h.

#define EFUSE_MAX_SIZE   512

Definition at line 9 of file rtl8712_efuse.h.

#define GET_EFUSE_OFFSET (   header)    ((header & 0xF0) >> 4)

Definition at line 16 of file rtl8712_efuse.h.

#define GET_EFUSE_WORD_EN (   header)    (header & 0x0F)

Definition at line 17 of file rtl8712_efuse.h.

#define MAKE_EFUSE_HEADER (   offset,
  word_en 
)
Value:
(((offset & 0x0F) << 4) | \
(word_en & 0x0F))

Definition at line 18 of file rtl8712_efuse.h.

#define MAX_PGPKT_SIZE   9 /* 1 + PGPKT_DATA_SIZE; header + 2 * 4 words (BYTES)*/

Definition at line 14 of file rtl8712_efuse.h.

#define PGPKG_MAX_WORDS   4

Definition at line 12 of file rtl8712_efuse.h.

#define PGPKT_DATA_SIZE   8 /* PGPKG_MAX_WORDS*2; BYTES sizeof(u8)*8*/

Definition at line 13 of file rtl8712_efuse.h.

Function Documentation

u8 r8712_efuse_access ( struct _adapter padapter,
u8  bRead,
u16  start_addr,
u16  cnts,
u8 data 
)

Definition at line 434 of file rtl8712_efuse.c.

void r8712_efuse_change_max_size ( struct _adapter padapter)

Definition at line 171 of file rtl8712_efuse.c.

u16 r8712_efuse_get_current_size ( struct _adapter padapter)

Definition at line 218 of file rtl8712_efuse.c.

int r8712_efuse_get_max_size ( struct _adapter padapter)

Definition at line 187 of file rtl8712_efuse.c.

u8 r8712_efuse_map_read ( struct _adapter padapter,
u16  addr,
u16  cnts,
u8 data 
)

Definition at line 463 of file rtl8712_efuse.c.

u8 r8712_efuse_map_write ( struct _adapter padapter,
u16  addr,
u16  cnts,
u8 data 
)

Definition at line 496 of file rtl8712_efuse.c.

u8 r8712_efuse_pg_packet_read ( struct _adapter padapter,
u8  offset,
u8 data 
)

Definition at line 239 of file rtl8712_efuse.c.

u8 r8712_efuse_pg_packet_write ( struct _adapter padapter,
const u8  offset,
const u8  word_en,
const u8 data 
)

Definition at line 365 of file rtl8712_efuse.c.

u8 r8712_efuse_reg_init ( struct _adapter padapter)

Definition at line 68 of file rtl8712_efuse.c.

void r8712_efuse_reg_uninit ( struct _adapter padapter)

Definition at line 73 of file rtl8712_efuse.c.