c5c2a8de01e17b4f950ba50f2ce71448b9cc41ae
[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 BOOLEAN
101 NTAPI
102 KdPortDisableInterrupts(VOID);
103
104 BOOLEAN
105 NTAPI
106 KdPortEnableInterrupts(VOID);
107
108 #endif
109
110 //
111 // Native Calls
112 //
113 NTSYSCALLAPI
114 NTSTATUS
115 NTAPI
116 NtQueryDebugFilterState(
117 ULONG ComponentId,
118 ULONG Level
119 );
120
121 NTSYSAPI
122 NTSTATUS
123 NTAPI
124 NtSetDebugFilterState(
125 ULONG ComponentId,
126 ULONG Level,
127 BOOLEAN State
128 );
129
130 NTSTATUS
131 NTAPI
132 NtSystemDebugControl(
133 DEBUG_CONTROL_CODE ControlCode,
134 PVOID InputBuffer,
135 ULONG InputBufferLength,
136 PVOID OutputBuffer,
137 ULONG OutputBufferLength,
138 PULONG ReturnLength
139 );
140
141 NTSYSCALLAPI
142 NTSTATUS
143 NTAPI
144 ZwQueryDebugFilterState(
145 ULONG ComponentId,
146 ULONG Level
147 );
148
149 NTSYSAPI
150 NTSTATUS
151 NTAPI
152 ZwSetDebugFilterState(
153 ULONG ComponentId,
154 ULONG Level,
155 BOOLEAN State
156 );
157
158 NTSTATUS
159 NTAPI
160 ZwSystemDebugControl(
161 DEBUG_CONTROL_CODE ControlCode,
162 PVOID InputBuffer,
163 ULONG InputBufferLength,
164 PVOID OutputBuffer,
165 ULONG OutputBufferLength,
166 PULONG ReturnLength
167 );
168 #endif