]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitServer.h
xnu-792.22.5.tar.gz
[apple/xnu.git] / iokit / IOKit / IOKitServer.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) 1998 Apple Computer, Inc. All rights reserved.
30 *
31 * HISTORY
32 *
33 */
34
35 /*
36 * Internal definitions used between the iokit user library and
37 * server routines.
38 */
39
40 #ifndef _IOKIT_IOKITSERVER_H
41 #define _IOKIT_IOKITSERVER_H
42
43 #include <IOKit/IOTypes.h>
44 #include <IOKit/IOKitKeys.h>
45 #include <IOKit/OSMessageNotification.h>
46
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 #include <mach/kmod.h>
51 #ifdef __cplusplus
52 }
53 #endif
54
55 // IOMakeMatching
56 /*!
57 @enum IOMakeMatching
58 @constant kIOServiceMatching
59 @constant kIOBSDNameMatching
60 @constant kIOOFPathMatching
61 */
62 enum {
63 kIOServiceMatching = 100,
64 kIOBSDNameMatching = 101,
65 kIOOFPathMatching = 102
66 };
67
68 // IOCatalogueSendData
69 /*!
70 @enum IOCatalogueSendData user-client flags.
71 @constant kIOCatalogAddDrivers Signals a call to the addDrivers function in IOCatalogue.
72 @constant kIOCatalogAddDriversNoMatch Signals a call to the addDrivers function in IOCatalogue but does not start a matching thread.
73 @constant kIOCatalogRemoveDrivers Signals a call to the removeDrivers function in IOCatalogue.
74 @constant kIOCatalogRemoveDriversNoMatch Signals a call to the removedrivers function in IOCatalogue but does not start a matching thread.
75 @constant kIOCatalogStartMatching Signals the IOCatalogue to start an IOService matching thread.
76 */
77 enum {
78 kIOCatalogAddDrivers = 1,
79 kIOCatalogAddDriversNoMatch,
80 kIOCatalogRemoveDrivers,
81 kIOCatalogRemoveDriversNoMatch,
82 kIOCatalogStartMatching,
83 kIOCatalogRemoveKernelLinker
84 };
85
86 // IOCatalogueGetData
87 /*!
88 @enum IOCatalogueGetData user-client flags
89 @constant kIOCatalogGetContents Returns a snapshot of the database to the caller.
90 */
91 enum {
92 kIOCatalogGetContents = 1,
93 kIOCatalogGetModuleDemandList = 2,
94 kIOCatalogGetCacheMissList = 3,
95 kIOCatalogGetROMMkextList = 4
96 };
97
98 // IOCatalogueReset
99 /*!
100 @enum IOCatalogueReset user-client flag
101 @constant kIOCatalogResetDefault Removes all entries from IOCatalogue except those used for booting the system.
102 */
103 enum {
104 kIOCatalogResetDefault = 1
105 };
106
107 // IOCatalogueTerminate
108 /*!
109 @enum IOCatalogueTerminate user-client flags.
110 @constant kIOCatalogModuleUnload Terminates all services which depend on a particular module and unloads the module.
111 @constant kIOCatalogModuleTerminate Terminates all services which depend on a particular module but does not unload the module.
112 @constant kIOCatalogServiceTerminate Terminates a particular service by name.
113 */
114 enum {
115 kIOCatalogModuleUnload = 1,
116 kIOCatalogModuleTerminate,
117 kIOCatalogServiceTerminate
118 };
119
120 enum {
121 kIOCatalogMatchIdle = KMOD_IOKIT_END_RANGE_PACKET - 0x10
122 };
123
124 #endif /* ! _IOKIT_IOKITSERVER_H */
125