]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitKeys.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
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.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
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.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
31 * Common symbol definitions for IOKit.
38 #ifndef _IOKIT_IOKITKEYS_H
39 #define _IOKIT_IOKITKEYS_H
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"
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"
57 #define kIORegistryEntryIDKey "IORegistryEntryID"
58 // property name to get array of property names
59 #define kIORegistryEntryPropertyKeysKey "IORegistryEntryPropertyKeys"
61 // IOService class name
62 #define kIOServiceClass "IOService"
64 // IOResources class name
65 #define kIOResourcesClass "IOResources"
67 // IOService driver probing property names
68 #define kIOClassKey "IOClass"
69 #define kIOProbeScoreKey "IOProbeScore"
70 #define kIOKitDebugKey "IOKitDebug"
72 // Properties to be supported as API
73 #define kIOSupportedPropertiesKey "IOSupportedProperties"
74 // Properties writable by dexts
75 #define kIOUserServicePropertiesKey "IOUserServiceProperties"
78 // IOService matching property names
79 #define kIOProviderClassKey "IOProviderClass"
80 #define kIONameMatchKey "IONameMatch"
81 #define kIOPropertyMatchKey "IOPropertyMatch"
82 #define kIOPropertyExistsMatchKey "IOPropertyExistsMatch"
83 #define kIOPathMatchKey "IOPathMatch"
84 #define kIOLocationMatchKey "IOLocationMatch"
85 #define kIOParentMatchKey "IOParentMatch"
86 #define kIOResourceMatchKey "IOResourceMatch"
87 #define kIOResourceMatchedKey "IOResourceMatched"
88 #define kIOMatchedServiceCountKey "IOMatchedServiceCountMatch"
90 #define kIONameMatchedKey "IONameMatched"
92 #define kIOMatchCategoryKey "IOMatchCategory"
93 #define kIODefaultMatchCategoryKey "IODefaultMatchCategory"
95 #define kIOMatchedPersonalityKey "IOMatchedPersonality"
96 #define kIORematchPersonalityKey "IORematchPersonality"
97 #define kIORematchCountKey "IORematchCount"
98 #define kIODEXTMatchCountKey "IODEXTMatchCount"
100 // Entitlements to check against dext process
101 // Property is an array, one or more of which may match, of:
102 // an array of entitlement strings, all must be present
103 // Any array can be a single string.
104 #define kIOServiceDEXTEntitlementsKey "IOServiceDEXTEntitlements"
106 // Entitlement required to open dext connection
107 #define kIODriverKitEntitlementKey "com.apple.developer.driverkit"
109 // Entitlements required to open dext IOUserClient
110 // Property is an array of strings containing CFBundleIdentifiers of service being opened
111 #define kIODriverKitUserClientEntitlementsKey "com.apple.developer.driverkit.userclient-access"
113 // Other DriverKit entitlements
114 #define kIODriverKitUSBTransportEntitlementKey "com.apple.developer.driverkit.transport.usb"
115 #define kIODriverKitHIDTransportEntitlementKey "com.apple.developer.driverkit.transport.hid"
116 #define kIODriverKitHIDFamilyDeviceEntitlementKey "com.apple.developer.driverkit.family.hid.device"
117 #define kIODriverKitHIDFamilyEventServiceEntitlementKey "com.apple.developer.driverkit.family.hid.eventservice"
118 #define kIODriverKitTransportBuiltinEntitlementKey "com.apple.developer.driverkit.builtin"
121 // When possible, defer matching of this driver until kextd has started.
122 #define kIOMatchDeferKey "IOMatchDefer"
124 // IOService default user client class, for loadable user clients
125 #define kIOUserClientClassKey "IOUserClientClass"
127 // key to find IOMappers
128 #define kIOMapperIDKey "IOMapperID"
130 #define kIOUserClientCrossEndianKey "IOUserClientCrossEndian"
131 #define kIOUserClientCrossEndianCompatibleKey "IOUserClientCrossEndianCompatible"
132 #define kIOUserClientSharedInstanceKey "IOUserClientSharedInstance"
134 #define kIOUserClientMessageAppSuspendedKey "IOUserClientMessageAppSuspended"
136 // diagnostic string describing the creating task
137 #define kIOUserClientCreatorKey "IOUserClientCreator"
138 // the expected cdhash value of the userspace driver executable
139 #define kIOUserServerCDHashKey "IOUserServerCDHash"
141 #define kIOUserUserClientKey "IOUserUserClient"
144 // IOService notification types
145 #define kIOPublishNotification "IOServicePublish"
146 #define kIOFirstPublishNotification "IOServiceFirstPublish"
147 #define kIOMatchedNotification "IOServiceMatched"
148 #define kIOFirstMatchNotification "IOServiceFirstMatch"
149 #define kIOTerminatedNotification "IOServiceTerminate"
150 #define kIOWillTerminateNotification "IOServiceWillTerminate"
152 // IOService interest notification types
153 #define kIOGeneralInterest "IOGeneralInterest"
154 #define kIOBusyInterest "IOBusyInterest"
155 #define kIOAppPowerStateInterest "IOAppPowerStateInterest"
156 #define kIOPriorityPowerStateInterest "IOPriorityPowerStateInterest"
158 #define kIOPlatformDeviceMessageKey "IOPlatformDeviceMessage"
160 // IOService interest notification types
161 #define kIOCFPlugInTypesKey "IOCFPlugInTypes"
163 // properties found in services that implement command pooling
164 #define kIOCommandPoolSizeKey "IOCommandPoolSize" // (OSNumber)
166 // properties found in services that implement priority
167 #define kIOMaximumPriorityCountKey "IOMaximumPriorityCount" // (OSNumber)
169 // properties found in services that have transfer constraints
170 #define kIOMaximumBlockCountReadKey "IOMaximumBlockCountRead" // (OSNumber)
171 #define kIOMaximumBlockCountWriteKey "IOMaximumBlockCountWrite" // (OSNumber)
172 #define kIOMaximumByteCountReadKey "IOMaximumByteCountRead" // (OSNumber)
173 #define kIOMaximumByteCountWriteKey "IOMaximumByteCountWrite" // (OSNumber)
174 #define kIOMaximumSegmentCountReadKey "IOMaximumSegmentCountRead" // (OSNumber)
175 #define kIOMaximumSegmentCountWriteKey "IOMaximumSegmentCountWrite" // (OSNumber)
176 #define kIOMaximumSegmentByteCountReadKey "IOMaximumSegmentByteCountRead" // (OSNumber)
177 #define kIOMaximumSegmentByteCountWriteKey "IOMaximumSegmentByteCountWrite" // (OSNumber)
178 #define kIOMinimumSegmentAlignmentByteCountKey "IOMinimumSegmentAlignmentByteCount" // (OSNumber)
179 #define kIOMaximumSegmentAddressableBitCountKey "IOMaximumSegmentAddressableBitCount" // (OSNumber)
180 #define kIOMinimumSaturationByteCountKey "IOMinimumSaturationByteCount" // (OSNumber)
181 #define kIOMaximumSwapWriteKey "IOMaximumSwapWrite" // (OSNumber)
183 // properties found in services that wish to describe an icon
187 // CFBundleIdentifier = "com.example.driver.example";
188 // IOBundleResourceFile = "example.icns";
191 // where IOBundleResourceFile is the filename of the resource
193 #define kIOIconKey "IOIcon" // (OSDictionary)
194 #define kIOBundleResourceFileKey "IOBundleResourceFile" // (OSString)
196 #define kIOBusBadgeKey "IOBusBadge" // (OSDictionary)
197 #define kIODeviceIconKey "IODeviceIcon" // (OSDictionary)
199 // property of root that describes the machine's serial number as a string
200 #define kIOPlatformSerialNumberKey "IOPlatformSerialNumber" // (OSString)
202 // property of root that describes the machine's UUID as a string
203 #define kIOPlatformUUIDKey "IOPlatformUUID" // (OSString)
205 // IODTNVRAM property keys
206 #define kIONVRAMBootArgsKey "boot-args"
207 #define kIONVRAMDeletePropertyKey "IONVRAM-DELETE-PROPERTY"
208 #define kIONVRAMSyncNowPropertyKey "IONVRAM-SYNCNOW-PROPERTY"
209 #define kIONVRAMActivateCSRConfigPropertyKey "IONVRAM-ARMCSR-PROPERTY"
210 #define kIODTNVRAMPanicInfoKey "aapl,panic-info"
212 // keys for complex boot information
213 #define kIOBootDeviceKey "IOBootDevice" // dict | array of dicts
214 #define kIOBootDevicePathKey "IOBootDevicePath" // arch-neutral OSString
215 #define kIOBootDeviceSizeKey "IOBootDeviceSize" // OSNumber of bytes
217 // keys for OS Version information
218 #define kOSBuildVersionKey "OS Build Version"
220 #endif /* ! _IOKIT_IOKITKEYS_H */