#include <linux/of.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/etherdevice.h>
#include <asm/unaligned.h>
#include "mt7601u.h"
#include "eeprom.h"
#include "mac.h"
static bool
field_valid(u8 val)
{ … }
static s8
field_validate(u8 val)
{ … }
static int
mt7601u_efuse_read(struct mt7601u_dev *dev, u16 addr, u8 *data,
enum mt7601u_eeprom_access_modes mode)
{ … }
static int
mt7601u_efuse_physical_size_check(struct mt7601u_dev *dev)
{ … }
static bool
mt7601u_has_tssi(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_set_chip_cap(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void mt7601u_set_channel_target_power(struct mt7601u_dev *dev,
u8 *eeprom, u8 max_pwr)
{ … }
static void
mt7601u_set_channel_power(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_set_country_reg(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_set_rf_freq_off(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_set_rssi_offset(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_extra_power_over_mac(struct mt7601u_dev *dev)
{ … }
static void
mt7601u_set_power_rate(struct power_per_rate *rate, s8 delta, u8 value)
{ … }
static void
mt7601u_save_power_rate(struct mt7601u_dev *dev, s8 delta, u32 val, int i)
{ … }
static s8
get_delta(u8 val)
{ … }
static void
mt7601u_config_tx_power_per_rate(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
static void
mt7601u_init_tssi_params(struct mt7601u_dev *dev, u8 *eeprom)
{ … }
int
mt7601u_eeprom_init(struct mt7601u_dev *dev)
{ … }