]> git.saurik.com Git - apple/xnu.git/blame_incremental - iokit/IOKit/pwr_mgt/IOPMlog.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / iokit / IOKit / pwr_mgt / IOPMlog.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 1998-2000 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 */
23enum PMLogEnum {
24 kPMLogSetParent = 1, // 1 0x05100004
25 kPMLogAddChild, // 2 0x05100008
26 kPMLogRemoveChild, // 3 0x0510000c
27 kPMLogControllingDriver, // 4 0x05100010
28 kPMLogControllingDriverErr1, // 5 0x05100014 - bad power state array version
29 kPMLogControllingDriverErr2, // 6 0x05100018 - too many power states
30 kPMLogControllingDriverErr3, // 7 0x0510001c - not a real IOPMDriver
31 kPMLogControllingDriverErr4, // 8 0x05100020 - power state change in progress
32 kPMLogInterestedDriver, // 9 0x05100024
33 kPMLogAcknowledgeErr1, // 10 0x05100028 - unknown entity called acknowledgePowerChange
34 kPMLogChildAcknowledge, // 11 0x0510002c
35 kPMLogDriverAcknowledge, // 12 0x05100030 - interested driver acknowledges
36 kPMLogAcknowledgeErr2, // 13 0x05100034 - object has already acked
37 kPMLogAcknowledgeErr3, // 14 0x05100038 - not expecting any acks
38 kPMLogAcknowledgeErr4, // 15 0x0510003c - not expecting acknowledgeSetPowerState
39 kPMLogDriverAcknowledgeSet, // 16 0x05100040 - controlling driver acknowledges
40 kPMLogWillChange, // 17 0x05100044
41 kPMLogDidChange, // 18 0x05100048
42 kPMLogRequestDomain, // 19 0x0510004c
43 kPMLogMakeUsable, // 20 0x05100050
44 kPMLogChangeStateTo, // 21 0x05100054
45 kPMLogChangeStateToPriv, // 22 0x05100058
46 kPMLogSetAggressiveness, // 23 0x0510005c
47 kPMLogCriticalTemp, // 24 0x05100060
48 kPMLogOverrideOn, // 25 0x05100064
49 kPMLogOverrideOff, // 26 0x05100068
50 kPMLogEnqueueErr, // 27 0x0510006c - change queue overflow
51 kPMLogCollapseQueue, // 28 0x05100070
52 kPMLogChangeDone, // 29 0x05100074
53 kPMLogCtrlDriverTardy, // 30 0x05100078 - controlling driver didn't acknowledge
54 kPMLogIntDriverTardy, // 31 0x0510007c - interested driver didn't acknowledge
55 kPMLogStartAckTimer, // 32 0x05100080
56 kPMLogStartParentChange, // 33 0x05100084
57 kPMLogAmendParentChange, // 34 0x05100088
58 kPMLogStartDeviceChange, // 35 0x0510008c
59 kPMLogRequestDenied, // 36 0x05100090 - parent denied domain state change request
60 kPMLogControllingDriverErr5, // 37 0x05100094 - zero power states or we already have a driver with more power states
61 kPMLogProgramHardware, // 38 0x05100098
62 kPMLogInformDriverPreChange, // 39 0x0510009c
63 kPMLogInformDriverPostChange, // 40 0x051000a0
64 kPMLogRemoveDriver, // 41 0x051000a4
65 kPMLogSetIdleTimerPeriod, // 42 0x051000a8
66 kPMLogSystemWake, // 43 0x051000ac
67 kPMLogAcknowledgeErr5, // 44 0x051000b0
68 kPMLogClientAcknowledge, // 45 0x051000b4
69 kPMLogClientTardy, // 46 0x051000b8 - application didn't acknowledge
70 kPMLogClientCancel, // 47 0x051000bc
71 kPMLogClientNotify, // 48 0x051000c0 - client sent a notification
72 kPMLogAppNotify, // 49 0x051000c4 - application sent a notification
73 kIOPMlogLastEvent
74};
75
76// Deprecated Power Management Logging Constants
77#define PMlogSetParent kPMLogSetParent
78#define PMlogAddChild kPMLogAddChild
79#define PMlogRemoveChild kPMLogRemoveChild
80#define PMlogControllingDriver kPMLogControllingDriver
81#define PMlogControllingDriverErr1 kPMLogControllingDriverErr1
82#define PMlogControllingDriverErr2 kPMLogControllingDriverErr2
83#define PMlogControllingDriverErr3 kPMLogControllingDriverErr3
84#define PMlogControllingDriverErr4 kPMLogControllingDriverErr4
85#define PMlogInterestedDriver kPMLogInterestedDriver
86#define PMlogAcknowledgeErr1 kPMLogAcknowledgeErr1
87#define PMlogChildAcknowledge kPMLogChildAcknowledge
88#define PMlogDriverAcknowledge kPMLogDriverAcknowledge
89#define PMlogAcknowledgeErr2 kPMLogAcknowledgeErr2
90#define PMlogAcknowledgeErr3 kPMLogAcknowledgeErr3
91#define PMlogAcknowledgeErr4 kPMLogAcknowledgeErr4
92#define PMlogDriverAcknowledgeSet kPMLogDriverAcknowledgeSet
93#define PMlogWillChange kPMLogWillChange
94#define PMlogDidChange kPMLogDidChange
95#define PMlogRequestDomain kPMLogRequestDomain
96#define PMlogMakeUsable kPMLogMakeUsable
97#define PMlogChangeStateTo kPMLogChangeStateTo
98#define PMlogChangeStateToPriv kPMLogChangeStateToPriv
99#define PMlogSetAggressiveness kPMLogSetAggressiveness
100#define PMlogCriticalTemp kPMLogCriticalTemp
101#define PMlogOverrideOn kPMLogOverrideOn
102#define PMlogOverrideOff kPMLogOverrideOff
103#define PMlogEnqueueErr kPMLogEnqueueErr
104#define PMlogCollapseQueue kPMLogCollapseQueue
105#define PMlogChangeDone kPMLogChangeDone
106#define PMlogCtrlDriverTardy kPMLogCtrlDriverTardy
107#define PMlogIntDriverTardy kPMLogIntDriverTardy
108#define PMlogStartAckTimer kPMLogStartAckTimer
109#define PMlogStartParentChange kPMLogStartParentChange
110#define PMlogAmendParentChange kPMLogAmendParentChange
111#define PMlogStartDeviceChange kPMLogStartDeviceChange
112#define PMlogRequestDenied kPMLogRequestDenied
113#define PMlogControllingDriverErr5 kPMLogControllingDriverErr5
114#define PMlogProgramHardware kPMLogProgramHardware
115#define PMlogInformDriverPreChange kPMLogInformDriverPreChange
116#define PMlogInformDriverPostChange kPMLogInformDriverPostChange
117#define PMlogRemoveDriver kPMLogRemoveDriver
118#define PMsetIdleTimerPeriod kPMLogSetIdleTimerPeriod
119#define PMlogSystemWake kPMLogSystemWake
120#define PMlogAcknowledgeErr5 kPMLogAcknowledgeErr5
121#define PMlogClientAcknowledge kPMLogClientAcknowledge
122#define PMlogClientTardy kPMLogClientTardy
123#define PMlogClientCancel kPMLogClientCancel
124