*
* @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@
*/
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()
kIOServiceRecursing = 0x00100000,
};
-
// notify state
enum {
- kIOServiceNotifyEnable = 0x00000001,
- kIOServiceNotifyWaiter = 0x00000002
+ kIOServiceNotifyEnable = 0x00000001,
+ kIOServiceNotifyWaiter = 0x00000002
};
struct _IOServiceNotifierInvocation
class _IOServiceNotifier : public IONotifier
{
- friend IOService;
+ friend class IOService;
OSDeclareDefaultStructors(_IOServiceNotifier)
class _IOServiceInterestNotifier : public IONotifier
{
- friend IOService;
+ friend class IOService;
OSDeclareDefaultStructors(_IOServiceInterestNotifier)
class _IOConfigThread : public OSObject
{
- friend IOService;
+ friend class IOService;
OSDeclareDefaultStructors(_IOConfigThread)
enum {
kMatchNubJob = 10,
- kTerminateNubJob,
};
class _IOServiceJob : public OSObject
{
- friend IOService;
+ friend class IOService;
OSDeclareDefaultStructors(_IOServiceJob)
class IOResources : public IOService
{
- friend IOService;
+ friend class IOService;
OSDeclareDefaultStructors(IOResources)
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)