ReactOS 0.4.15-dev-7131-ge4d03f4
kdtypes.h
Go to the documentation of this file.
1/*++ NDK Version: 0098
2
3Copyright (c) Alex Ionescu. All rights reserved.
4
5Header Name:
6
7 kdtypes.h
8
9Abstract:
10
11 Type definitions for the Kernel Debugger.
12
13Author:
14
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
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_BREAK 0
51#define BREAKPOINT_PRINT 1
52#define BREAKPOINT_PROMPT 2
53#define BREAKPOINT_LOAD_SYMBOLS 3
54#define BREAKPOINT_UNLOAD_SYMBOLS 4
55#define BREAKPOINT_COMMAND_STRING 5
56
57//
58// Debug Control Codes for NtSystemDebugcontrol
59//
60typedef enum _SYSDBG_COMMAND
61{
100
101//
102// System Debugger Types
103//
104typedef struct _SYSDBG_PHYSICAL
105{
110
111typedef struct _SYSDBG_VIRTUAL
112{
117
119{
125
126typedef struct _SYSDBG_IO_SPACE
127{
135
136typedef struct _SYSDBG_BUS_DATA
137{
145
146typedef struct _SYSDBG_MSR
147{
151
153{
164
165//
166// KD Structures
167//
168typedef struct _KD_SYMBOLS_INFO
169{
175
176#endif // _KDTYPES_H
enum _INTERFACE_TYPE INTERFACE_TYPE
struct _KD_SYMBOLS_INFO * PKD_SYMBOLS_INFO
struct _SYSDBG_PHYSICAL SYSDBG_PHYSICAL
struct _SYSDBG_MSR * PSYSDBG_MSR
struct _SYSDBG_CONTROL_SPACE * PSYSDBG_CONTROL_SPACE
struct _SYSDBG_BUS_DATA SYSDBG_BUS_DATA
struct _SYSDBG_CONTROL_SPACE SYSDBG_CONTROL_SPACE
struct _SYSDBG_TRIAGE_DUMP * PSYSDBG_TRIAGE_DUMP
struct _SYSDBG_BUS_DATA * PSYSDBG_BUS_DATA
struct _SYSDBG_IO_SPACE SYSDBG_IO_SPACE
struct _SYSDBG_PHYSICAL * PSYSDBG_PHYSICAL
_SYSDBG_COMMAND
Definition: kdtypes.h:61
@ SysDbgCheckLowMemory
Definition: kdtypes.h:82
@ SysDbgQuerySpecialCalls
Definition: kdtypes.h:67
@ SysDbgSetTracepoint
Definition: kdtypes.h:64
@ SysDbgReadPhysical
Definition: kdtypes.h:72
@ SysDbgGetPrintBufferSize
Definition: kdtypes.h:87
@ SysDbgQueryTraceInformation
Definition: kdtypes.h:63
@ SysDbgGetUmAttachPid
Definition: kdtypes.h:97
@ SysDbgClearSpecialCalls
Definition: kdtypes.h:66
@ SysDbgReadMsr
Definition: kdtypes.h:78
@ SysDbgWriteControlSpace
Definition: kdtypes.h:75
@ SysDbgGetKdBlockEnable
Definition: kdtypes.h:92
@ SysDbgWriteBusData
Definition: kdtypes.h:81
@ SysDbgEnableKernelDebugger
Definition: kdtypes.h:83
@ SysDbgWriteVirtual
Definition: kdtypes.h:71
@ SysDbgWritePhysical
Definition: kdtypes.h:73
@ SysDbgGetKdUmExceptionEnable
Definition: kdtypes.h:89
@ SysDbgQueryVersion
Definition: kdtypes.h:69
@ SysDbgReadControlSpace
Definition: kdtypes.h:74
@ SysDbgReadBusData
Definition: kdtypes.h:80
@ SysDbgBreakPoint
Definition: kdtypes.h:68
@ SysDbgSetKdUmExceptionEnable
Definition: kdtypes.h:90
@ SysDbgReadIoSpace
Definition: kdtypes.h:76
@ SysDbgGetAutoKdEnable
Definition: kdtypes.h:85
@ SysDbgWriteMsr
Definition: kdtypes.h:79
@ SysDbgClearUmAttachPid
Definition: kdtypes.h:98
@ SysDbgReadVirtual
Definition: kdtypes.h:70
@ SysDbgSetPrintBufferSize
Definition: kdtypes.h:88
@ SysDbgClearUmBreakPid
Definition: kdtypes.h:96
@ SysDbgQueryModuleInformation
Definition: kdtypes.h:62
@ SysDbgSetAutoKdEnable
Definition: kdtypes.h:86
@ SysDbgGetUmBreakPid
Definition: kdtypes.h:95
@ SysDbgGetTriageDump
Definition: kdtypes.h:91
@ SysDbgDisableKernelDebugger
Definition: kdtypes.h:84
@ SysDbgWriteIoSpace
Definition: kdtypes.h:77
@ SysDbgRegisterForUmBreakInfo
Definition: kdtypes.h:94
@ SysDbgSetSpecialCall
Definition: kdtypes.h:65
@ SysDbgSetKdBlockEnable
Definition: kdtypes.h:93
struct _SYSDBG_IO_SPACE * PSYSDBG_IO_SPACE
struct _SYSDBG_VIRTUAL SYSDBG_VIRTUAL
struct _SYSDBG_VIRTUAL * PSYSDBG_VIRTUAL
struct _KD_SYMBOLS_INFO KD_SYMBOLS_INFO
struct _SYSDBG_MSR SYSDBG_MSR
enum _SYSDBG_COMMAND SYSDBG_COMMAND
struct _SYSDBG_TRIAGE_DUMP SYSDBG_TRIAGE_DUMP
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
enum _BUS_DATA_TYPE BUS_DATA_TYPE
ULONG_PTR ProcessId
Definition: kdtypes.h:171
ULONG SizeOfImage
Definition: kdtypes.h:173
ULONG CheckSum
Definition: kdtypes.h:172
PVOID BaseOfDll
Definition: kdtypes.h:170
ULONG BusNumber
Definition: kdtypes.h:142
ULONG SlotNumber
Definition: kdtypes.h:143
BUS_DATA_TYPE BusDataType
Definition: kdtypes.h:141
ULONGLONG Address
Definition: kdtypes.h:120
INTERFACE_TYPE InterfaceType
Definition: kdtypes.h:131
ULONG BusNumber
Definition: kdtypes.h:132
ULONG AddressSpace
Definition: kdtypes.h:133
ULONGLONG Address
Definition: kdtypes.h:128
ULONG Address
Definition: kdtypes.h:148
ULONGLONG Data
Definition: kdtypes.h:149
PHYSICAL_ADDRESS Address
Definition: kdtypes.h:106
ULONG_PTR BugCheckParam2
Definition: kdtypes.h:157
ULONG ProcessHandles
Definition: kdtypes.h:160
ULONG_PTR BugCheckParam3
Definition: kdtypes.h:158
ULONG_PTR BugCheckParam1
Definition: kdtypes.h:156
ULONG_PTR BugCheckParam4
Definition: kdtypes.h:159
PVOID Address
Definition: kdtypes.h:113
ULONG Request
Definition: kdtypes.h:115
PVOID Buffer
Definition: kdtypes.h:114
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67