]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
316670eb | 2 | * Copyright (c) 1998-2011 Apple Computer, Inc. All rights reserved. |
1c79356b | 3 | * |
2d21ac55 | 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ |
1c79356b | 5 | * |
2d21ac55 A |
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. | |
8f6c56a5 | 14 | * |
2d21ac55 A |
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 | |
8f6c56a5 A |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
2d21ac55 A |
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. | |
8f6c56a5 | 25 | * |
2d21ac55 | 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ |
1c79356b A |
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 | ||
1c79356b A |
55 | // IOCatalogueSendData |
56 | /*! | |
57 | @enum IOCatalogueSendData user-client flags. | |
58 | @constant kIOCatalogAddDrivers Signals a call to the addDrivers function in IOCatalogue. | |
59 | @constant kIOCatalogAddDriversNoMatch Signals a call to the addDrivers function in IOCatalogue but does not start a matching thread. | |
60 | @constant kIOCatalogRemoveDrivers Signals a call to the removeDrivers function in IOCatalogue. | |
61 | @constant kIOCatalogRemoveDriversNoMatch Signals a call to the removedrivers function in IOCatalogue but does not start a matching thread. | |
62 | @constant kIOCatalogStartMatching Signals the IOCatalogue to start an IOService matching thread. | |
6d2010ae A |
63 | @constant kIOCatalogRemoveKernelLinker Deprecated; does nothing. |
64 | @constant kIOCatalogKextdActive Signals the kernel that kextd is running. | |
65 | @constant kIOCatalogKextdFinishedLaunching Signals the IOCatalogue that kextd has finished sending it information at startup. | |
66 | @constant kIOCatalogResetDrivers Resets the IOCatalogue with a new set of personalities. | |
67 | @constant kIOCatalogResetDriversNoMatch Resets the IOCatalogue with a new set of personalities but does not start a matching thread. | |
1c79356b A |
68 | */ |
69 | enum { | |
70 | kIOCatalogAddDrivers = 1, | |
71 | kIOCatalogAddDriversNoMatch, | |
72 | kIOCatalogRemoveDrivers, | |
73 | kIOCatalogRemoveDriversNoMatch, | |
74 | kIOCatalogStartMatching, | |
2d21ac55 | 75 | kIOCatalogRemoveKernelLinker, |
b0d623f7 | 76 | kIOCatalogKextdActive, |
6d2010ae A |
77 | kIOCatalogKextdFinishedLaunching, |
78 | kIOCatalogResetDrivers, | |
79 | kIOCatalogResetDriversNoMatch | |
1c79356b A |
80 | }; |
81 | ||
82 | // IOCatalogueGetData | |
83 | /*! | |
84 | @enum IOCatalogueGetData user-client flags | |
85 | @constant kIOCatalogGetContents Returns a snapshot of the database to the caller. | |
86 | */ | |
87 | enum { | |
55e303ae A |
88 | kIOCatalogGetContents = 1, |
89 | kIOCatalogGetModuleDemandList = 2, | |
90 | kIOCatalogGetCacheMissList = 3, | |
91 | kIOCatalogGetROMMkextList = 4 | |
1c79356b A |
92 | }; |
93 | ||
94 | // IOCatalogueReset | |
95 | /*! | |
96 | @enum IOCatalogueReset user-client flag | |
97 | @constant kIOCatalogResetDefault Removes all entries from IOCatalogue except those used for booting the system. | |
98 | */ | |
99 | enum { | |
55e303ae | 100 | kIOCatalogResetDefault = 1 |
1c79356b A |
101 | }; |
102 | ||
103 | // IOCatalogueTerminate | |
104 | /*! | |
105 | @enum IOCatalogueTerminate user-client flags. | |
106 | @constant kIOCatalogModuleUnload Terminates all services which depend on a particular module and unloads the module. | |
107 | @constant kIOCatalogModuleTerminate Terminates all services which depend on a particular module but does not unload the module. | |
108 | @constant kIOCatalogServiceTerminate Terminates a particular service by name. | |
109 | */ | |
110 | enum { | |
111 | kIOCatalogModuleUnload = 1, | |
112 | kIOCatalogModuleTerminate, | |
55e303ae | 113 | kIOCatalogServiceTerminate |
1c79356b A |
114 | }; |
115 | ||
1c79356b A |
116 | #endif /* ! _IOKIT_IOKITSERVER_H */ |
117 |