]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOKitDebug.h
3253522725eb13b391d87cac8c690f44d63d02fe
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
);
62 kIOLogAttach
= 0x00000001ULL
,
63 kIOLogProbe
= 0x00000002ULL
,
64 kIOLogStart
= 0x00000004ULL
,
65 kIOLogRegister
= 0x00000008ULL
,
66 kIOLogMatch
= 0x00000010ULL
,
67 kIOLogConfig
= 0x00000020ULL
,
68 kIOLogYield
= 0x00000040ULL
,
69 kIOLogPower
= 0x00000080ULL
,
70 kIOLogMapping
= 0x00000100ULL
,
71 kIOLogCatalogue
= 0x00000200ULL
,
73 kIOLogServiceTree
= 0x00001000ULL
,
74 kIOLogDTree
= 0x00002000ULL
,
75 kIOLogMemory
= 0x00004000ULL
,
77 // debug aids - change behaviour
78 kIONoFreeObjects
= 0x00100000ULL
81 extern SInt64 gIOKitDebug
;
82 extern char iokit_version
[];
84 struct IORegistryPlane
;
85 extern void IOPrintPlane( const struct IORegistryPlane
* plane
);
86 extern void OSPrintMemory( void );
87 #define IOPrintMemory OSPrintMemory
91 #endif /* __cplusplus */
93 #endif /* ! _IOKIT_IOKITDEBUG_H */