linux/drivers/net/wireless/mediatek/mt76/eeprom.c

// SPDX-License-Identifier: ISC
/*
 * Copyright (C) 2016 Felix Fietkau <[email protected]>
 */
#include <linux/of.h>
#include <linux/of_net.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/nvmem-consumer.h>
#include <linux/etherdevice.h>
#include "mt76.h"

static int mt76_get_of_eeprom_data(struct mt76_dev *dev, void *eep, int len)
{}

int mt76_get_of_data_from_mtd(struct mt76_dev *dev, void *eep, int offset, int len)
{}
EXPORT_SYMBOL_GPL();

int mt76_get_of_data_from_nvmem(struct mt76_dev *dev, void *eep,
				const char *cell_name, int len)
{}
EXPORT_SYMBOL_GPL();

static int mt76_get_of_eeprom(struct mt76_dev *dev, void *eep, int len)
{}

void
mt76_eeprom_override(struct mt76_phy *phy)
{}
EXPORT_SYMBOL_GPL();

static bool mt76_string_prop_find(struct property *prop, const char *str)
{}

struct device_node *
mt76_find_power_limits_node(struct mt76_dev *dev)
{}
EXPORT_SYMBOL_GPL();

static const __be32 *
mt76_get_of_array(struct device_node *np, char *name, size_t *len, int min)
{}

struct device_node *
mt76_find_channel_node(struct device_node *np, struct ieee80211_channel *chan)
{}
EXPORT_SYMBOL_GPL();


static s8
mt76_get_txs_delta(struct device_node *np, u8 nss)
{}

static void
mt76_apply_array_limit(s8 *pwr, size_t pwr_len, const __be32 *data,
		       s8 target_power, s8 nss_delta, s8 *max_power)
{}

static void
mt76_apply_multi_array_limit(s8 *pwr, size_t pwr_len, s8 pwr_num,
			     const __be32 *data, size_t len, s8 target_power,
			     s8 nss_delta, s8 *max_power)
{}

s8 mt76_get_rate_power_limits(struct mt76_phy *phy,
			      struct ieee80211_channel *chan,
			      struct mt76_power_limits *dest,
			      s8 target_power)
{}
EXPORT_SYMBOL_GPL();

int
mt76_eeprom_init(struct mt76_dev *dev, int len)
{}
EXPORT_SYMBOL_GPL();