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 */
22 #include <ioaccess.h> /* port intrinsics */
24 long atol(const char *str
);
26 typedef UCHAR BYTE
, *PBYTE
;
28 typedef ULONG (*PFNDBGPRNT
)(const char *Format
, ...);
29 extern PFNDBGPRNT KdpDbgPrint
;
30 extern BOOLEAN KdpPhase1Complete
;
31 extern ULONG KdpStallScaleFactor
;
35 KDP_PACKET_RECEIVED
= 0,
36 KDP_PACKET_TIMEOUT
= 1,
41 #define KDDBGPRINT(...)
43 #define KDDBGPRINT KdpDbgPrint
60 KdpReceivePacketLeader(
61 OUT PULONG PacketLeader
);
65 KdpSendByte(IN BYTE Byte
);
69 KdpPollByte(OUT PBYTE OutByte
);
73 KdpReceiveByte(OUT PBYTE OutByte
);
83 KdDebuggerInitialize0(
84 IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL
);