646739dcf19ce05bd68142b8c0d56ec28c9cb984
[reactos.git] / reactos / include / ndk / kdfuncs.h
1 /*++ NDK Version: 0095
2
3 Copyright (c) Alex Ionescu. All rights reserved.
4
5 Header Name:
6
7 kdfuncs.h
8
9 Abstract:
10
11 Function definitions for the Kernel Debugger.
12
13 Author:
14
15 Alex Ionescu (alex.ionescu@reactos.com) 06-Oct-2004
16
17 --*/
18
19 #ifndef _KDFUNCS_H
20 #define _KDFUNCS_H
21
22 //
23 // Dependencies
24 //
25 #include <umtypes.h>
26 #include <kdtypes.h>
27
28 #ifndef NTOS_MODE_USER
29
30 //
31 // Port Functions
32 //
33 UCHAR
34 NTAPI
35 KdPollBreakIn(VOID);
36
37 BOOLEAN
38 NTAPI
39 KdPortInitialize(
40 PKD_PORT_INFORMATION PortInformation,
41 ULONG Unknown1,
42 ULONG Unknown2
43 );
44
45 BOOLEAN
46 NTAPI
47 KdPortInitializeEx(
48 PKD_PORT_INFORMATION PortInformation,
49 ULONG Unknown1,
50 ULONG Unknown2
51 );
52
53 BOOLEAN
54 NTAPI
55 KdPortGetByte(
56 PUCHAR ByteRecieved
57 );
58
59 BOOLEAN
60 NTAPI
61 KdPortGetByteEx(
62 PKD_PORT_INFORMATION PortInformation,
63 PUCHAR ByteRecieved
64 );
65
66 BOOLEAN
67 NTAPI
68 KdPortPollByte(
69 PUCHAR ByteRecieved
70 );
71
72 BOOLEAN
73 NTAPI
74 KdPortPollByteEx(
75 PKD_PORT_INFORMATION PortInformation,
76 PUCHAR ByteRecieved
77 );
78
79 VOID
80 NTAPI
81 KdPortPutByte(
82 UCHAR ByteToSend
83 );
84
85 VOID
86 NTAPI
87 KdPortPutByteEx(
88 PKD_PORT_INFORMATION PortInformation,
89 UCHAR ByteToSend
90 );
91
92 VOID
93 NTAPI
94 KdPortRestore(VOID);
95
96 VOID
97 NTAPI
98 KdPortSave (VOID);
99
100 VOID
101 NTAPI
102 KdRestore(VOID);
103
104 VOID
105 NTAPI
106 KdSave (VOID);
107
108 BOOLEAN
109 NTAPI
110 KdPortDisableInterrupts(VOID);
111
112 BOOLEAN
113 NTAPI
114 KdPortEnableInterrupts(VOID);
115
116 BOOLEAN
117 NTAPI
118 KdDebuggerInitialize0(
119 IN PLOADER_PARAMETER_BLOCK LoaderBlock
120 );
121
122 #endif
123
124 //
125 // Native Calls
126 //
127 NTSYSCALLAPI
128 NTSTATUS
129 NTAPI
130 NtQueryDebugFilterState(
131 ULONG ComponentId,
132 ULONG Level
133 );
134
135 NTSYSCALLAPI
136 NTSTATUS
137 NTAPI
138 NtSetDebugFilterState(
139 ULONG ComponentId,
140 ULONG Level,
141 BOOLEAN State
142 );
143
144 NTSYSCALLAPI
145 NTSTATUS
146 NTAPI
147 NtSystemDebugControl(
148 DEBUG_CONTROL_CODE ControlCode,
149 PVOID InputBuffer,
150 ULONG InputBufferLength,
151 PVOID OutputBuffer,
152 ULONG OutputBufferLength,
153 PULONG ReturnLength
154 );
155
156 NTSYSAPI
157 NTSTATUS
158 NTAPI
159 ZwQueryDebugFilterState(
160 ULONG ComponentId,
161 ULONG Level
162 );
163
164 NTSYSAPI
165 NTSTATUS
166 NTAPI
167 ZwSetDebugFilterState(
168 ULONG ComponentId,
169 ULONG Level,
170 BOOLEAN State
171 );
172
173 NTSYSAPI
174 NTSTATUS
175 NTAPI
176 ZwSystemDebugControl(
177 DEBUG_CONTROL_CODE ControlCode,
178 PVOID InputBuffer,
179 ULONG InputBufferLength,
180 PVOID OutputBuffer,
181 ULONG OutputBufferLength,
182 PULONG ReturnLength
183 );
184 #endif