]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
43866e37 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
1c79356b | 7 | * |
43866e37 A |
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 | |
13 | * file. | |
14 | * | |
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 | |
1c79356b A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
43866e37 A |
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. | |
1c79356b A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * Copyright (c) 1998 Apple Computer, Inc. All rights reserved. | |
27 | * | |
28 | * HISTORY | |
29 | * | |
30 | */ | |
31 | ||
32 | ||
33 | #ifndef _IOKIT_IOKITDEBUG_H | |
34 | #define _IOKIT_IOKITDEBUG_H | |
35 | ||
36 | #include <IOKit/IOTypes.h> | |
37 | ||
38 | ||
39 | #ifdef __cplusplus | |
40 | ||
41 | #include <libkern/c++/OSObject.h> | |
42 | #include <libkern/c++/OSDictionary.h> | |
43 | #include <libkern/c++/OSSerialize.h> | |
44 | ||
45 | class IOKitDiagnostics : public OSObject | |
46 | { | |
47 | OSDeclareDefaultStructors(IOKitDiagnostics) | |
48 | ||
49 | public: | |
50 | static OSObject * diagnostics( void ); | |
51 | virtual bool serialize(OSSerialize *s) const; | |
52 | private: | |
53 | static void updateOffset( OSDictionary * dict, | |
54 | UInt32 value, const char * name ); | |
55 | }; | |
56 | ||
55e303ae | 57 | #endif __cplusplus |
1c79356b A |
58 | |
59 | enum { | |
60 | // loggage | |
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, | |
9bccf70c | 71 | kIOLogTracePower = 0x00000400ULL, |
1c79356b A |
72 | |
73 | kIOLogServiceTree = 0x00001000ULL, | |
74 | kIOLogDTree = 0x00002000ULL, | |
75 | kIOLogMemory = 0x00004000ULL, | |
76 | ||
77 | // debug aids - change behaviour | |
55e303ae A |
78 | kIONoFreeObjects = 0x00100000ULL, |
79 | kIOLogSynchronous = 0x00200000ULL, // IOLog completes synchrounsly | |
1c79356b A |
80 | }; |
81 | ||
82 | extern SInt64 gIOKitDebug; | |
83 | extern char iokit_version[]; | |
84 | ||
55e303ae A |
85 | #ifdef __cplusplus |
86 | extern "C" { | |
87 | #endif | |
88 | ||
1c79356b A |
89 | struct IORegistryPlane; |
90 | extern void IOPrintPlane( const struct IORegistryPlane * plane ); | |
91 | extern void OSPrintMemory( void ); | |
92 | #define IOPrintMemory OSPrintMemory | |
93 | ||
94 | #ifdef __cplusplus | |
95 | } /* extern "C" */ | |
96 | #endif /* __cplusplus */ | |
97 | ||
98 | #endif /* ! _IOKIT_IOKITDEBUG_H */ |