]>
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 * 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.
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
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
30 #ifndef _IOKIT_IOKITDEBUG_H
31 #define _IOKIT_IOKITDEBUG_H
33 #include <IOKit/IOTypes.h>
38 #include <libkern/c++/OSObject.h>
39 #include <libkern/c++/OSDictionary.h>
40 #include <libkern/c++/OSSerialize.h>
42 class IOKitDiagnostics
: public OSObject
44 OSDeclareDefaultStructors(IOKitDiagnostics
)
47 static OSObject
* diagnostics( void );
48 virtual bool serialize(OSSerialize
*s
) const;
50 static void updateOffset( OSDictionary
* dict
,
51 UInt32 value
, const char * name
);
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
,
68 kIOLogTracePower
= 0x00000400ULL
,
70 kIOLogServiceTree
= 0x00001000ULL
,
71 kIOLogDTree
= 0x00002000ULL
,
72 kIOLogMemory
= 0x00004000ULL
,
74 // debug aids - change behaviour
75 kIONoFreeObjects
= 0x00100000ULL
,
76 kIOLogSynchronous
= 0x00200000ULL
, // IOLog completes synchrounsly
79 extern SInt64 gIOKitDebug
;
80 extern char iokit_version
[];
86 struct IORegistryPlane
;
87 extern void IOPrintPlane( const struct IORegistryPlane
* plane
);
88 extern void OSPrintMemory( void );
89 #define IOPrintMemory OSPrintMemory
93 #endif /* __cplusplus */
95 #endif /* ! _IOKIT_IOKITDEBUG_H */