xnu-517.9.5.tar.gz
[apple/xnu.git] / iokit / IOKit / IOKitDebug.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
e5568f75
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.
1c79356b 11 *
e5568f75
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
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
e5568f75
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.
1c79356b
A
19 *
20 * @APPLE_LICENSE_HEADER_END@
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
42class IOKitDiagnostics : public OSObject
43{
44 OSDeclareDefaultStructors(IOKitDiagnostics)
45
46public:
47 static OSObject * diagnostics( void );
48 virtual bool serialize(OSSerialize *s) const;
49private:
50 static void updateOffset( OSDictionary * dict,
51 UInt32 value, const char * name );
52};
53
55e303ae 54#endif __cplusplus
1c79356b
A
55
56enum {
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,
73
74// debug aids - change behaviour
55e303ae
A
75 kIONoFreeObjects = 0x00100000ULL,
76 kIOLogSynchronous = 0x00200000ULL, // IOLog completes synchrounsly
1c79356b
A
77};
78
79extern SInt64 gIOKitDebug;
80extern char iokit_version[];
81
55e303ae
A
82#ifdef __cplusplus
83extern "C" {
84#endif
85
1c79356b
A
86struct IORegistryPlane;
87extern void IOPrintPlane( const struct IORegistryPlane * plane );
88extern void OSPrintMemory( void );
89#define IOPrintMemory OSPrintMemory
90
91#ifdef __cplusplus
92} /* extern "C" */
93#endif /* __cplusplus */
94
95#endif /* ! _IOKIT_IOKITDEBUG_H */