linux/drivers/staging/rtl8712/rtl8712_efuse.c

// SPDX-License-Identifier: GPL-2.0
/*
 * rtl8712_efuse.c
 *
 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
 * Linux device driver for RTL8192SU
 *
 * Modifications for inclusion into the Linux staging tree are
 * Copyright(c) 2010 Larry Finger. All rights reserved.
 *
 * Contact information:
 * WLAN FAE <[email protected]>.
 * Larry Finger <[email protected]>
 *
 ******************************************************************************/

#define _RTL8712_EFUSE_C_

#include "osdep_service.h"
#include "drv_types.h"
#include "rtl8712_efuse.h"

/* reserve 3 bytes for HW stop read */
static int efuse_available_max_size = /*0x1FD*/;

static void efuse_reg_ctrl(struct _adapter *adapter, u8 bPowerOn)
{}

/*
 * Before write E-Fuse, this function must be called.
 */
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)
{}