#define _RTL8712_EFUSE_C_
#include "osdep_service.h"
#include "drv_types.h"
#include "rtl8712_efuse.h"
static int efuse_available_max_size = … ;
static void efuse_reg_ctrl(struct _adapter *adapter, u8 bPowerOn)
{ … }
u8 r8712_efuse_reg_init(struct _adapter *adapter)
{ … }
void r8712_efuse_reg_uninit(struct _adapter *adapter)
{ … }
static u8 efuse_one_byte_read(struct _adapter *adapter, u16 addr, u8 *data)
{ … }
static u8 efuse_one_byte_write(struct _adapter *adapter, u16 addr, u8 data)
{ … }
static u8 efuse_one_byte_rw(struct _adapter *adapter, u8 bRead, u16 addr,
u8 *data)
{ … }
static u8 efuse_is_empty(struct _adapter *adapter, u8 *empty)
{ … }
void r8712_efuse_change_max_size(struct _adapter *adapter)
{ … }
int r8712_efuse_get_max_size(struct _adapter *adapter)
{ … }
static u8 calculate_word_cnts(const u8 word_en)
{ … }
static void pgpacket_copy_data(const u8 word_en, const u8 *sourdata,
u8 *targetdata)
{ … }
u16 r8712_efuse_get_current_size(struct _adapter *adapter)
{ … }
u8 r8712_efuse_pg_packet_read(struct _adapter *adapter, u8 offset, u8 *data)
{ … }
static u8 fix_header(struct _adapter *adapter, u8 header, u16 header_addr)
{ … }
u8 r8712_efuse_pg_packet_write(struct _adapter *adapter, const u8 offset,
const u8 word_en, const u8 *data)
{ … }
u8 r8712_efuse_access(struct _adapter *adapter, u8 bRead, u16 start_addr,
u16 cnts, u8 *data)
{ … }
u8 r8712_efuse_map_read(struct _adapter *adapter, u16 addr, u16 cnts, u8 *data)
{ … }
u8 r8712_efuse_map_write(struct _adapter *adapter, u16 addr, u16 cnts,
u8 *data)
{ … }