Deleted Added
full compact
ar2317.c (185380) ar2317.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: ar2317.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: ar2317.c,v 1.8 2008/11/15 22:15:46 sam Exp $
18 */
19#include "opt_ah.h"
20
21#ifdef AH_SUPPORT_2317
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"

--- 670 unchanged lines hidden (view full) ---

701 ath_hal_free(ahp->ah_rfHal);
702 ahp->ah_rfHal = AH_NULL;
703}
704
705/*
706 * Allocate memory for analog bank scratch buffers
707 * Scratch Buffer will be reinitialized every reset so no need to zero now
708 */
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"

--- 670 unchanged lines hidden (view full) ---

699 ath_hal_free(ahp->ah_rfHal);
700 ahp->ah_rfHal = AH_NULL;
701}
702
703/*
704 * Allocate memory for analog bank scratch buffers
705 * Scratch Buffer will be reinitialized every reset so no need to zero now
706 */
709HAL_BOOL
707static HAL_BOOL
710ar2317RfAttach(struct ath_hal *ah, HAL_STATUS *status)
711{
712 struct ath_hal_5212 *ahp = AH5212(ah);
713 struct ar2317State *priv;
714
715 HALASSERT(ah->ah_magic == AR5212_MAGIC);
716
717 HALASSERT(ahp->ah_rfHal == AH_NULL);

--- 14 unchanged lines hidden (view full) ---

732 priv->base.getNfAdjust = ar5212GetNfAdjust;
733
734 ahp->ah_pcdacTable = priv->pcdacTable;
735 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable);
736 ahp->ah_rfHal = &priv->base;
737
738 return AH_TRUE;
739}
708ar2317RfAttach(struct ath_hal *ah, HAL_STATUS *status)
709{
710 struct ath_hal_5212 *ahp = AH5212(ah);
711 struct ar2317State *priv;
712
713 HALASSERT(ah->ah_magic == AR5212_MAGIC);
714
715 HALASSERT(ahp->ah_rfHal == AH_NULL);

--- 14 unchanged lines hidden (view full) ---

730 priv->base.getNfAdjust = ar5212GetNfAdjust;
731
732 ahp->ah_pcdacTable = priv->pcdacTable;
733 ahp->ah_pcdacTableSize = sizeof(priv->pcdacTable);
734 ahp->ah_rfHal = &priv->base;
735
736 return AH_TRUE;
737}
740#endif /* AH_SUPPORT_2317 */
738
739static HAL_BOOL
740ar2317Probe(struct ath_hal *ah)
741{
742 return IS_2317(ah);
743}
744AH_RF(ar2317, ar2317Probe, ar2317RfAttach);