]> git.saurik.com Git - apple/xnu.git/blame_incremental - iokit/IOKit/IOKitDebug.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / iokit / IOKit / IOKitDebug.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
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
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
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.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30/*
31 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
32 *
33 * HISTORY
34 *
35 */
36
37
38#ifndef _IOKIT_IOKITDEBUG_H
39#define _IOKIT_IOKITDEBUG_H
40
41#include <IOKit/IOTypes.h>
42
43
44#ifdef __cplusplus
45
46#include <libkern/c++/OSObject.h>
47#include <libkern/c++/OSDictionary.h>
48#include <libkern/c++/OSSerialize.h>
49
50class IOKitDiagnostics : public OSObject
51{
52 OSDeclareDefaultStructors(IOKitDiagnostics)
53
54public:
55 static OSObject * diagnostics( void );
56 virtual bool serialize(OSSerialize *s) const;
57private:
58 static void updateOffset( OSDictionary * dict,
59 UInt32 value, const char * name );
60};
61
62#endif __cplusplus
63
64enum {
65// loggage
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,
77
78 kIOLogServiceTree = 0x00001000ULL,
79 kIOLogDTree = 0x00002000ULL,
80 kIOLogMemory = 0x00004000ULL,
81 // available = 0x00008000ULL,
82 kOSLogRegistryMods = 0x00010000ULL, // Log attempts to modify registry collections
83
84// debug aids - change behaviour
85 kIONoFreeObjects = 0x00100000ULL,
86 kIOLogSynchronous = 0x00200000ULL, // IOLog completes synchrounsly
87};
88
89extern SInt64 gIOKitDebug;
90
91#ifdef __cplusplus
92extern "C" {
93#endif
94
95struct IORegistryPlane;
96extern void IOPrintPlane( const struct IORegistryPlane * plane );
97extern void OSPrintMemory( void );
98#define IOPrintMemory OSPrintMemory
99
100#ifdef __cplusplus
101} /* extern "C" */
102#endif /* __cplusplus */
103
104#endif /* ! _IOKIT_IOKITDEBUG_H */