ar5416_power.c (221800) | ar5416_power.c (234269) |
---|---|
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_power.c 221800 2011-05-12 03:15:21Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_power.c 234269 2012-04-14 04:40:11Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23 24#include "ar5416/ar5416.h" 25#include "ar5416/ar5416reg.h" --- 19 unchanged lines hidden (view full) --- 45 * Do a Power-On-Reset if OWL is shutdown 46 * the NetBSD driver power-cycles the Cardbus slot 47 * as part of the reset procedure. 48 */ 49 if ((OS_REG_READ(ah, AR_RTC_STATUS) 50 & AR_RTC_PM_STATUS_M) == AR_RTC_STATUS_SHUTDOWN) { 51 if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON)) 52 goto bad; | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23 24#include "ar5416/ar5416.h" 25#include "ar5416/ar5416reg.h" --- 19 unchanged lines hidden (view full) --- 45 * Do a Power-On-Reset if OWL is shutdown 46 * the NetBSD driver power-cycles the Cardbus slot 47 * as part of the reset procedure. 48 */ 49 if ((OS_REG_READ(ah, AR_RTC_STATUS) 50 & AR_RTC_PM_STATUS_M) == AR_RTC_STATUS_SHUTDOWN) { 51 if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON)) 52 goto bad; |
53 AH5416(ah)->ah_initPLL(ah, AH_NULL); |
|
53 } 54 55 if (AR_SREV_HOWL(ah)) 56 OS_REG_SET_BIT(ah, AR_RTC_RESET, AR_RTC_RESET_EN); 57 58 OS_REG_SET_BIT(ah, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN); 59 if (AR_SREV_HOWL(ah)) 60 OS_DELAY(10000); --- 121 unchanged lines hidden --- | 54 } 55 56 if (AR_SREV_HOWL(ah)) 57 OS_REG_SET_BIT(ah, AR_RTC_RESET, AR_RTC_RESET_EN); 58 59 OS_REG_SET_BIT(ah, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN); 60 if (AR_SREV_HOWL(ah)) 61 OS_DELAY(10000); --- 121 unchanged lines hidden --- |