Path: blob/main/sys/contrib/dev/ath/ath_hal/ar9300/ar9300paprd.h
48525 views
/*1* Copyright (c) 2013 Qualcomm Atheros, Inc.2*3* Permission to use, copy, modify, and/or distribute this software for any4* purpose with or without fee is hereby granted, provided that the above5* copyright notice and this permission notice appear in all copies.6*7* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH8* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY9* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,10* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM11* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR12* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR13* PERFORMANCE OF THIS SOFTWARE.14*/15#ifndef __AR9300PAPRD_H__16#define __AR9300PAPRD_H__1718#include <ah.h>19#include "ar9300.h"20#include "ar9300phy.h"2122#define AH_PAPRD_AM_PM_MASK 0x1ffffff23#define AH_PAPRD_IDEAL_AGC2_PWR_RANGE 0xe02425extern int ar9300_paprd_init_table(struct ath_hal *ah, struct ieee80211_channel *chan);26extern HAL_STATUS ar9300_paprd_setup_gain_table(struct ath_hal *ah, int chain_num);27extern HAL_STATUS ar9300_paprd_create_curve(struct ath_hal *ah, struct ieee80211_channel *chan, int chain_num);28extern int ar9300_paprd_is_done(struct ath_hal *ah);29extern void ar9300_enable_paprd(struct ath_hal *ah, HAL_BOOL enable_flag, struct ieee80211_channel * chan);30extern void ar9300_swizzle_paprd_entries(struct ath_hal *ah, unsigned int txchain);31extern void ar9300_populate_paprd_single_table(struct ath_hal *ah, struct ieee80211_channel *chan, int chain_num);32extern void ar9300_paprd_dec_tx_pwr(struct ath_hal *ah);33extern int ar9300_paprd_thermal_send(struct ath_hal *ah);3435#endif363738