]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOServicePrivate.h
xnu-344.49.tar.gz
[apple/xnu.git] / iokit / Kernel / IOServicePrivate.h
index 6ff2870a344af8cfcf09aab27641a941e4ba7931..d9a341f470ffe9d60217e0f20cb602bdeec609b1 100644 (file)
@@ -3,19 +3,22 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License").  You may not use this file except in compliance with the
- * License.  Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
  * 
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ * 
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
  * 
  * @APPLE_LICENSE_HEADER_END@
  */
@@ -39,9 +42,15 @@ enum {
 enum {
     kIOServiceBusyStateMask    = 0x000000ff,
     kIOServiceBusyMax          = 255,
-    kIOServiceTerminatedState  = 0x80000000,
-    kIOServiceConfigState      = 0x40000000,
-    kIOServiceSynchronousState = 0x20000000,
+    kIOServiceNeedConfigState  = 0x80000000,
+    kIOServiceSynchronousState = 0x40000000,
+    kIOServiceModuleStallState = 0x20000000,
+    kIOServiceBusyWaiterState  = 0x10000000,
+
+    kIOServiceSyncPubState     = 0x08000000,
+    kIOServiceConfigState      = 0x04000000,
+    kIOServiceTermPhase2State  = 0x01000000,
+    kIOServiceTermPhase3State  = 0x00800000,
 };
 
 // options for terminate()
@@ -49,11 +58,10 @@ enum {
     kIOServiceRecursing                = 0x00100000,
 };
 
-
 // notify state
 enum {
-    kIOServiceNotifyEnable             = 0x00000001,
-    kIOServiceNotifyWaiter             = 0x00000002
+    kIOServiceNotifyEnable     = 0x00000001,
+    kIOServiceNotifyWaiter     = 0x00000002
 };
 
 struct _IOServiceNotifierInvocation
@@ -64,7 +72,7 @@ struct _IOServiceNotifierInvocation
 
 class _IOServiceNotifier : public IONotifier
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(_IOServiceNotifier)
 
@@ -88,7 +96,7 @@ public:
 
 class _IOServiceInterestNotifier : public IONotifier
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(_IOServiceInterestNotifier)
 
@@ -110,7 +118,7 @@ public:
 
 class _IOConfigThread : public OSObject
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(_IOConfigThread)
 
@@ -133,12 +141,11 @@ enum {
 
 enum {
     kMatchNubJob       = 10,
-    kTerminateNubJob,
 };
 
 class _IOServiceJob : public OSObject
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(_IOServiceJob)
 
@@ -155,7 +162,7 @@ public:
 
 class IOResources : public IOService
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(IOResources)
 
@@ -163,11 +170,12 @@ public:
     static IOService * resources( void );
     virtual IOWorkLoop * getWorkLoop( ) const;
     virtual bool matchPropertyTable( OSDictionary * table );
+    virtual IOReturn setProperties( OSObject * properties );
 };
 
 class _IOOpenServiceIterator : public OSIterator
 {
-    friend IOService;
+    friend class IOService;
 
     OSDeclareDefaultStructors(_IOOpenServiceIterator)