5b8285f7b89ab5db2f612de57a124677f15493a6
[reactos.git] / reactos / include / ndk / kdtypes.h
1 /*++ NDK Version: 0095
2
3 Copyright (c) Alex Ionescu. All rights reserved.
4
5 Header Name:
6
7 kdtypes.h
8
9 Abstract:
10
11 Type definitions for the Kernel Debugger.
12
13 Author:
14
15 Alex Ionescu (alex.ionescu@reactos.com) 06-Oct-2004
16
17 --*/
18
19 #ifndef _KDTYPES_H
20 #define _KDTYPES_H
21
22 //
23 // Dependencies
24 //
25 #include <umtypes.h>
26
27 //
28 // Debug Filter Levels
29 //
30 #define DPFLTR_ERROR_LEVEL 0
31 #define DPFLTR_WARNING_LEVEL 1
32 #define DPFLTR_TRACE_LEVEL 2
33 #define DPFLTR_INFO_LEVEL 3
34 #define DPFLTR_MASK 0x80000000
35
36 //
37 // Debug Status Codes
38 //
39 #define DBG_STATUS_CONTROL_C 1
40 #define DBG_STATUS_SYSRQ 2
41 #define DBG_STATUS_BUGCHECK_FIRST 3
42 #define DBG_STATUS_BUGCHECK_SECOND 4
43 #define DBG_STATUS_FATAL 5
44 #define DBG_STATUS_DEBUG_CONTROL 6
45 #define DBG_STATUS_WORKER 7
46
47 //
48 // DebugService Control Types
49 //
50 #define BREAKPOINT_PRINT 1
51 #define BREAKPOINT_PROMPT 2
52 #define BREAKPOINT_LOAD_SYMBOLS 3
53 #define BREAKPOINT_UNLOAD_SYMBOLS 4
54
55 //
56 // Debug Control Codes for NtSystemDebugcontrol
57 //
58 typedef enum _DEBUG_CONTROL_CODE
59 {
60 DebugGetTraceInformation = 1,
61 DebugSetInternalBreakpoint,
62 DebugSetSpecialCall,
63 DebugClearSpecialCalls,
64 DebugQuerySpecialCalls,
65 DebugDbgBreakPoint,
66 DebugDbgLoadSymbols
67 } DEBUG_CONTROL_CODE;
68
69 //
70 // Kernel Debugger Port Definition
71 //
72 typedef struct _KD_PORT_INFORMATION
73 {
74 ULONG ComPort;
75 ULONG BaudRate;
76 ULONG BaseAddress;
77 } KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
78
79 #endif // _KDTYPES_H