X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..a39ff7e25e19b3a8c3020042a3872ca9ec9659f1:/iokit/IOKit/pwr_mgt/IOPMinformee.h diff --git a/iokit/IOKit/pwr_mgt/IOPMinformee.h b/iokit/IOKit/pwr_mgt/IOPMinformee.h index 8a164ac88..9d4e0c3b9 100644 --- a/iokit/IOKit/pwr_mgt/IOPMinformee.h +++ b/iokit/IOKit/pwr_mgt/IOPMinformee.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 1998-2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -25,26 +25,30 @@ * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ +#ifndef _IOKIT_IOPMINFORMEE_H +#define _IOKIT_IOPMINFORMEE_H + #include #include class IOPMinformee : public OSObject { -OSDeclareDefaultStructors(IOPMinformee) + OSDeclareDefaultStructors(IOPMinformee) + friend class IOPMinformeeList; public: + static IOPMinformee * withObject( IOService * theObject ); -// points to interested driver or power domain child -IOService * whatObject; - -// -1, 0, or positive number decrementing with each tick - IOReturn timer; + void initialize( IOService * theObject ); -// next informee in the list - IOPMinformee * nextInList; + void free( void ) APPLE_KEXT_OVERRIDE; - -void initialize ( IOService * theObject ); -void free ( void ); +public: + IOService * whatObject; // interested driver + int32_t timer; // -1, 0, or positive number of ticks + IOPMinformee * nextInList; // linkage pointer + AbsoluteTime startTime; // start time of last inform + bool active; // enable flag }; +#endif /* !_IOKIT_IOPMINFORMEE_H */