#include <asm/unaligned.h>
#include "hw.h"
#include "ar9002_phy.h"
#define SIZE_EEPROM_AR9287 …
static int ath9k_hw_ar9287_get_eeprom_ver(struct ath_hw *ah)
{ … }
static int ath9k_hw_ar9287_get_eeprom_rev(struct ath_hw *ah)
{ … }
static bool __ath9k_hw_ar9287_fill_eeprom(struct ath_hw *ah)
{ … }
static bool __ath9k_hw_usb_ar9287_fill_eeprom(struct ath_hw *ah)
{ … }
static bool ath9k_hw_ar9287_fill_eeprom(struct ath_hw *ah)
{ … }
#ifdef CONFIG_ATH9K_COMMON_DEBUG
static u32 ar9287_dump_modal_eeprom(char *buf, u32 len, u32 size,
struct modal_eep_ar9287_header *modal_hdr)
{ … }
static u32 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
u8 *buf, u32 len, u32 size)
{ … }
#else
static u32 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
u8 *buf, u32 len, u32 size)
{
return 0;
}
#endif
static int ath9k_hw_ar9287_check_eeprom(struct ath_hw *ah)
{ … }
#undef SIZE_EEPROM_AR9287
static u32 ath9k_hw_ar9287_get_eeprom(struct ath_hw *ah,
enum eeprom_param param)
{ … }
static void ar9287_eeprom_get_tx_gain_index(struct ath_hw *ah,
struct ath9k_channel *chan,
struct cal_data_op_loop_ar9287 *pRawDatasetOpLoop,
u8 *pCalChans, u16 availPiers, int8_t *pPwr)
{ … }
static void ar9287_eeprom_olpc_set_pdadcs(struct ath_hw *ah,
int32_t txPower, u16 chain)
{ … }
static void ath9k_hw_set_ar9287_power_cal_table(struct ath_hw *ah,
struct ath9k_channel *chan)
{ … }
static void ath9k_hw_set_ar9287_power_per_rate_table(struct ath_hw *ah,
struct ath9k_channel *chan,
int16_t *ratesArray,
u16 cfgCtl,
u16 antenna_reduction,
u16 powerLimit)
{ … }
static void ath9k_hw_ar9287_set_txpower(struct ath_hw *ah,
struct ath9k_channel *chan, u16 cfgCtl,
u8 twiceAntennaReduction,
u8 powerLimit, bool test)
{ … }
static void ath9k_hw_ar9287_set_board_values(struct ath_hw *ah,
struct ath9k_channel *chan)
{ … }
static u16 ath9k_hw_ar9287_get_spur_channel(struct ath_hw *ah,
u16 i, bool is2GHz)
{ … }
static u8 ath9k_hw_ar9287_get_eepmisc(struct ath_hw *ah)
{ … }
const struct eeprom_ops eep_ar9287_ops = …;