]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitKeys.h
xnu-6153.61.1.tar.gz
[apple/xnu.git] / iokit / IOKit / IOKitKeys.h
1 /*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_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. 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
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28 /*
29 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
30 *
31 * Common symbol definitions for IOKit.
32 *
33 * HISTORY
34 *
35 */
36
37
38 #ifndef _IOKIT_IOKITKEYS_H
39 #define _IOKIT_IOKITKEYS_H
40
41 // properties found in the registry root
42 #define kIOKitBuildVersionKey "IOKitBuildVersion"
43 #define kIOKitDiagnosticsKey "IOKitDiagnostics"
44 // a dictionary keyed by plane name
45 #define kIORegistryPlanesKey "IORegistryPlanes"
46 #define kIOCatalogueKey "IOCatalogue"
47
48 // registry plane names
49 #define kIOServicePlane "IOService"
50 #define kIOPowerPlane "IOPower"
51 #define kIODeviceTreePlane "IODeviceTree"
52 #define kIOAudioPlane "IOAudio"
53 #define kIOFireWirePlane "IOFireWire"
54 #define kIOUSBPlane "IOUSB"
55
56 // registry ID number
57 #define kIORegistryEntryIDKey "IORegistryEntryID"
58 // property name to get array of property names
59 #define kIORegistryEntryPropertyKeysKey "IORegistryEntryPropertyKeys"
60
61 // IOService class name
62 #define kIOServiceClass "IOService"
63
64 // IOResources class name
65 #define kIOResourcesClass "IOResources"
66
67 // IOService driver probing property names
68 #define kIOClassKey "IOClass"
69 #define kIOProbeScoreKey "IOProbeScore"
70 #define kIOKitDebugKey "IOKitDebug"
71
72 // IOService matching property names
73 #define kIOProviderClassKey "IOProviderClass"
74 #define kIONameMatchKey "IONameMatch"
75 #define kIOPropertyMatchKey "IOPropertyMatch"
76 #define kIOPropertyExistsMatchKey "IOPropertyExistsMatch"
77 #define kIOPathMatchKey "IOPathMatch"
78 #define kIOLocationMatchKey "IOLocationMatch"
79 #define kIOParentMatchKey "IOParentMatch"
80 #define kIOResourceMatchKey "IOResourceMatch"
81 #define kIOResourceMatchedKey "IOResourceMatched"
82 #define kIOMatchedServiceCountKey "IOMatchedServiceCountMatch"
83
84 #define kIONameMatchedKey "IONameMatched"
85
86 #define kIOMatchCategoryKey "IOMatchCategory"
87 #define kIODefaultMatchCategoryKey "IODefaultMatchCategory"
88
89 #define kIOMatchedPersonalityKey "IOMatchedPersonality"
90 #define kIORematchPersonalityKey "IORematchPersonality"
91 #define kIORematchCountKey "IORematchCount"
92 #define kIODEXTMatchCountKey "IODEXTMatchCount"
93
94 // Entitlements to check against dext process
95 // Property is an array, one or more of which may match, of:
96 // an array of entitlement strings, all must be present
97 // Any array can be a single string.
98 #define kIOServiceDEXTEntitlementsKey "IOServiceDEXTEntitlements"
99
100 // Entitlement required to open dext connection
101 #define kIODriverKitEntitlementKey "com.apple.developer.driverkit"
102
103 // Entitlements required to open dext IOUserClient
104 // Property is an array of strings containing CFBundleIdentifiers of service being opened
105 #define kIODriverKitUserClientEntitlementsKey "com.apple.developer.driverkit.userclient-access"
106
107 // Other DriverKit entitlements
108 #define kIODriverKitUSBTransportEntitlementKey "com.apple.developer.driverkit.transport.usb"
109 #define kIODriverKitHIDTransportEntitlementKey "com.apple.developer.driverkit.transport.hid"
110 #define kIODriverKitHIDFamilyDeviceEntitlementKey "com.apple.developer.driverkit.family.hid.device"
111 #define kIODriverKitHIDFamilyEventServiceEntitlementKey "com.apple.developer.driverkit.family.hid.eventservice"
112 #define kIODriverKitTransportBuiltinEntitlementKey "com.apple.developer.driverkit.builtin"
113
114
115 // When possible, defer matching of this driver until kextd has started.
116 #define kIOMatchDeferKey "IOMatchDefer"
117
118 // IOService default user client class, for loadable user clients
119 #define kIOUserClientClassKey "IOUserClientClass"
120
121 // key to find IOMappers
122 #define kIOMapperIDKey "IOMapperID"
123
124 #define kIOUserClientCrossEndianKey "IOUserClientCrossEndian"
125 #define kIOUserClientCrossEndianCompatibleKey "IOUserClientCrossEndianCompatible"
126 #define kIOUserClientSharedInstanceKey "IOUserClientSharedInstance"
127 #if KERNEL_PRIVATE
128 #define kIOUserClientMessageAppSuspendedKey "IOUserClientMessageAppSuspended"
129 #endif
130 // diagnostic string describing the creating task
131 #define kIOUserClientCreatorKey "IOUserClientCreator"
132 // the expected cdhash value of the userspace driver executable
133 #define kIOUserServerCDHashKey "IOUserServerCDHash"
134
135 #define kIOUserUserClientKey "IOUserUserClient"
136
137
138 // IOService notification types
139 #define kIOPublishNotification "IOServicePublish"
140 #define kIOFirstPublishNotification "IOServiceFirstPublish"
141 #define kIOMatchedNotification "IOServiceMatched"
142 #define kIOFirstMatchNotification "IOServiceFirstMatch"
143 #define kIOTerminatedNotification "IOServiceTerminate"
144 #define kIOWillTerminateNotification "IOServiceWillTerminate"
145
146 // IOService interest notification types
147 #define kIOGeneralInterest "IOGeneralInterest"
148 #define kIOBusyInterest "IOBusyInterest"
149 #define kIOAppPowerStateInterest "IOAppPowerStateInterest"
150 #define kIOPriorityPowerStateInterest "IOPriorityPowerStateInterest"
151
152 #define kIOPlatformDeviceMessageKey "IOPlatformDeviceMessage"
153
154 // IOService interest notification types
155 #define kIOCFPlugInTypesKey "IOCFPlugInTypes"
156
157 // properties found in services that implement command pooling
158 #define kIOCommandPoolSizeKey "IOCommandPoolSize" // (OSNumber)
159
160 // properties found in services that implement priority
161 #define kIOMaximumPriorityCountKey "IOMaximumPriorityCount" // (OSNumber)
162
163 // properties found in services that have transfer constraints
164 #define kIOMaximumBlockCountReadKey "IOMaximumBlockCountRead" // (OSNumber)
165 #define kIOMaximumBlockCountWriteKey "IOMaximumBlockCountWrite" // (OSNumber)
166 #define kIOMaximumByteCountReadKey "IOMaximumByteCountRead" // (OSNumber)
167 #define kIOMaximumByteCountWriteKey "IOMaximumByteCountWrite" // (OSNumber)
168 #define kIOMaximumSegmentCountReadKey "IOMaximumSegmentCountRead" // (OSNumber)
169 #define kIOMaximumSegmentCountWriteKey "IOMaximumSegmentCountWrite" // (OSNumber)
170 #define kIOMaximumSegmentByteCountReadKey "IOMaximumSegmentByteCountRead" // (OSNumber)
171 #define kIOMaximumSegmentByteCountWriteKey "IOMaximumSegmentByteCountWrite" // (OSNumber)
172 #define kIOMinimumSegmentAlignmentByteCountKey "IOMinimumSegmentAlignmentByteCount" // (OSNumber)
173 #define kIOMaximumSegmentAddressableBitCountKey "IOMaximumSegmentAddressableBitCount" // (OSNumber)
174 #define kIOMinimumSaturationByteCountKey "IOMinimumSaturationByteCount" // (OSNumber)
175 #define kIOMaximumSwapWriteKey "IOMaximumSwapWrite" // (OSNumber)
176
177 // properties found in services that wish to describe an icon
178 //
179 // IOIcon =
180 // {
181 // CFBundleIdentifier = "com.example.driver.example";
182 // IOBundleResourceFile = "example.icns";
183 // };
184 //
185 // where IOBundleResourceFile is the filename of the resource
186
187 #define kIOIconKey "IOIcon" // (OSDictionary)
188 #define kIOBundleResourceFileKey "IOBundleResourceFile" // (OSString)
189
190 #define kIOBusBadgeKey "IOBusBadge" // (OSDictionary)
191 #define kIODeviceIconKey "IODeviceIcon" // (OSDictionary)
192
193 // property of root that describes the machine's serial number as a string
194 #define kIOPlatformSerialNumberKey "IOPlatformSerialNumber" // (OSString)
195
196 // property of root that describes the machine's UUID as a string
197 #define kIOPlatformUUIDKey "IOPlatformUUID" // (OSString)
198
199 // IODTNVRAM property keys
200 #define kIONVRAMBootArgsKey "boot-args"
201 #define kIONVRAMDeletePropertyKey "IONVRAM-DELETE-PROPERTY"
202 #define kIONVRAMSyncNowPropertyKey "IONVRAM-SYNCNOW-PROPERTY"
203 #define kIONVRAMActivateCSRConfigPropertyKey "IONVRAM-ARMCSR-PROPERTY"
204 #define kIODTNVRAMPanicInfoKey "aapl,panic-info"
205
206 // keys for complex boot information
207 #define kIOBootDeviceKey "IOBootDevice" // dict | array of dicts
208 #define kIOBootDevicePathKey "IOBootDevicePath" // arch-neutral OSString
209 #define kIOBootDeviceSizeKey "IOBootDeviceSize" // OSNumber of bytes
210
211 // keys for OS Version information
212 #define kOSBuildVersionKey "OS Build Version"
213
214 #endif /* ! _IOKIT_IOKITKEYS_H */