]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOTimeStamp.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 #ifndef IOKIT_IOTIMESTAMP_H
26 #define IOKIT_IOTIMESTAMP_H
28 #include <sys/kdebug.h>
31 IOTimeStampStartConstant(unsigned int csc
,
32 unsigned int a
= 0, unsigned int b
= 0,
33 unsigned int c
= 0, unsigned int d
= 0)
35 KERNEL_DEBUG_CONSTANT(csc
| DBG_FUNC_START
, a
, b
, c
, d
, 0);
39 IOTimeStampEndConstant(unsigned int csc
,
40 unsigned int a
= 0, unsigned int b
= 0,
41 unsigned int c
= 0, unsigned int d
= 0)
43 KERNEL_DEBUG_CONSTANT(csc
| DBG_FUNC_END
, a
, b
, c
, d
, 0);
47 IOTimeStampConstant(unsigned int csc
,
48 unsigned int a
= 0, unsigned int b
= 0,
49 unsigned int c
= 0, unsigned int d
= 0)
51 KERNEL_DEBUG_CONSTANT(csc
| DBG_FUNC_NONE
, a
, b
, c
, d
, 0);
57 IOTimeStampStart(unsigned int csc
,
58 unsigned int a
= 0, unsigned int b
= 0,
59 unsigned int c
= 0, unsigned int d
= 0)
61 KERNEL_DEBUG(csc
| DBG_FUNC_START
, a
, b
, c
, d
, 0);
65 IOTimeStampEnd(unsigned int csc
,
66 unsigned int a
= 0, unsigned int b
= 0,
67 unsigned int c
= 0, unsigned int d
= 0)
69 KERNEL_DEBUG(csc
| DBG_FUNC_END
, a
, b
, c
, d
, 0);
73 IOTimeStamp(unsigned int csc
,
74 unsigned int a
= 0, unsigned int b
= 0,
75 unsigned int c
= 0, unsigned int d
= 0)
77 KERNEL_DEBUG(csc
| DBG_FUNC_NONE
, a
, b
, c
, d
, 0);
82 #define IODBG_SCSI(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSCSI, code))
83 #define IODBG_DISK(code) (KDBG_CODE(DBG_IOKIT, DBG_IODISK, code))
84 #define IODBG_NETWORK(code) (KDBG_CODE(DBG_IOKIT, DBG_IONETWORK, code))
85 #define IODBG_KEYBOARD(code) (KDBG_CODE(DBG_IOKIT, DBG_IOKEYBOARD, code))
86 #define IODBG_POINTING(code) (KDBG_CODE(DBG_IOKIT, DBG_IOPOINTING, code))
87 #define IODBG_AUDIO(code) (KDBG_CODE(DBG_IOKIT, DBG_IOAUDIO, code))
88 #define IODBG_FLOPPY(code) (KDBG_CODE(DBG_IOKIT, DBG_IOFLOPPY, code))
89 #define IODBG_SERIAL(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSERIAL, code))
90 #define IODBG_TTY(code) (KDBG_CODE(DBG_IOKIT, DBG_IOTTY, code))
92 /* IOKit infrastructure subclasses */
93 #define IODBG_WORKLOOP(code) (KDBG_CODE(DBG_IOKIT, DBG_IOWORKLOOP, code))
94 #define IODBG_INTES(code) (KDBG_CODE(DBG_IOKIT, DBG_IOINTES, code))
95 #define IODBG_TIMES(code) (KDBG_CODE(DBG_IOKIT, DBG_IOCLKES, code))
96 #define IODBG_CMDQ(code) (KDBG_CODE(DBG_IOKIT, DBG_IOCMDQ, code))
97 #define IODBG_MCURS(code) (KDBG_CODE(DBG_IOKIT, DBG_IOMCURS, code))
98 #define IODBG_MDESC(code) (KDBG_CODE(DBG_IOKIT, DBG_IOMDESC, code))
99 #define IODBG_POWER(code) (KDBG_CODE(DBG_IOKIT, DBG_IOPOWER, code))
101 /* IOKit specific codes - within each subclass */
103 /* DBG_IOKIT/DBG_IOSCSI codes */
105 /* DBG_IOKIT/DBG_IODISK codes */
107 /* DBG_IOKIT/DBG_IONETWORK codes */
109 /* DBG_IOKIT/DBG_IOKEYBOARD codes */
111 /* DBG_IOKIT/DBG_IOPOINTING codes */
113 /* DBG_IOKIT/DBG_IOAUDIO codes */
115 /* DBG_IOKIT/DBG_IOFLOPPY codes */
117 /* DBG_IOKIT/DBG_IOSERIAL codes */
119 /* DBG_IOKIT/DBG_IOTTY codes */
121 /* DBG_IOKIT/DBG_IOWORKLOOP codes */
122 #define IOWL_CLIENT 1 /* 0x050a0004 */
123 #define IOWL_WORK 2 /* 0x050a0008 */
125 /* DBG_IOKIT/DBG_IOINTES codes */
126 #define IOINTES_CLIENT 1 /* 0x050b0004 */
127 #define IOINTES_LAT 2 /* 0x050b0008 */
128 #define IOINTES_SEMA 3 /* 0x050b000c */
129 #define IOINTES_INTCTXT 4 /* 0x050b0010 */
130 #define IOINTES_INTFLTR 5 /* 0x050b0014 */
131 #define IOINTES_ACTION 6 /* 0x050b0018 */
132 #define IOINTES_FILTER 7 /* 0x050b001c */
134 /* DBG_IOKIT/DBG_IOTIMES codes */
135 #define IOTIMES_CLIENT 1 /* 0x050c0004 */
136 #define IOTIMES_LAT 2 /* 0x050c0008 */
137 #define IOTIMES_SEMA 3 /* 0x050c000c */
138 #define IOTIMES_ACTION 4 /* 0x050c0010 */
140 /* DBG_IOKIT/DBG_IOCMDQ codes */
141 #define IOCMDQ_CLIENT 1 /* 0x050d0004 */
142 #define IOCMDQ_LAT 2 /* 0x050d0008 */
143 #define IOCMDQ_SEMA 3 /* 0x050d000c */
144 #define IOCMDQ_PSEMA 4 /* 0x050d0010 */
145 #define IOCMDQ_PLOCK 5 /* 0x050d0014 */
146 #define IOCMDQ_ACTION 6 /* 0x050d0018 */
148 /* DBG_IOKIT/DBG_IOMCURS codes */
150 /* DBG_IOKIT/DBG_IOMDESC codes */
152 /* DBG_IOKIT/DBG_IOPOWER codes */
153 #define IOPOWER_ROOT 1 /* 0x05100004 */
154 #define IOPOWER_WAKE 2 /* 0x05100008 */
155 #define IOPOWER_STATE 3 /* 0x0510000c */
156 #define IOPOWER_ACK 4 /* 0x05100010 */
157 #define IOPOWER_CLIENT 5 /* 0x05100014 */
159 #endif /* ! IOKIT_IOTIMESTAMP_H */