]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitDebug.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
33 #ifndef _IOKIT_IOKITDEBUG_H
34 #define _IOKIT_IOKITDEBUG_H
36 #include <IOKit/IOTypes.h>
41 #include <libkern/c++/OSObject.h>
42 #include <libkern/c++/OSDictionary.h>
43 #include <libkern/c++/OSSerialize.h>
45 class IOKitDiagnostics
: public OSObject
47 OSDeclareDefaultStructors(IOKitDiagnostics
)
50 static OSObject
* diagnostics( void );
51 virtual bool serialize(OSSerialize
*s
) const;
53 static void updateOffset( OSDictionary
* dict
,
54 UInt32 value
, const char * name
);
61 kIOLogAttach
= 0x00000001ULL
,
62 kIOLogProbe
= 0x00000002ULL
,
63 kIOLogStart
= 0x00000004ULL
,
64 kIOLogRegister
= 0x00000008ULL
,
65 kIOLogMatch
= 0x00000010ULL
,
66 kIOLogConfig
= 0x00000020ULL
,
67 kIOLogYield
= 0x00000040ULL
,
68 kIOLogPower
= 0x00000080ULL
,
69 kIOLogMapping
= 0x00000100ULL
,
70 kIOLogCatalogue
= 0x00000200ULL
,
71 kIOLogTracePower
= 0x00000400ULL
,
73 kIOLogServiceTree
= 0x00001000ULL
,
74 kIOLogDTree
= 0x00002000ULL
,
75 kIOLogMemory
= 0x00004000ULL
,
77 // debug aids - change behaviour
78 kIONoFreeObjects
= 0x00100000ULL
,
79 kIOLogSynchronous
= 0x00200000ULL
, // IOLog completes synchrounsly
82 extern SInt64 gIOKitDebug
;
83 extern char iokit_version
[];
89 struct IORegistryPlane
;
90 extern void IOPrintPlane( const struct IORegistryPlane
* plane
);
91 extern void OSPrintMemory( void );
92 #define IOPrintMemory OSPrintMemory
96 #endif /* __cplusplus */
98 #endif /* ! _IOKIT_IOKITDEBUG_H */