]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitServer.h
9a2e9c2fe77c81009aa15e920e520c480998a9d5
[apple/xnu.git] / iokit / IOKit / IOKitServer.h
1 /*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
27 *
28 * HISTORY
29 *
30 */
31
32 /*
33 * Internal definitions used between the iokit user library and
34 * server routines.
35 */
36
37 #ifndef _IOKIT_IOKITSERVER_H
38 #define _IOKIT_IOKITSERVER_H
39
40 #include <IOKit/IOTypes.h>
41 #include <IOKit/IOKitKeys.h>
42 #include <IOKit/OSMessageNotification.h>
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 #include <mach/kmod.h>
48 #ifdef __cplusplus
49 }
50 #endif
51
52 // IOMakeMatching
53 /*!
54 @enum IOMakeMatching
55 @constant kIOServiceMatching
56 @constant kIOBSDNameMatching
57 @constant kIOOFPathMatching
58 */
59 enum {
60 kIOServiceMatching = 100,
61 kIOBSDNameMatching = 101,
62 kIOOFPathMatching = 102,
63 };
64
65 // IOCatalogueSendData
66 /*!
67 @enum IOCatalogueSendData user-client flags.
68 @constant kIOCatalogAddDrivers Signals a call to the addDrivers function in IOCatalogue.
69 @constant kIOCatalogAddDriversNoMatch Signals a call to the addDrivers function in IOCatalogue but does not start a matching thread.
70 @constant kIOCatalogRemoveDrivers Signals a call to the removeDrivers function in IOCatalogue.
71 @constant kIOCatalogRemoveDriversNoMatch Signals a call to the removedrivers function in IOCatalogue but does not start a matching thread.
72 @constant kIOCatalogStartMatching Signals the IOCatalogue to start an IOService matching thread.
73 */
74 enum {
75 kIOCatalogAddDrivers = 1,
76 kIOCatalogAddDriversNoMatch,
77 kIOCatalogRemoveDrivers,
78 kIOCatalogRemoveDriversNoMatch,
79 kIOCatalogStartMatching,
80 kIOCatalogRemoveKernelLinker,
81 };
82
83 // IOCatalogueGetData
84 /*!
85 @enum IOCatalogueGetData user-client flags
86 @constant kIOCatalogGetContents Returns a snapshot of the database to the caller.
87 */
88 enum {
89 kIOCatalogGetContents = 1,
90 };
91
92 // IOCatalogueReset
93 /*!
94 @enum IOCatalogueReset user-client flag
95 @constant kIOCatalogResetDefault Removes all entries from IOCatalogue except those used for booting the system.
96 */
97 enum {
98 kIOCatalogResetDefault = 1,
99 };
100
101 // IOCatalogueTerminate
102 /*!
103 @enum IOCatalogueTerminate user-client flags.
104 @constant kIOCatalogModuleUnload Terminates all services which depend on a particular module and unloads the module.
105 @constant kIOCatalogModuleTerminate Terminates all services which depend on a particular module but does not unload the module.
106 @constant kIOCatalogServiceTerminate Terminates a particular service by name.
107 */
108 enum {
109 kIOCatalogModuleUnload = 1,
110 kIOCatalogModuleTerminate,
111 kIOCatalogServiceTerminate,
112 };
113
114 enum {
115 kIOCatalogMatchIdle = KMOD_IOKIT_END_RANGE_PACKET - 0x10
116 };
117
118 #endif /* ! _IOKIT_IOKITSERVER_H */
119