ar5413.c (185380) | ar5413.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: ar5413.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: ar5413.c,v 1.8 2008/11/15 22:15:46 sam Exp $ 18 */ 19#include "opt_ah.h" 20 |
21#ifdef AH_SUPPORT_5413 22 | |
23#include "ah.h" 24#include "ah_internal.h" 25 26#include "ah_eeprom_v3.h" 27 28#include "ar5212/ar5212.h" 29#include "ar5212/ar5212reg.h" 30#include "ar5212/ar5212phy.h" --- 723 unchanged lines hidden (view full) --- 754 ath_hal_free(ahp->ah_rfHal); 755 ahp->ah_rfHal = AH_NULL; 756} 757 758/* 759 * Allocate memory for analog bank scratch buffers 760 * Scratch Buffer will be reinitialized every reset so no need to zero now 761 */ | 21#include "ah.h" 22#include "ah_internal.h" 23 24#include "ah_eeprom_v3.h" 25 26#include "ar5212/ar5212.h" 27#include "ar5212/ar5212reg.h" 28#include "ar5212/ar5212phy.h" --- 723 unchanged lines hidden (view full) --- 752 ath_hal_free(ahp->ah_rfHal); 753 ahp->ah_rfHal = AH_NULL; 754} 755 756/* 757 * Allocate memory for analog bank scratch buffers 758 * Scratch Buffer will be reinitialized every reset so no need to zero now 759 */ |
762HAL_BOOL | 760static HAL_BOOL |
763ar5413RfAttach(struct ath_hal *ah, HAL_STATUS *status) 764{ 765 struct ath_hal_5212 *ahp = AH5212(ah); 766 struct ar5413State *priv; 767 768 HALASSERT(ah->ah_magic == AR5212_MAGIC); 769 770 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 14 unchanged lines hidden (view full) --- 785 priv->base.getNfAdjust = ar5212GetNfAdjust; 786 787 ahp->ah_pcdacTable = priv->pcdacTable; 788 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 789 ahp->ah_rfHal = &priv->base; 790 791 return AH_TRUE; 792} | 761ar5413RfAttach(struct ath_hal *ah, HAL_STATUS *status) 762{ 763 struct ath_hal_5212 *ahp = AH5212(ah); 764 struct ar5413State *priv; 765 766 HALASSERT(ah->ah_magic == AR5212_MAGIC); 767 768 HALASSERT(ahp->ah_rfHal == AH_NULL); --- 14 unchanged lines hidden (view full) --- 783 priv->base.getNfAdjust = ar5212GetNfAdjust; 784 785 ahp->ah_pcdacTable = priv->pcdacTable; 786 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable); 787 ahp->ah_rfHal = &priv->base; 788 789 return AH_TRUE; 790} |
793#endif /* AH_SUPPORT_5413 */ | 791 792static HAL_BOOL 793ar5413Probe(struct ath_hal *ah) 794{ 795 return IS_5413(ah); 796} 797AH_RF(ar5413, ar5413Probe, ar5413RfAttach); |