ar5416_attach.c (225444) | ar5416_attach.c (225883) |
---|---|
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 * 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-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 * 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/ar5416/ar5416_attach.c 225444 2011-09-08 01:23:05Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c 225883 2011-09-30 05:17:57Z 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 "ah_eeprom_v14.h" --- 215 unchanged lines hidden (view full) --- 241{ 242 struct ath_hal_5416 *ahp5416; 243 struct ath_hal_5212 *ahp; 244 struct ath_hal *ah; 245 uint32_t val; 246 HAL_STATUS ecode; 247 HAL_BOOL rfStatus; 248 | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ah_eeprom_v14.h" --- 215 unchanged lines hidden (view full) --- 241{ 242 struct ath_hal_5416 *ahp5416; 243 struct ath_hal_5212 *ahp; 244 struct ath_hal *ah; 245 uint32_t val; 246 HAL_STATUS ecode; 247 HAL_BOOL rfStatus; 248 |
249 HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", | 249 HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", |
250 __func__, sc, (void*) st, (void*) sh); 251 252 /* NB: memory is returned zero'd */ 253 ahp5416 = ath_hal_malloc(sizeof (struct ath_hal_5416) + 254 /* extra space for Owl 2.1/2.2 WAR */ 255 sizeof(ar5416Addac) 256 ); 257 if (ahp5416 == AH_NULL) { | 250 __func__, sc, (void*) st, (void*) sh); 251 252 /* NB: memory is returned zero'd */ 253 ahp5416 = ath_hal_malloc(sizeof (struct ath_hal_5416) + 254 /* extra space for Owl 2.1/2.2 WAR */ 255 sizeof(ar5416Addac) 256 ); 257 if (ahp5416 == AH_NULL) { |
258 HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, | 258 HALDEBUG(AH_NULL, HAL_DEBUG_ANY, |
259 "%s: cannot allocate memory for state block\n", __func__); 260 *status = HAL_ENOMEM; 261 return AH_NULL; 262 } 263 ar5416InitState(ahp5416, devid, sc, st, sh, status); 264 ahp = &ahp5416->ah_5212; 265 ah = &ahp->ah_priv.h; 266 --- 650 unchanged lines hidden --- | 259 "%s: cannot allocate memory for state block\n", __func__); 260 *status = HAL_ENOMEM; 261 return AH_NULL; 262 } 263 ar5416InitState(ahp5416, devid, sc, st, sh, status); 264 ahp = &ahp5416->ah_5212; 265 ah = &ahp->ah_priv.h; 266 --- 650 unchanged lines hidden --- |