ar2413.c (185380) | ar2413.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: ar2413.c,v 1.8 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: ar2413.c,v 1.8 2008/11/15 22:15:46 sam Exp $ 18 */ 19#include "opt_ah.h" 20 |
21#ifdef AH_SUPPORT_2413 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" --- 685 unchanged lines hidden (view full) --- 716 ath_hal_free(ahp->ah_rfHal); 717 ahp->ah_rfHal = AH_NULL; 718} 719 720/* 721 * Allocate memory for analog bank scratch buffers 722 * Scratch Buffer will be reinitialized every reset so no need to zero now 723 */ | 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" --- 685 unchanged lines hidden (view full) --- 714 ath_hal_free(ahp->ah_rfHal); 715 ahp->ah_rfHal = AH_NULL; 716} 717 718/* 719 * Allocate memory for analog bank scratch buffers 720 * Scratch Buffer will be reinitialized every reset so no need to zero now 721 */ |
724HAL_BOOL | 722static HAL_BOOL |
725ar2413RfAttach(struct ath_hal *ah, HAL_STATUS *status) 726{ 727 struct ath_hal_5212 *ahp = AH5212(ah); 728 struct ar2413State *priv; 729 730 HALASSERT(ah->ah_magic == AR5212_MAGIC); 731 732 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 14 unchanged lines hidden (view full) --- 747 priv->base.getNfAdjust = ar5212GetNfAdjust; 748 749 ahp->ah_pcdacTable = priv->pcdacTable; 750 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 751 ahp->ah_rfHal = &priv->base; 752 753 return AH_TRUE; 754} | 723ar2413RfAttach(struct ath_hal *ah, HAL_STATUS *status) 724{ 725 struct ath_hal_5212 *ahp = AH5212(ah); 726 struct ar2413State *priv; 727 728 HALASSERT(ah->ah_magic == AR5212_MAGIC); 729 730 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 14 unchanged lines hidden (view full) --- 745 priv->base.getNfAdjust = ar5212GetNfAdjust; 746 747 ahp->ah_pcdacTable = priv->pcdacTable; 748 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 749 ahp->ah_rfHal = &priv->base; 750 751 return AH_TRUE; 752} |
755#endif /* AH_SUPPORT_2413 */ | 753 754static HAL_BOOL 755ar2413Probe(struct ath_hal *ah) 756{ 757 return IS_2413(ah); 758} 759AH_RF(ar2413, ar2413Probe, ar2413RfAttach); |