2 * COPYRIGHT: GPL, see COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: drivers/base/kddll/kddll.h
5 * PURPOSE: Base definitions for the kernel debugger.
6 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@ewactos.org)
11 //#define KDDEBUG /* uncomment to enable debugging this dll */
20 #include <ioaccess.h> /* port intrinsics */
25 long atol(const char *str
);
27 typedef UCHAR BYTE
, *PBYTE
;
29 typedef ULONG (*PFNDBGPRNT
)(const char *Format
, ...);
30 extern PFNDBGPRNT KdpDbgPrint
;
31 extern BOOLEAN KdpPhase1Complete
;
32 extern ULONG KdpStallScaleFactor
;
36 KDP_PACKET_RECEIVED
= 0,
37 KDP_PACKET_TIMEOUT
= 1,
42 #define KDDBGPRINT(...)
44 #define KDDBGPRINT KdpDbgPrint
61 KdpReceivePacketLeader(
62 OUT PULONG PacketLeader
);
66 KdpSendByte(IN BYTE Byte
);
70 KdpPollByte(OUT PBYTE OutByte
);
74 KdpReceiveByte(OUT PBYTE OutByte
);
84 KdDebuggerInitialize0(
85 IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL
);