IOGraphicsPrivate.h [plain text]
#ifndef _IOKIT_IOGRAPHICSPRIVATE_H
#define _IOKIT_IOGRAPHICSPRIVATE_H
#include <IOKit/graphics/IOGraphicsTypesPrivate.h>
#if 0
#warning **LOGS**
#define DEBG(fmt, args...) \
do { \
AbsoluteTime now; \
UInt64 nano; \
clock_get_uptime( &now); \
absolutetime_to_nanoseconds( now, &nano ); \
kprintf("%08ld.", (UInt32) (nano / 1000000ULL)); \
kprintf(fmt, ## args); \
} while( false )
#elif 0
#warning **LOGS**
#define DEBG(fmt, args...) \
do { \
AbsoluteTime now; \
UInt64 nano; \
clock_get_uptime( &now); \
absolutetime_to_nanoseconds( now, &nano ); \
IOLog("%08ld.", (UInt32) (nano / 1000000ULL)); \
IOLog(fmt, ## args); \
} while( false )
#else
#define DEBG(fmt, args...) {}
#endif
#ifndef kAppleAudioVideoJackStateKey
#define kAppleAudioVideoJackStateKey "AppleAudioVideoJackState"
#endif
#ifndef kIOPMIsPowerManagedKey
#define kIOPMIsPowerManagedKey "IOPMIsPowerManaged"
#endif
#ifndef kIOAGPCommandValueKey
#define kIOAGPCommandValueKey "IOAGPCommandValue"
#endif
#ifndef kAppleClamshellStateKey
#define kAppleClamshellStateKey "AppleClamshellState"
#endif
#ifndef kIOFBWaitCursorFramesKey
#define kIOFBWaitCursorFramesKey "IOFBWaitCursorFrames"
#endif
#ifndef kIOFBWaitCursorPeriodKey
#define kIOFBWaitCursorPeriodKey "IOFBWaitCursorPeriod"
#endif
extern "C" vm_map_t IOPageableMapForAddress( vm_address_t address );
#if __ppc__
extern "C" void bcopy_nc( void * from, void * to, UInt32 l );
extern "C" void bzero_nc( void * p, UInt32 l );
#else
inline void bcopy_nc( void * from, void * to, UInt32 l) { bcopy( from, to, l ); }
inline void bzero_nc( void * p, UInt32 l ) { bzero( p, l ); }
#endif
#endif