|
|
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: @protocol MiscService
26:
27: - (PMUStatus)sendMiscCommand :(UInt32)Command
28: :(UInt32)SLength
29: :(UInt8 *)SBuffer
30: :(UInt8 *)RBuffer
31: :(UInt32)RefNum
32: :(id)Id
33: :(pmCallback_func)Callback;
34:
35: @end
36:
37:
38: enum {
39: kPMUpowerCntl = 0x10, // power plane/clock control
40: kPMUpower1Cntl = 0x11, // more power control (DBLite)
41: kPMUpowerRead = 0x18, // power plane/clock status
42: kPMUpower1Read = 0x19, // more power status (DBLite)
43:
44: kPMUpMgrADB = 0x20, // send ADB command
45: kPMUpMgrADBoff = 0x21, // turn ADB auto-poll off
46: kPMUreadADB = 0x28, // Apple Desktop Bus
47: kPMUpMgrADBInt = 0x2F, // get ADB interrupt data (Portable only)
48:
49: kPMUtimeWrite = 0x30, // write the time to the clock chip
50: kPMUpramWrite = 0x31, // write the original 20 bytes of PRAM (Portable only)
51: kPMUxPramWrite = 0x32, // write extended PRAM byte(s)
52: kPMUNVRAMWrite = 0x33, // write NVRAM byte
53: kPMUtimeRead = 0x38, // read the time from the clock chip
54: kPMUpramRead = 0x39, // read the original 20 bytes of PRAM (Portable only)
55: kPMUxPramRead = 0x3A, // read extended PRAM byte(s)
56: kPMUNVRAMRead = 0x3B, // read NVRAM byte
57: kPMUSetContrast = 0x40, // set screen contrast
58: kPMUReadContrast = 0x48, // read the contrast value
59: kPMUReadBrightness = 0x49, // read the brightness value
60: kPMUDoPCMCIAEject = 0x4C, // eject PCMCIA card(s)
61: kPMUDoMediaBayDisp = 0x4D, // (MS 5/17/96) Get Media bay device status
62: kPMUDisplayDisp = 0x4F, // Get raw Contrast numbers
63: kPMUmodemSet = 0x50, // internal modem control
64: kPMUmodemClrFIFO = 0x51, // clear modem fifo's
65: kPMUmodemSetFIFOIntMask = 0x52, // set the mask for fifo interrupts
66: kPMUmodemWriteData = 0x54, // write data to modem
67: kPMUmodemSetDataMode = 0x55, //
68: kPMUmodemSetFloCtlMode = 0x56, //
69: kPMUmodemDAACnt = 0x57, //
70: kPMUmodemRead = 0x58, // internal modem status
71: kPMUmodemDAAID = 0x59, //
72: kPMUmodemGetFIFOCnt = 0x5A, //
73: kPMUmodemSetMaxFIFOSize = 0x5B, //
74: kPMUmodemReadFIFOData = 0x5C, //
75: kPMUmodemExtend = 0x5D, //
76:
77: kPMUsetBattWarning = 0x60, // set low power warning and cutoff battery levels (PowerBook 140/170, DBLite)
78: kPMUsetCutoff = 0x61, // set hardware cutoff voltage<H44>
79: kPMUnewSetBattWarn = 0x62, // set low power warning and 10 second battery levels (Epic/Mustang)
80: kPMUnewGetBattWarn = 0x63, // get low power warning and 10 second battery levels (Epic/Mustang)
81: kPMUbatteryRead = 0x68, // read battery/charger level and status
82: kPMUbatteryNow = 0x69, // read battery/charger instantaneous level and status
83: kPMUreadBattWarning = 0x6A, // read low power warning and cutoff battery levels (PowerBook 140/170, DBLite)
84: kPMUreadExtBatt = 0x6B, // read extended battery/charger level and status (DBLite)
85: kPMUreadBatteryID = 0x6C, // read the battery ID
86: kPMUreadBatteryInfo = 0x6D, // return battery parameters
87: kPMUGetSOB = 0x6F, // Get Smarts of Battery
88:
89: kPMUSetModem1SecInt = 0x70, //
90: kPMUSetModemInts = 0x71, // turn modem interrupts on/off
91: kPMUreadINT = 0x78, // get PMGR interrupt data
92: kPMUReadModemInts = 0x79, // read modem interrupt status
93: kPMUPmgrPWRoff = 0x7E, // turn system power off
94: kPMUsleepReq = 0x7F, // put the system to sleep (sleepSig='MATT')
95: kPMUsleepAck = 0x70, // sleep acknowledge
96:
97: kPMUtimerSet = 0x80, // set the wakeup timer
98: kPMUtimerRead = 0x88, // read the wakeup timer setting
99:
100: kPMUsoundSet = 0x90, // sound power control
101: kPMUSetDFAC = 0x91, // set DFAC register (DBLite)
102: kPMUsoundRead = 0x98, // read sound power state
103: kPMUReadDFAC = 0x99, // read DFAC register (DBLite)
104:
105: kPMUmodemWriteReg = 0xA0, // Write Modem Register
106: kPMUmodemClrRegBits = 0xA1, // Clear Modem Register Bits
107: kPMUmodemSetRegBits = 0xA2, // Set Modem Register Bits
108: kPMUmodemWriteDSPRam = 0xA3, // Write DSP RAM
109: kPMUmodemSetFilterCoeff = 0xA4, // Set Filter Coefficients
110: kPMUmodemReset = 0xA5, // Reset Modem
111: kPMUmodemUNKNOWN = 0xA6, // <filler for now>
112: kPMUmodemReadReg = 0xA8, // Read Modem Register
113: kPMUmodemReadDSPRam = 0xAB, // Read DSP RAM
114:
115: kPMUresetCPU = 0xD0, // reset the CPU
116: kPMUreadAtoD = 0xD8, // read A/D channel
117: kPMUreadButton = 0xD9, // read button values on Channel 0 = Brightness, Channel 1 = Contrast 0-31
118: kPMUreadExtSwitches = 0xDC, // read external switch status (DBLite)
119:
120: kPMUwritePmgrRAM = 0xE0, // write to internal PMGR RAM
121: kPMUdownloadFlash = 0xE1, // download Flash memory
122: kPMUsetMachineAttr = 0xE3, // set machine id
123: kPMUreadPmgrRAM = 0xE8, // read from internal PMGR RAM
124: kPMUreadPmgrVers = 0xEA, // read the PMGR version number
125: kPMUreadMachineAttr = 0xEB, // read the machine id
126: kPMUPmgrSelfTest = 0xEC, // run the PMGR selftest
127: kPMUDBPMgrTest = 0xED, // DON'T USE THIS!!
128: kPMUFactoryTest = 0xEE, // hook for factory requests
129: kPMUPmgrSoftReset = 0xEF // soft reset of the PMGR
130: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.