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