|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 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. ! 11: * ! 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 ! 18: * under the License. ! 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: ! 42: class IOKitDiagnostics : public OSObject ! 43: { ! 44: OSDeclareDefaultStructors(IOKitDiagnostics) ! 45: ! 46: public: ! 47: static OSObject * diagnostics( void ); ! 48: virtual bool serialize(OSSerialize *s) const; ! 49: private: ! 50: static void updateOffset( OSDictionary * dict, ! 51: UInt32 value, const char * name ); ! 52: }; ! 53: ! 54: #endif ! 55: ! 56: #ifdef __cplusplus ! 57: extern "C" { ! 58: #endif ! 59: ! 60: enum { ! 61: // loggage ! 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, ! 72: ! 73: kIOLogServiceTree = 0x00001000ULL, ! 74: kIOLogDTree = 0x00002000ULL, ! 75: kIOLogMemory = 0x00004000ULL, ! 76: ! 77: // debug aids - change behaviour ! 78: kIONoFreeObjects = 0x00100000ULL ! 79: }; ! 80: ! 81: extern SInt64 gIOKitDebug; ! 82: extern char iokit_version[]; ! 83: ! 84: struct IORegistryPlane; ! 85: extern void IOPrintPlane( const struct IORegistryPlane * plane ); ! 86: extern void OSPrintMemory( void ); ! 87: #define IOPrintMemory OSPrintMemory ! 88: ! 89: #ifdef __cplusplus ! 90: } /* extern "C" */ ! 91: #endif /* __cplusplus */ ! 92: ! 93: #endif /* ! _IOKIT_IOKITDEBUG_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.