Path: blob/main/sys/dev/ath/ath_hal/ar9002/ar9280.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_AR9280_H_18#define _ATH_AR9280_H_1920#include "ar5416/ar5416.h"2122/*23* This is a chip thing, but it's used here as part of the24* ath_hal_9280 struct; so it's convienent to locate the25* define here.26*/27#define AR9280_TX_GAIN_TABLE_SIZE 222829struct ath_hal_9280 {30struct ath_hal_5416 ah_5416;3132HAL_INI_ARRAY ah_ini_xmodes;33HAL_INI_ARRAY ah_ini_rxgain;34HAL_INI_ARRAY ah_ini_txgain;3536int PDADCdelta;3738uint32_t originalGain[AR9280_TX_GAIN_TABLE_SIZE];39};40#define AH9280(_ah) ((struct ath_hal_9280 *)(_ah))4142#define AR9280_DEFAULT_RXCHAINMASK 343#define AR9285_DEFAULT_RXCHAINMASK 144#define AR9280_DEFAULT_TXCHAINMASK 145#define AR9285_DEFAULT_TXCHAINMASK 14647#define AR_PHY_CCA_NOM_VAL_9280_2GHZ -11248#define AR_PHY_CCA_NOM_VAL_9280_5GHZ -11249#define AR_PHY_CCA_MIN_GOOD_VAL_9280_2GHZ -12750#define AR_PHY_CCA_MIN_GOOD_VAL_9280_5GHZ -12251#define AR_PHY_CCA_MAX_GOOD_VAL_9280_2GHZ -9752#define AR_PHY_CCA_MAX_GOOD_VAL_9280_5GHZ -1025354HAL_BOOL ar9280RfAttach(struct ath_hal *, HAL_STATUS *);5556struct ath_hal;5758HAL_BOOL ar9280SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);59void ar9280SpurMitigate(struct ath_hal *,60const struct ieee80211_channel *);61void ar9280InitPLL(struct ath_hal *ah,62const struct ieee80211_channel *chan);63#endif /* _ATH_AR9280_H_ */646566