ar5212_attach.c (220324) | ar5212_attach.c (222265) |
---|---|
1/* 2 * Copyright (c) 2002-2009 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 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 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 * | 1/* 2 * Copyright (c) 2002-2009 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 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 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 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c 220324 2011-04-04 14:52:31Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c 222265 2011-05-24 18:25:40Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5212/ar5212.h" --- 172 unchanged lines hidden (view full) --- 198 }; 199 if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_GRIFFIN) { 200 struct ar5212AniParams tmp; 201 OS_MEMCPY(&tmp, &aniparams, sizeof(struct ar5212AniParams)); 202 tmp.maxSpurImmunityLevel = 7; /* Venice and earlier */ 203 ar5212AniAttach(ah, &tmp, &tmp, AH_TRUE); 204 } else 205 ar5212AniAttach(ah, &aniparams, &aniparams, AH_TRUE); | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5212/ar5212.h" --- 172 unchanged lines hidden (view full) --- 198 }; 199 if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_GRIFFIN) { 200 struct ar5212AniParams tmp; 201 OS_MEMCPY(&tmp, &aniparams, sizeof(struct ar5212AniParams)); 202 tmp.maxSpurImmunityLevel = 7; /* Venice and earlier */ 203 ar5212AniAttach(ah, &tmp, &tmp, AH_TRUE); 204 } else 205 ar5212AniAttach(ah, &aniparams, &aniparams, AH_TRUE); |
206 207 /* Set overridable ANI methods */ 208 AH5212(ah)->ah_aniControl = ar5212AniControl; |
|
206} 207 208/* 209 * Attach for an AR5212 part. 210 */ 211void 212ar5212InitState(struct ath_hal_5212 *ahp, uint16_t devid, HAL_SOFTC sc, 213 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status) --- 684 unchanged lines hidden --- | 209} 210 211/* 212 * Attach for an AR5212 part. 213 */ 214void 215ar5212InitState(struct ath_hal_5212 *ahp, uint16_t devid, HAL_SOFTC sc, 216 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status) --- 684 unchanged lines hidden --- |