1/* 2 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23/* 24 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 25 * 26 * HISTORY 27 * 28 * 29-Aug-02 ebold created 29 * 30 */ 31 32#ifndef _PMSettings_h_ 33#define _PMSettings_h_ 34 35#include "PrivateLib.h" 36 37/* Power Management profile bits */ 38enum { 39 kPMForceLowSpeedProfile = (1<<0), 40 kPMForceHighSpeed = (1<<1), 41 kPMPreventIdleSleep = (1<<2), 42 kPMPreventDisplaySleep = (1<<3), 43 kPMPreventDiskSleep = (1<<4) 44}; 45 46__private_extern__ void PMSettings_prime(void); 47 48__private_extern__ void PMSettingsSleepWakeNotification(natural_t); 49 50__private_extern__ void PMSettingsSupportedPrefsListHasChanged(void); 51 52__private_extern__ void PMSettingsPrefsHaveChanged(void); 53 54__private_extern__ void PMSettingsPSChange(CFTypeRef); 55 56__private_extern__ bool GetPMSettingBool(CFStringRef); 57 58__private_extern__ IOReturn GetPMSettingNumber(CFStringRef which, int64_t *value); 59 60// For UPS shutdown/restart code in PSLowPower.c 61__private_extern__ CFDictionaryRef PMSettings_CopyActivePMSettings(void); 62 63__private_extern__ IOReturn _activateForcedSettings(CFDictionaryRef); 64 65// For IOPMAssertions code in PMAssertions.c 66__private_extern__ void overrideSetting(int, int); 67__private_extern__ void activateSettingOverrides(void); 68 69__private_extern__ IOReturn getDisplaySleepTimer(uint32_t *displaySleepTimer); 70__private_extern__ IOReturn getIdleSleepTimer(uint32_t *idleSleepTimer); 71 72__private_extern__ bool _DWBT_allowed(void); 73__private_extern__ bool _DWBT_enabled(void); 74 75__private_extern__ bool _SS_allowed(void); 76 77#endif //_PMSettings_h_ 78