X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..c6bf4f310a33a9262d455ea4d3f0630b1255e3fe:/iokit/Kernel/IOPMPowerStateQueue.h diff --git a/iokit/Kernel/IOPMPowerStateQueue.h b/iokit/Kernel/IOPMPowerStateQueue.h index bccf6f45f..1e737ed17 100644 --- a/iokit/Kernel/IOPMPowerStateQueue.h +++ b/iokit/Kernel/IOPMPowerStateQueue.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 2001-2002 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2001-2019 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ - * + * * 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 @@ -11,10 +11,10 @@ * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. - * + * * 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, @@ -22,13 +22,13 @@ * 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_OSREFERENCE_LICENSE_HEADER_END@ */ - + #ifndef _IOPMPOWERSTATEQUEUE_H_ #define _IOPMPOWERSTATEQUEUE_H_ - + #include #include #include @@ -37,27 +37,27 @@ typedef void (*IOPMPowerStateQueueAction)(OSObject *, uint32_t event, void *, ui class IOPMPowerStateQueue : public IOEventSource { - OSDeclareDefaultStructors(IOPMPowerStateQueue) + OSDeclareDefaultStructors(IOPMPowerStateQueue); private: - struct PowerEventEntry { - queue_chain_t chain; - uint32_t eventType; - void * arg0; - uint64_t arg1; - }; + struct PowerEventEntry { + queue_chain_t chain; + uint32_t eventType; + void * arg0; + uint64_t arg1; + }; - queue_head_t queueHead; - IOLock * queueLock; + queue_head_t queueHead; + IOLock * queueLock; protected: - virtual bool checkForWork( void ) APPLE_KEXT_OVERRIDE; - virtual bool init( OSObject * owner, Action action ) APPLE_KEXT_OVERRIDE; + virtual bool checkForWork( void ) APPLE_KEXT_OVERRIDE; + virtual bool init( OSObject * owner, Action action ) APPLE_KEXT_OVERRIDE; public: - static IOPMPowerStateQueue * PMPowerStateQueue( OSObject * owner, Action action ); + static IOPMPowerStateQueue * PMPowerStateQueue( OSObject * owner, Action action ); - bool submitPowerEvent( uint32_t eventType, void * arg0 = 0, uint64_t arg1 = 0 ); + bool submitPowerEvent( uint32_t eventType, void * arg0 = NULL, uint64_t arg1 = 0 ); }; #endif /* _IOPMPOWERSTATEQUEUE_H_ */