Annotation of kernel/machdep/ppc/APM.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: /*
        !            26:  * Copyright 1994 NeXT Computer, Inc.
        !            27:  * All rights reserved.
        !            28:  */
        !            29: 
        !            30: /*
        !            31:  * Power Management (PM) kernel interface.
        !            32:  */
        !            33: 
        !            34: #import <kern/power.h>
        !            35: 
        !            36: /*
        !            37:  * Initialize PM support.  Returns TRUE if PM is available.
        !            38:  */
        !            39: PMReturn PMConnect(void)
        !            40: {
        !            41:     return PM_R_SUCCESS;
        !            42: }
        !            43: 
        !            44: /*
        !            45:  * Return PM control to previous user (probably the BIOS).
        !            46:  */
        !            47: PMReturn PMDisconnect(void)
        !            48: {
        !            49:     return PM_R_SUCCESS;
        !            50: }
        !            51: 
        !            52: /*
        !            53:  * Inform PM of the CPU state.  If the CPU is idle, PM may
        !            54:  * put the CPU in a power-saving state until the next system event
        !            55:  * (typically an interrupt).  Marking the CPU busy will ensure
        !            56:  * that the CPU is running at full speed.
        !            57:  */
        !            58: PMReturn PMSetCpuState(PMCpuState state)
        !            59: {
        !            60:     return PM_R_SUCCESS;
        !            61: }
        !            62: 
        !            63: /*
        !            64:  * Set the power state of a device or the entire computer.
        !            65:  */
        !            66: PMReturn PMSetPowerState(PMDeviceID device, PMPowerState state)
        !            67: {
        !            68:     return PM_R_BAD_STATE;
        !            69: }
        !            70: 
        !            71: /*
        !            72:  * Get a power event from PM, if one has occurred.
        !            73:  */
        !            74: PMReturn PMGetPowerEvent(PMPowerEvent *event)
        !            75: {
        !            76:     return PM_R_NO_EVENT;
        !            77: }
        !            78: 
        !            79: /*
        !            80:  * Get the power state of the computer.
        !            81:  */
        !            82: PMReturn PMGetPowerStatus(PMPowerStatus *status)
        !            83: {
        !            84:     status->lineStatus = PM_LINE_UNKNOWN;
        !            85:     status->batteryStatus = PM_BATT_UNKNOWN;
        !            86:     status->batteryLife = 0;
        !            87:     return PM_R_SUCCESS;
        !            88: }
        !            89: 
        !            90: /*
        !            91:  * Enable or disable power management by the computer.
        !            92:  * If enable == PM_ENABLED, the computer can take power saving steps
        !            93:  * when the CPU state is idle.  If enable == PM_DISABLED, no automatic
        !            94:  * power saving steps will be taken and power management functions
        !            95:  * will be disabled.
        !            96:  */
        !            97: PMReturn PMSetPowerManagement(
        !            98:     PMDeviceID device,
        !            99:     PMPowerManagementState state
        !           100: )
        !           101: {
        !           102:     return PM_R_SUCCESS;
        !           103: }
        !           104: 
        !           105: /*
        !           106:  * Restores the default settings for all power management settings.
        !           107:  */
        !           108: PMReturn PMRestoreDefaults(void)
        !           109: {
        !           110:     return PM_R_SUCCESS;
        !           111: }
        !           112: 
        !           113: /*
        !           114:  * Update current kernel clock from real-time clock.
        !           115:  */
        !           116: void PMUpdateClock(void)
        !           117: {
        !           118: }
        !           119: 
        !           120: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.