Path: blob/main/sys/dev/ath/ath_hal/ar9002/ar9287.h
39566 views
/*-1* SPDX-License-Identifier: ISC2*3* Copyright (c) 2010 Atheros Communications, Inc.4*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*/1718#ifndef _ATH_AR9287_H_19#define _ATH_AR9287_H_2021#include "ar5416/ar5416.h"2223/*24* This is a chip thing, but it's used here as part of the25* ath_hal_9287 struct; so it's convienent to locate the26* define here.27*/28#define AR9287_TX_GAIN_TABLE_SIZE 222930struct ath_hal_9287 {31struct ath_hal_5416 ah_5416;3233HAL_INI_ARRAY ah_ini_xmodes;34HAL_INI_ARRAY ah_ini_rxgain;35HAL_INI_ARRAY ah_ini_txgain;3637HAL_INI_ARRAY ah_ini_cckFirNormal;38HAL_INI_ARRAY ah_ini_cckFirJapan2484;3940int PDADCdelta;4142uint32_t originalGain[AR9287_TX_GAIN_TABLE_SIZE];43};44#define AH9287(_ah) ((struct ath_hal_9287 *)(_ah))4546#define AR9287_DEFAULT_RXCHAINMASK 347#define AR9287_DEFAULT_TXCHAINMASK 34849#define AR_PHY_CCA_NOM_VAL_9287_2GHZ -11250#define AR_PHY_CCA_NOM_VAL_9287_5GHZ -11251#define AR_PHY_CCA_MIN_GOOD_VAL_9287_2GHZ -12752#define AR_PHY_CCA_MIN_GOOD_VAL_9287_5GHZ -12253#define AR_PHY_CCA_MAX_GOOD_VAL_9287_2GHZ -9754#define AR_PHY_CCA_MAX_GOOD_VAL_9287_5GHZ -1025556extern HAL_BOOL ar9287RfAttach(struct ath_hal *, HAL_STATUS *);57extern HAL_BOOL ar9287SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);5859#endif /* _ATH_AR9287_H_ */606162