]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
6601e61a | 4 | * @APPLE_LICENSE_HEADER_START@ |
1c79356b | 5 | * |
6601e61a A |
6 | * The contents of this file constitute Original Code as defined in and |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
8f6c56a5 | 11 | * |
6601e61a A |
12 | * This Original Code and all software distributed under the License are |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
8f6c56a5 A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
6601e61a A |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
8f6c56a5 | 19 | * |
6601e61a | 20 | * @APPLE_LICENSE_HEADER_END@ |
1c79356b A |
21 | */ |
22 | /* | |
23 | * Copyright (c) 1998 Apple Computer, Inc. All rights reserved. | |
24 | * | |
25 | * HISTORY | |
26 | * | |
27 | */ | |
28 | ||
29 | ||
30 | #ifndef _IOKIT_IOKITDEBUG_H | |
31 | #define _IOKIT_IOKITDEBUG_H | |
32 | ||
33 | #include <IOKit/IOTypes.h> | |
34 | ||
35 | ||
36 | #ifdef __cplusplus | |
37 | ||
38 | #include <libkern/c++/OSObject.h> | |
39 | #include <libkern/c++/OSDictionary.h> | |
40 | #include <libkern/c++/OSSerialize.h> | |
41 | ||
42 | class IOKitDiagnostics : public OSObject | |
43 | { | |
44 | OSDeclareDefaultStructors(IOKitDiagnostics) | |
45 | ||
46 | public: | |
47 | static OSObject * diagnostics( void ); | |
48 | virtual bool serialize(OSSerialize *s) const; | |
49 | private: | |
50 | static void updateOffset( OSDictionary * dict, | |
51 | UInt32 value, const char * name ); | |
52 | }; | |
53 | ||
55e303ae | 54 | #endif __cplusplus |
1c79356b A |
55 | |
56 | enum { | |
57 | // loggage | |
58 | kIOLogAttach = 0x00000001ULL, | |
59 | kIOLogProbe = 0x00000002ULL, | |
60 | kIOLogStart = 0x00000004ULL, | |
61 | kIOLogRegister = 0x00000008ULL, | |
62 | kIOLogMatch = 0x00000010ULL, | |
63 | kIOLogConfig = 0x00000020ULL, | |
64 | kIOLogYield = 0x00000040ULL, | |
65 | kIOLogPower = 0x00000080ULL, | |
66 | kIOLogMapping = 0x00000100ULL, | |
67 | kIOLogCatalogue = 0x00000200ULL, | |
9bccf70c | 68 | kIOLogTracePower = 0x00000400ULL, |
1c79356b A |
69 | |
70 | kIOLogServiceTree = 0x00001000ULL, | |
71 | kIOLogDTree = 0x00002000ULL, | |
72 | kIOLogMemory = 0x00004000ULL, | |
91447636 A |
73 | // available = 0x00008000ULL, |
74 | kOSLogRegistryMods = 0x00010000ULL, // Log attempts to modify registry collections | |
1c79356b A |
75 | |
76 | // debug aids - change behaviour | |
55e303ae A |
77 | kIONoFreeObjects = 0x00100000ULL, |
78 | kIOLogSynchronous = 0x00200000ULL, // IOLog completes synchrounsly | |
1c79356b A |
79 | }; |
80 | ||
81 | extern SInt64 gIOKitDebug; | |
1c79356b | 82 | |
55e303ae A |
83 | #ifdef __cplusplus |
84 | extern "C" { | |
85 | #endif | |
86 | ||
1c79356b A |
87 | struct IORegistryPlane; |
88 | extern void IOPrintPlane( const struct IORegistryPlane * plane ); | |
89 | extern void OSPrintMemory( void ); | |
90 | #define IOPrintMemory OSPrintMemory | |
91 | ||
92 | #ifdef __cplusplus | |
93 | } /* extern "C" */ | |
94 | #endif /* __cplusplus */ | |
95 | ||
96 | #endif /* ! _IOKIT_IOKITDEBUG_H */ |