Annotation of XNU/iokit/Drivers/platform/drvApplePMU/pmumisc.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * The contents of this file constitute Original Code as defined in and
        !             7:  * are subject to the Apple Public Source License Version 1.1 (the
        !             8:  * "License").  You may not use this file except in compliance with the
        !             9:  * License.  Please obtain a copy of the License at
        !            10:  * http://www.apple.com/publicsource and read it before using this file.
        !            11:  * 
        !            12:  * This Original Code and all software distributed under the License are
        !            13:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            14:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            15:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            16:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            17:  * License for the specific language governing rights and limitations
        !            18:  * under the License.
        !            19:  * 
        !            20:  * @APPLE_LICENSE_HEADER_END@
        !            21:  */
        !            22: #ifndef __cplusplus
        !            23: 
        !            24: @protocol MiscService
        !            25: 
        !            26: - (IOReturn)sendMiscCommand:   (UInt32)Command
        !            27:                send_length:    (IOByteCount *)SLength
        !            28:                send_contents:  (UInt8 *)SBuffer
        !            29:                 rcv_length:    (IOByteCount *)RLength
        !            30:                rcv_contents:   (UInt8 *)RBuffer;
        !            31: 
        !            32: @end
        !            33: 
        !            34: #endif
        !            35: 
        !            36: enum {
        !            37:     kPMUpowerCntl      = 0x10,         // power plane/clock control
        !            38:     kPMUpower1Cntl     = 0x11,         // more power control (DBLite)
        !            39:     kPMUpowerRead      = 0x18,         // power plane/clock status
        !            40:     kPMUpower1Read     = 0x19,         // more power status (DBLite)
        !            41: 
        !            42:     kPMUpMgrADB        = 0x20,                 // send ADB command
        !            43:     kPMUpMgrADBoff     = 0x21,                 // turn ADB auto-poll off
        !            44:     kPMUreadADB                = 0x28,                 // Apple Desktop Bus
        !            45:     kPMUpMgrADBInt     = 0x2F,                 // get ADB interrupt data (Portable only)
        !            46: 
        !            47:     kPMUtimeWrite      = 0x30,                 // write the time to the clock chip
        !            48:     kPMUpramWrite      = 0x31,                 // write the original 20 bytes of PRAM (Portable only)
        !            49:     kPMUxPramWrite      = 0x32,                // write extended PRAM byte(s)
        !            50:     kPMUNVRAMWrite     = 0x33,         // write NVRAM byte
        !            51:     kPMUtimeRead               = 0x38,                 // read the time from the clock chip
        !            52:     kPMUpramRead               = 0x39,                 // read the original 20 bytes of PRAM (Portable only)
        !            53:     kPMUxPramRead      = 0x3A,                 // read extended PRAM byte(s)
        !            54:     kPMUNVRAMRead      = 0x3B,                 // read NVRAM byte
        !            55:     kPMUSetContrast    = 0x40,         // set screen contrast
        !            56:     kPMUSetBrightness  = 0x41,         // set screen brightness
        !            57:     kPMUReadContrast   = 0x48,         // read the contrast value
        !            58:     kPMUReadBrightness = 0x49,         // read the brightness value
        !            59:     kPMUDoPCMCIAEject  = 0x4C,         // eject PCMCIA card(s)
        !            60:     kPMUDoMediaBayDisp = 0x4D,         // (MS 5/17/96) Get Media bay device status
        !            61:     kPMUDisplayDisp    = 0x4F,         // Get raw Contrast numbers
        !            62:     kPMUmodemSet       = 0x50,         // internal modem control
        !            63:     kPMUmodemClrFIFO   = 0x51,         // clear modem fifo's
        !            64:     kPMUmodemSetFIFOIntMask    = 0x52, // set the mask for fifo interrupts
        !            65:     kPMUmodemWriteData         = 0x54, // write data to modem
        !            66:     kPMUmodemSetDataMode       = 0x55, //
        !            67:     kPMUmodemSetFloCtlMode     = 0x56, //
        !            68:     kPMUmodemDAACnt            = 0x57, //
        !            69:     kPMUmodemRead              = 0x58, // internal modem status
        !            70:     kPMUmodemDAAID             = 0x59, //
        !            71:     kPMUmodemGetFIFOCnt        = 0x5A, //
        !            72:     kPMUmodemSetMaxFIFOSize    = 0x5B, //
        !            73:     kPMUmodemReadFIFOData       = 0x5C,        //
        !            74:     kPMUmodemExtend            = 0x5D, //
        !            75: 
        !            76:     kPMUsetBattWarning = 0x60,         // set low power warning and cutoff battery levels (PB 140/170, DBLite)
        !            77:     kPMUsetCutoff              = 0x61,         // set hardware cutoff voltage<H44>
        !            78:     kPMUnewSetBattWarn = 0x62,         // set low power warning and 10 second battery levels (Epic/Mustang)
        !            79:     kPMUnewGetBattWarn = 0x63,         // get low power warning and 10 second battery levels (Epic/Mustang)
        !            80:     kPMUbatteryRead    = 0x68,         // read battery/charger level and status
        !            81:     kPMUbatteryNow     = 0x69,         // read battery/charger instantaneous level and status
        !            82:     kPMUreadBattWarning        = 0x6A,         // read low power warning and cutoff battery levels (PB 140/170, DBLite)
        !            83:     kPMUreadExtBatt    = 0x6B,         // read extended battery/charger level and status (DBLite)
        !            84:     kPMUreadBatteryID  = 0x6C,         // read the battery ID
        !            85:     kPMUreadBatteryInfo        = 0x6D,         // return battery parameters
        !            86:     kPMUGetSOB         = 0x6F,         // Get Smarts of Battery
        !            87: 
        !            88:     kPMUSetModem1SecInt        = 0x70,         //
        !            89:     kPMUSetModemInts   = 0x71,         // turn modem interrupts on/off
        !            90:     kPMUreadINT                = 0x78,         // get PMGR interrupt data
        !            91:     kPMUReadModemInts  = 0x79,         // read modem interrupt status
        !            92:     kPMUPmgrPWRoff     = 0x7E,         // turn system power off
        !            93:     kPMUsleepReq               = 0x7F,         // put the system to sleep (sleepSig='MATT')
        !            94:     kPMUsleepAck               = 0x70,         // sleep acknowledge
        !            95: 
        !            96:     kPMUtimerSet               = 0x80,         // set the wakeup timer
        !            97:     kPMUtimerRead      = 0x88,         // read the wakeup timer setting
        !            98: 
        !            99:     kPMUsoundSet               = 0x90,         // sound power control
        !           100:     kPMUSetDFAC                = 0x91,         // set DFAC register (DBLite)
        !           101:     kPMUsoundRead      = 0x98,         // read sound power state
        !           102:     kPMUReadDFAC       = 0x99,         // read DFAC register (DBLite)
        !           103: 
        !           104:     kPMUmodemWriteReg          = 0xA0, // Write Modem Register
        !           105:     kPMUmodemClrRegBits                = 0xA1, // Clear Modem Register Bits
        !           106:     kPMUmodemSetRegBits                = 0xA2, // Set Modem Register Bits
        !           107:     kPMUmodemWriteDSPRam       = 0xA3, // Write DSP RAM
        !           108:     kPMUmodemSetFilterCoeff    = 0xA4, // Set Filter Coefficients
        !           109:     kPMUmodemReset             = 0xA5, // Reset Modem
        !           110:     kPMUmodemUNKNOWN   = 0xA6, // <filler for now>
        !           111:     kPMUmodemReadReg           = 0xA8, // Read Modem Register
        !           112:     kPMUmodemReadDSPRam        = 0xAB, // Read DSP RAM
        !           113: 
        !           114:     kPMUresetCPU               = 0xD0,         // reset the CPU
        !           115:     kPMUreadAtoD               = 0xD8,         // read A/D channel
        !           116:     kPMUreadButton     = 0xD9,         // read button values on Channel 0 = Brightness, Channel 1 = Contrast 0-31
        !           117:     kPMUreadExtSwitches        = 0xDC,         // read external switch status (DBLite)
        !           118: 
        !           119:     kPMUwritePmgrRAM   = 0xE0,         // write to internal PMGR RAM
        !           120:     kPMUdownloadFlash  = 0xE1,         // download Flash memory
        !           121:     kPMUsetMachineAttr = 0xE3,         // set machine id
        !           122:     kPMUreadPmgrRAM    = 0xE8,         // read from internal PMGR RAM
        !           123:     kPMUreadPmgrVers   = 0xEA,         // read the PMGR version number
        !           124:     kPMUreadMachineAttr        = 0xEB,         // read the machine id
        !           125:     kPMUPmgrSelfTest   = 0xEC,         // run the PMGR selftest
        !           126:     kPMUDBPMgrTest     = 0xED,         // DON'T USE THIS!!
        !           127:     kPMUFactoryTest    = 0xEE,         // hook for factory requests
        !           128:     kPMUPmgrSoftReset  = 0xEF          // soft reset of the PMGR
        !           129: };

unix.superglobalmegacorp.com

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