Home | History | Annotate | Line # | Download | only in ar5416
      1  1.1  cegger /*
      2  1.1  cegger  * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
      3  1.1  cegger  *
      4  1.1  cegger  * Permission to use, copy, modify, and/or distribute this software for any
      5  1.1  cegger  * purpose with or without fee is hereby granted, provided that the above
      6  1.1  cegger  * copyright notice and this permission notice appear in all copies.
      7  1.1  cegger  *
      8  1.1  cegger  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
      9  1.1  cegger  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     10  1.1  cegger  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     11  1.1  cegger  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     12  1.1  cegger  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     13  1.1  cegger  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     14  1.1  cegger  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     15  1.1  cegger  *
     16  1.1  cegger  * $FreeBSD: src/sys/dev/ath/ath_hal/ar5416/ar9285.h,v 1.1 2010/02/15 17:49:49 rpaulo Exp $
     17  1.1  cegger  */
     18  1.1  cegger #ifndef _ATH_AR9285_H_
     19  1.1  cegger #define _ATH_AR9285_H_
     20  1.1  cegger 
     21  1.1  cegger #include "ar5416/ar5416.h"
     22  1.1  cegger 
     23  1.1  cegger struct ath_hal_9285 {
     24  1.1  cegger 	struct ath_hal_5416 ah_5416;
     25  1.1  cegger 
     26  1.1  cegger 	HAL_INI_ARRAY	ah_ini_txgain;
     27  1.1  cegger 	HAL_INI_ARRAY	ah_ini_rxgain;
     28  1.1  cegger };
     29  1.1  cegger #define	AH9285(_ah)	((struct ath_hal_9285 *)(_ah))
     30  1.1  cegger 
     31  1.1  cegger #define	AR9285_DEFAULT_RXCHAINMASK	1
     32  1.1  cegger #define	AR9285_DEFAULT_TXCHAINMASK	1
     33  1.1  cegger 
     34  1.1  cegger 
     35  1.1  cegger HAL_BOOL ar9285SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
     36  1.1  cegger HAL_BOOL ar9285RfAttach(struct ath_hal *, HAL_STATUS *);
     37  1.1  cegger 
     38  1.1  cegger extern	HAL_BOOL ar9285SetTransmitPower(struct ath_hal *,
     39  1.1  cegger 		HAL_CHANNEL *, uint16_t *);
     40  1.1  cegger extern HAL_BOOL ar9285SetBoardValues(struct ath_hal *,
     41  1.1  cegger 		HAL_CHANNEL *);
     42  1.1  cegger 
     43  1.1  cegger #endif	/* _ATH_AR9285_H_ */
     44