1/*
2 * @APPLE_LICENSE_HEADER_START@
3 *
4 * Copyright (c) 2009 Apple Computer, Inc.  All Rights Reserved.
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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23#ifndef _IOKIT_HID_IOHIDFAMILYTRACE_H // {
24#define _IOKIT_HID_IOHIDFAMILYTRACE_H
25
26#include <sys/kdebug.h>
27
28#define IOHID_DEBUG_CODE(code)          IOKDBG_CODE(DBG_IOHID, code)
29#define IOHID_DEBUG(code, a, b, c, d)   KERNEL_DEBUG_CONSTANT(IOHID_DEBUG_CODE(code), a, b, c, d, 0)
30
31enum kIOHIDDebugCodes {
32    kIOHIDDebugCode_Unexpected,                 // 0  0x5230000
33    kIOHIDDebugCode_KeyboardLEDThreadTrigger,
34    kIOHIDDebugCode_KeyboardLEDThreadActive,
35    kIOHIDDebugCode_KeyboardSetParam,
36    kIOHIDDebugCode_KeyboardCapsThreadTrigger,  // 4  0x5230010
37    kIOHIDDebugCode_KeyboardCapsThreadActive,
38    kIOHIDDebugCode_PostEvent,
39    kIOHIDDebugCode_NewUserClient,
40    kIOHIDDebugCode_InturruptReport,            // 8  0x5230020
41    kIOHIDDebugCode_DispatchScroll,
42    kIOHIDDebugCode_DispatchRelativePointer,
43    kIOHIDDebugCode_DispatchAbsolutePointer,
44    kIOHIDDebugCode_DispatchKeyboard,           // 12 0x5230030
45    kIOHIDDebugCode_EjectCallback,
46    kIOHIDDebugCode_CapsCallback,
47    kIOHIDDebugCode_HandleReport,
48    kIOHIDDebugCode_DispatchTabletPointer,      // 16 0x5230040
49    kIOHIDDebugCode_DispatchTabletProx,
50    kIOHIDDebugCode_DispatchHIDEvent,
51    kIOHIDDebugCode_CalculatedCapsDelay,
52    kIOHIDDebugCode_ExtPostEvent,               // 20 0x5230050
53    kIOHIDDebugCode_RelativePointerEventTiming,
54    kIOHIDDebugCode_RelativePointerEventScaling,
55    kIOHIDDebugCode_Profiling,
56    kIOHIDDebugCode_DisplayTickle,              // 24 0x5230060
57    kIOHIDDebugCode_ExtSetLocation,
58    kIOHIDDebugCode_SetCursorPosition,
59    kIOHIDDebugCode_PowerStateChangeEvent,
60    kIOHIDDebugCode_DispatchDigitizer,          // 28 0x5230070
61    kIOHIDDebugCode_Scheduling,
62    kIOHIDDebugCode_Invalid
63};
64
65#endif // _IOKIT_HID_IOHIDFAMILYTRACE_H }
66