Path: blob/main/sys/dev/ath/ath_hal/ar9002/ar9285.h
39566 views
/*-1* SPDX-License-Identifier: ISC2*3* Copyright (c) 2008-2009 Sam Leffler, Errno Consulting4*5* Permission to use, copy, modify, and/or distribute this software for any6* purpose with or without fee is hereby granted, provided that the above7* copyright notice and this permission notice appear in all copies.8*9* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES10* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF11* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR12* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES13* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN14* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF15* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.16*/17#ifndef _ATH_AR9285_H_18#define _ATH_AR9285_H_1920#include "ar5416/ar5416.h"2122struct ath_hal_9285 {23struct ath_hal_5416 ah_5416;2425HAL_INI_ARRAY ah_ini_txgain;26HAL_INI_ARRAY ah_ini_rxgain;2728struct {29int32_t prev_offset; /* Previous value of PA offset value */30int8_t max_skipcount; /* Max No. of times PACAL can be skipped */31int8_t skipcount; /* No. of times the PACAL to be skipped */32} pacal_info;33};34#define AH9285(_ah) ((struct ath_hal_9285 *)(_ah))3536#define AR9285_DEFAULT_RXCHAINMASK 137#define AR9285_DEFAULT_TXCHAINMASK 13839#define AR_PHY_CCA_NOM_VAL_9285_2GHZ -11840#define AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ -12741#define AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ -1084243HAL_BOOL ar9285RfAttach(struct ath_hal *, HAL_STATUS *);4445extern HAL_BOOL ar9285SetTransmitPower(struct ath_hal *,46const struct ieee80211_channel *, uint16_t *);47extern HAL_BOOL ar9285SetBoardValues(struct ath_hal *,48const struct ieee80211_channel *);4950/* ar9285_btcoex.h */51extern void ar9285BTCoexAntennaDiversity(struct ath_hal *ah);52extern void ar9285BTCoexSetParameter(struct ath_hal *ah,53u_int32_t value, u_int32_t type);5455#endif /* _ATH_AR9285_H_ */565758