ar2316.c (185380) | ar2316.c (185406) |
---|---|
1/* 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 4 unchanged lines hidden (view full) --- 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * 17 * $Id: ar2316.c,v 1.9 2008/11/15 22:15:46 sam Exp $ 18 */ 19#include "opt_ah.h" 20 | 1/* 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 4 unchanged lines hidden (view full) --- 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * 17 * $Id: ar2316.c,v 1.9 2008/11/15 22:15:46 sam Exp $ 18 */ 19#include "opt_ah.h" 20 |
21#ifdef AH_SUPPORT_2316 22 | |
23#include "ah.h" 24#include "ah_internal.h" 25 26#include "ar5212/ar5212.h" 27#include "ar5212/ar5212reg.h" 28#include "ar5212/ar5212phy.h" 29 30#include "ah_eeprom_v3.h" --- 691 unchanged lines hidden (view full) --- 722 ath_hal_free(ahp->ah_rfHal); 723 ahp->ah_rfHal = AH_NULL; 724} 725 726/* 727 * Allocate memory for private state. 728 * Scratch Buffer will be reinitialized every reset so no need to zero now 729 */ | 21#include "ah.h" 22#include "ah_internal.h" 23 24#include "ar5212/ar5212.h" 25#include "ar5212/ar5212reg.h" 26#include "ar5212/ar5212phy.h" 27 28#include "ah_eeprom_v3.h" --- 691 unchanged lines hidden (view full) --- 720 ath_hal_free(ahp->ah_rfHal); 721 ahp->ah_rfHal = AH_NULL; 722} 723 724/* 725 * Allocate memory for private state. 726 * Scratch Buffer will be reinitialized every reset so no need to zero now 727 */ |
730HAL_BOOL | 728static HAL_BOOL |
731ar2316RfAttach(struct ath_hal *ah, HAL_STATUS *status) 732{ 733 struct ath_hal_5212 *ahp = AH5212(ah); 734 struct ar2316State *priv; 735 736 HALASSERT(ah->ah_magic == AR5212_MAGIC); 737 738 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 16 unchanged lines hidden (view full) --- 755 ahp->ah_pcdacTable = priv->pcdacTable; 756 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 757 ahp->ah_rfHal = &priv->base; 758 759 ahp->ah_cwCalRequire = AH_TRUE; /* force initial cal */ 760 761 return AH_TRUE; 762} | 729ar2316RfAttach(struct ath_hal *ah, HAL_STATUS *status) 730{ 731 struct ath_hal_5212 *ahp = AH5212(ah); 732 struct ar2316State *priv; 733 734 HALASSERT(ah->ah_magic == AR5212_MAGIC); 735 736 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 16 unchanged lines hidden (view full) --- 753 ahp->ah_pcdacTable = priv->pcdacTable; 754 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 755 ahp->ah_rfHal = &priv->base; 756 757 ahp->ah_cwCalRequire = AH_TRUE; /* force initial cal */ 758 759 return AH_TRUE; 760} |
763#endif /* AH_SUPPORT_2316 */ | 761 762static HAL_BOOL 763ar2316Probe(struct ath_hal *ah) 764{ 765 return IS_2316(ah); 766} 767AH_RF(ar2316, ar2316Probe, ar2316RfAttach); |