ar9285.h revision 219481
1343181Sdim/* 2343181Sdim * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 3353358Sdim * 4353358Sdim * Permission to use, copy, modify, and/or distribute this software for any 5353358Sdim * purpose with or without fee is hereby granted, provided that the above 6343181Sdim * copyright notice and this permission notice appear in all copies. 7343181Sdim * 8343181Sdim * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9343181Sdim * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10343181Sdim * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11343181Sdim * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12353358Sdim * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13353358Sdim * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14353358Sdim * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15360784Sdim * 16343181Sdim * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9285.h 219481 2011-03-11 11:58:54Z adrian $ 17353358Sdim */ 18343181Sdim#ifndef _ATH_AR9285_H_ 19343181Sdim#define _ATH_AR9285_H_ 20343181Sdim 21343181Sdim#include "ar5416/ar5416.h" 22343181Sdim 23343181Sdimstruct ath_hal_9285 { 24360784Sdim struct ath_hal_5416 ah_5416; 25360784Sdim 26360784Sdim HAL_INI_ARRAY ah_ini_txgain; 27343181Sdim HAL_INI_ARRAY ah_ini_rxgain; 28360784Sdim 29360784Sdim struct { 30360784Sdim int32_t prev_offset; /* Previous value of PA offset value */ 31360784Sdim int8_t max_skipcount; /* Max No. of times PACAL can be skipped */ 32360784Sdim int8_t skipcount; /* No. of times the PACAL to be skipped */ 33360784Sdim } pacal_info; 34360784Sdim}; 35360784Sdim#define AH9285(_ah) ((struct ath_hal_9285 *)(_ah)) 36343181Sdim 37343181Sdim#define AR9285_DEFAULT_RXCHAINMASK 1 38343181Sdim#define AR9285_DEFAULT_TXCHAINMASK 1 39343181Sdim 40343181Sdim#define AR_PHY_CCA_NOM_VAL_9285_2GHZ -118 41343181Sdim#define AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ -127 42343181Sdim#define AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ -108 43343181Sdim 44343181SdimHAL_BOOL ar9285SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING); 45343181SdimHAL_BOOL ar9285RfAttach(struct ath_hal *, HAL_STATUS *); 46360784Sdim 47360784Sdimextern HAL_BOOL ar9285SetTransmitPower(struct ath_hal *, 48343181Sdim const struct ieee80211_channel *, uint16_t *); 49343181Sdimextern HAL_BOOL ar9285SetBoardValues(struct ath_hal *, 50343181Sdim const struct ieee80211_channel *); 51360784Sdim 52360784Sdim#endif /* _ATH_AR9285_H_ */ 53343181Sdim