]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/pwr_mgt/IOPMlog.h
xnu-1228.3.13.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 *
2d21ac55 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
1c79356b 5 *
2d21ac55
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.
8f6c56a5 14 *
2d21ac55
A
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
8f6c56a5
A
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2d21ac55
A
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
8f6c56a5 25 *
2d21ac55 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
2d21ac55
A
34 kPMLogControllingDriverErr2, // 6 0x05100018 - power states already registered
35 kPMLogControllingDriverErr3, // 7 0x0510001c
36 kPMLogControllingDriverErr4, // 8 0x05100020 - power driver is invalid
91447636
A
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
2d21ac55 65 kPMLogControllingDriverErr5, // 37 0x05100094 - too few power states
91447636
A
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
2d21ac55
A
78 kPMLogSetClockGating, // 50 0x051000c8 - platform device specific clock control
79 kPMLogSetPowerGating, // 51 0x051000cc - platform device specific power control
80 kPMLogSetPinGroup, // 52 0x051000d0 - platform device specific gpio control
91447636
A
81 kIOPMlogLastEvent
82};
83
84// Deprecated Power Management Logging Constants
85#define PMlogSetParent kPMLogSetParent
86#define PMlogAddChild kPMLogAddChild
87#define PMlogRemoveChild kPMLogRemoveChild
88#define PMlogControllingDriver kPMLogControllingDriver
89#define PMlogControllingDriverErr1 kPMLogControllingDriverErr1
90#define PMlogControllingDriverErr2 kPMLogControllingDriverErr2
91#define PMlogControllingDriverErr3 kPMLogControllingDriverErr3
92#define PMlogControllingDriverErr4 kPMLogControllingDriverErr4
93#define PMlogInterestedDriver kPMLogInterestedDriver
94#define PMlogAcknowledgeErr1 kPMLogAcknowledgeErr1
95#define PMlogChildAcknowledge kPMLogChildAcknowledge
96#define PMlogDriverAcknowledge kPMLogDriverAcknowledge
97#define PMlogAcknowledgeErr2 kPMLogAcknowledgeErr2
98#define PMlogAcknowledgeErr3 kPMLogAcknowledgeErr3
99#define PMlogAcknowledgeErr4 kPMLogAcknowledgeErr4
100#define PMlogDriverAcknowledgeSet kPMLogDriverAcknowledgeSet
101#define PMlogWillChange kPMLogWillChange
102#define PMlogDidChange kPMLogDidChange
103#define PMlogRequestDomain kPMLogRequestDomain
104#define PMlogMakeUsable kPMLogMakeUsable
105#define PMlogChangeStateTo kPMLogChangeStateTo
106#define PMlogChangeStateToPriv kPMLogChangeStateToPriv
107#define PMlogSetAggressiveness kPMLogSetAggressiveness
108#define PMlogCriticalTemp kPMLogCriticalTemp
109#define PMlogOverrideOn kPMLogOverrideOn
110#define PMlogOverrideOff kPMLogOverrideOff
111#define PMlogEnqueueErr kPMLogEnqueueErr
112#define PMlogCollapseQueue kPMLogCollapseQueue
113#define PMlogChangeDone kPMLogChangeDone
114#define PMlogCtrlDriverTardy kPMLogCtrlDriverTardy
115#define PMlogIntDriverTardy kPMLogIntDriverTardy
116#define PMlogStartAckTimer kPMLogStartAckTimer
117#define PMlogStartParentChange kPMLogStartParentChange
118#define PMlogAmendParentChange kPMLogAmendParentChange
119#define PMlogStartDeviceChange kPMLogStartDeviceChange
120#define PMlogRequestDenied kPMLogRequestDenied
121#define PMlogControllingDriverErr5 kPMLogControllingDriverErr5
122#define PMlogProgramHardware kPMLogProgramHardware
123#define PMlogInformDriverPreChange kPMLogInformDriverPreChange
124#define PMlogInformDriverPostChange kPMLogInformDriverPostChange
125#define PMlogRemoveDriver kPMLogRemoveDriver
126#define PMsetIdleTimerPeriod kPMLogSetIdleTimerPeriod
127#define PMlogSystemWake kPMLogSystemWake
128#define PMlogAcknowledgeErr5 kPMLogAcknowledgeErr5
129#define PMlogClientAcknowledge kPMLogClientAcknowledge
130#define PMlogClientTardy kPMLogClientTardy
131#define PMlogClientCancel kPMLogClientCancel
132