]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitDebug.h
8b870445e7eb9cedf1b6ed620fb31f0d797438d2
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
31 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
38 #ifndef _IOKIT_IOKITDEBUG_H
39 #define _IOKIT_IOKITDEBUG_H
41 #include <IOKit/IOTypes.h>
46 #include <libkern/c++/OSObject.h>
47 #include <libkern/c++/OSDictionary.h>
48 #include <libkern/c++/OSSerialize.h>
50 class IOKitDiagnostics
: public OSObject
52 OSDeclareDefaultStructors(IOKitDiagnostics
)
55 static OSObject
* diagnostics( void );
56 virtual bool serialize(OSSerialize
*s
) const;
58 static void updateOffset( OSDictionary
* dict
,
59 UInt32 value
, const char * name
);
66 kIOLogAttach
= 0x00000001ULL
,
67 kIOLogProbe
= 0x00000002ULL
,
68 kIOLogStart
= 0x00000004ULL
,
69 kIOLogRegister
= 0x00000008ULL
,
70 kIOLogMatch
= 0x00000010ULL
,
71 kIOLogConfig
= 0x00000020ULL
,
72 kIOLogYield
= 0x00000040ULL
,
73 kIOLogPower
= 0x00000080ULL
,
74 kIOLogMapping
= 0x00000100ULL
,
75 kIOLogCatalogue
= 0x00000200ULL
,
76 kIOLogTracePower
= 0x00000400ULL
,
78 kIOLogServiceTree
= 0x00001000ULL
,
79 kIOLogDTree
= 0x00002000ULL
,
80 kIOLogMemory
= 0x00004000ULL
,
81 // available = 0x00008000ULL,
82 kOSLogRegistryMods
= 0x00010000ULL
, // Log attempts to modify registry collections
84 // debug aids - change behaviour
85 kIONoFreeObjects
= 0x00100000ULL
,
86 kIOLogSynchronous
= 0x00200000ULL
, // IOLog completes synchrounsly
89 extern SInt64 gIOKitDebug
;
95 struct IORegistryPlane
;
96 extern void IOPrintPlane( const struct IORegistryPlane
* plane
);
97 extern void OSPrintMemory( void );
98 #define IOPrintMemory OSPrintMemory
102 #endif /* __cplusplus */
104 #endif /* ! _IOKIT_IOKITDEBUG_H */