]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/pwr_mgt/IOPMlog.h
xnu-792.18.15.tar.gz
[apple/xnu.git] / iokit / IOKit / pwr_mgt / IOPMlog.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
8f6c56a5 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
1c79356b 5 *
8f6c56a5
A
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. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
8ad349bb 24 * limitations under the License.
8f6c56a5
A
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
1c79356b 27 */
91447636
A
28enum PMLogEnum {
29 kPMLogSetParent = 1, // 1 0x05100004
30 kPMLogAddChild, // 2 0x05100008
31 kPMLogRemoveChild, // 3 0x0510000c
32 kPMLogControllingDriver, // 4 0x05100010
33 kPMLogControllingDriverErr1, // 5 0x05100014 - bad power state array version
34 kPMLogControllingDriverErr2, // 6 0x05100018 - too many power states
35 kPMLogControllingDriverErr3, // 7 0x0510001c - not a real IOPMDriver
36 kPMLogControllingDriverErr4, // 8 0x05100020 - power state change in progress
37 kPMLogInterestedDriver, // 9 0x05100024
38 kPMLogAcknowledgeErr1, // 10 0x05100028 - unknown entity called acknowledgePowerChange
39 kPMLogChildAcknowledge, // 11 0x0510002c
40 kPMLogDriverAcknowledge, // 12 0x05100030 - interested driver acknowledges
41 kPMLogAcknowledgeErr2, // 13 0x05100034 - object has already acked
42 kPMLogAcknowledgeErr3, // 14 0x05100038 - not expecting any acks
43 kPMLogAcknowledgeErr4, // 15 0x0510003c - not expecting acknowledgeSetPowerState
44 kPMLogDriverAcknowledgeSet, // 16 0x05100040 - controlling driver acknowledges
45 kPMLogWillChange, // 17 0x05100044
46 kPMLogDidChange, // 18 0x05100048
47 kPMLogRequestDomain, // 19 0x0510004c
48 kPMLogMakeUsable, // 20 0x05100050
49 kPMLogChangeStateTo, // 21 0x05100054
50 kPMLogChangeStateToPriv, // 22 0x05100058
51 kPMLogSetAggressiveness, // 23 0x0510005c
52 kPMLogCriticalTemp, // 24 0x05100060
53 kPMLogOverrideOn, // 25 0x05100064
54 kPMLogOverrideOff, // 26 0x05100068
55 kPMLogEnqueueErr, // 27 0x0510006c - change queue overflow
56 kPMLogCollapseQueue, // 28 0x05100070
57 kPMLogChangeDone, // 29 0x05100074
58 kPMLogCtrlDriverTardy, // 30 0x05100078 - controlling driver didn't acknowledge
59 kPMLogIntDriverTardy, // 31 0x0510007c - interested driver didn't acknowledge
60 kPMLogStartAckTimer, // 32 0x05100080
61 kPMLogStartParentChange, // 33 0x05100084
62 kPMLogAmendParentChange, // 34 0x05100088
63 kPMLogStartDeviceChange, // 35 0x0510008c
64 kPMLogRequestDenied, // 36 0x05100090 - parent denied domain state change request
65 kPMLogControllingDriverErr5, // 37 0x05100094 - zero power states or we already have a driver with more power states
66 kPMLogProgramHardware, // 38 0x05100098
67 kPMLogInformDriverPreChange, // 39 0x0510009c
68 kPMLogInformDriverPostChange, // 40 0x051000a0
69 kPMLogRemoveDriver, // 41 0x051000a4
70 kPMLogSetIdleTimerPeriod, // 42 0x051000a8
71 kPMLogSystemWake, // 43 0x051000ac
72 kPMLogAcknowledgeErr5, // 44 0x051000b0
73 kPMLogClientAcknowledge, // 45 0x051000b4
74 kPMLogClientTardy, // 46 0x051000b8 - application didn't acknowledge
75 kPMLogClientCancel, // 47 0x051000bc
76 kPMLogClientNotify, // 48 0x051000c0 - client sent a notification
77 kPMLogAppNotify, // 49 0x051000c4 - application sent a notification
78 kIOPMlogLastEvent
79};
80
81// Deprecated Power Management Logging Constants
82#define PMlogSetParent kPMLogSetParent
83#define PMlogAddChild kPMLogAddChild
84#define PMlogRemoveChild kPMLogRemoveChild
85#define PMlogControllingDriver kPMLogControllingDriver
86#define PMlogControllingDriverErr1 kPMLogControllingDriverErr1
87#define PMlogControllingDriverErr2 kPMLogControllingDriverErr2
88#define PMlogControllingDriverErr3 kPMLogControllingDriverErr3
89#define PMlogControllingDriverErr4 kPMLogControllingDriverErr4
90#define PMlogInterestedDriver kPMLogInterestedDriver
91#define PMlogAcknowledgeErr1 kPMLogAcknowledgeErr1
92#define PMlogChildAcknowledge kPMLogChildAcknowledge
93#define PMlogDriverAcknowledge kPMLogDriverAcknowledge
94#define PMlogAcknowledgeErr2 kPMLogAcknowledgeErr2
95#define PMlogAcknowledgeErr3 kPMLogAcknowledgeErr3
96#define PMlogAcknowledgeErr4 kPMLogAcknowledgeErr4
97#define PMlogDriverAcknowledgeSet kPMLogDriverAcknowledgeSet
98#define PMlogWillChange kPMLogWillChange
99#define PMlogDidChange kPMLogDidChange
100#define PMlogRequestDomain kPMLogRequestDomain
101#define PMlogMakeUsable kPMLogMakeUsable
102#define PMlogChangeStateTo kPMLogChangeStateTo
103#define PMlogChangeStateToPriv kPMLogChangeStateToPriv
104#define PMlogSetAggressiveness kPMLogSetAggressiveness
105#define PMlogCriticalTemp kPMLogCriticalTemp
106#define PMlogOverrideOn kPMLogOverrideOn
107#define PMlogOverrideOff kPMLogOverrideOff
108#define PMlogEnqueueErr kPMLogEnqueueErr
109#define PMlogCollapseQueue kPMLogCollapseQueue
110#define PMlogChangeDone kPMLogChangeDone
111#define PMlogCtrlDriverTardy kPMLogCtrlDriverTardy
112#define PMlogIntDriverTardy kPMLogIntDriverTardy
113#define PMlogStartAckTimer kPMLogStartAckTimer
114#define PMlogStartParentChange kPMLogStartParentChange
115#define PMlogAmendParentChange kPMLogAmendParentChange
116#define PMlogStartDeviceChange kPMLogStartDeviceChange
117#define PMlogRequestDenied kPMLogRequestDenied
118#define PMlogControllingDriverErr5 kPMLogControllingDriverErr5
119#define PMlogProgramHardware kPMLogProgramHardware
120#define PMlogInformDriverPreChange kPMLogInformDriverPreChange
121#define PMlogInformDriverPostChange kPMLogInformDriverPostChange
122#define PMlogRemoveDriver kPMLogRemoveDriver
123#define PMsetIdleTimerPeriod kPMLogSetIdleTimerPeriod
124#define PMlogSystemWake kPMLogSystemWake
125#define PMlogAcknowledgeErr5 kPMLogAcknowledgeErr5
126#define PMlogClientAcknowledge kPMLogClientAcknowledge
127#define PMlogClientTardy kPMLogClientTardy
128#define PMlogClientCancel kPMLogClientCancel
129