linux/drivers/net/wireless/ath/ath9k/ani.h

/*
 * Copyright (c) 2008-2011 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef ANI_H
#define ANI_H

#define BEACON_RSSI(ahp)

/* units are errors per second */
#define ATH9K_ANI_OFDM_TRIG_HIGH
#define ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI
#define ATH9K_ANI_OFDM_TRIG_HIGH_OLD

#define ATH9K_ANI_OFDM_TRIG_LOW
#define ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI
#define ATH9K_ANI_OFDM_TRIG_LOW_OLD

#define ATH9K_ANI_CCK_TRIG_HIGH
#define ATH9K_ANI_CCK_TRIG_HIGH_OLD
#define ATH9K_ANI_CCK_TRIG_LOW
#define ATH9K_ANI_CCK_TRIG_LOW_OLD

#define ATH9K_ANI_SPUR_IMMUNE_LVL
#define ATH9K_ANI_FIRSTEP_LVL

#define ATH9K_ANI_RSSI_THR_HIGH
#define ATH9K_ANI_RSSI_THR_LOW

#define ATH9K_ANI_PERIOD

/* in ms */
#define ATH9K_ANI_POLLINTERVAL

#define ATH9K_SIG_FIRSTEP_SETTING_MIN
#define ATH9K_SIG_FIRSTEP_SETTING_MAX
#define ATH9K_SIG_SPUR_IMM_SETTING_MIN
#define ATH9K_SIG_SPUR_IMM_SETTING_MAX

/* values here are relative to the INI */

enum ath9k_ani_cmd {};

struct ath9k_mib_stats {};

/* INI default values for ANI registers */
struct ath9k_ani_default {};

struct ar5416AniState {};

struct ar5416Stats {};
#define ah_mibStats

void ath9k_enable_mib_counters(struct ath_hw *ah);
void ath9k_hw_disable_mib_counters(struct ath_hw *ah);
void ath9k_hw_ani_init(struct ath_hw *ah);

#endif /* ANI_H */