2009-10-22 14:58:33 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: GPL, see COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
|
|
|
* FILE: drivers/base/kddll/kddll.h
|
|
|
|
* PURPOSE: Base definitions for the kernel debugger.
|
2014-12-23 17:48:16 +00:00
|
|
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
2009-10-22 14:58:33 +00:00
|
|
|
*/
|
|
|
|
|
2014-02-06 11:18:34 +00:00
|
|
|
#ifndef _KDDLL_H_
|
|
|
|
#define _KDDLL_H_
|
|
|
|
|
2009-10-22 14:58:33 +00:00
|
|
|
#define NOEXTAPI
|
2010-03-31 15:19:01 +00:00
|
|
|
#include <ntifs.h>
|
2013-04-21 23:56:15 +00:00
|
|
|
#include <windbgkd.h>
|
2009-10-22 14:58:33 +00:00
|
|
|
|
2015-12-20 16:21:59 +00:00
|
|
|
// #define KDDEBUG /* uncomment to enable debugging this dll */
|
2009-10-22 14:58:33 +00:00
|
|
|
|
2013-04-21 23:56:15 +00:00
|
|
|
#ifndef KDDEBUG
|
|
|
|
#define KDDBGPRINT(...)
|
|
|
|
#else
|
2015-12-20 16:21:59 +00:00
|
|
|
extern ULONG KdpDbgPrint(const char* Format, ...);
|
2013-04-21 23:56:15 +00:00
|
|
|
#define KDDBGPRINT KdpDbgPrint
|
|
|
|
#endif
|
|
|
|
|
2009-10-22 14:58:33 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
KDP_PACKET_RECEIVED = 0,
|
2015-12-20 16:21:59 +00:00
|
|
|
KDP_PACKET_TIMEOUT = 1,
|
|
|
|
KDP_PACKET_RESEND = 2
|
2009-10-22 14:58:33 +00:00
|
|
|
} KDP_STATUS;
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpSendBuffer(
|
|
|
|
IN PVOID Buffer,
|
|
|
|
IN ULONG Size);
|
|
|
|
|
|
|
|
KDP_STATUS
|
|
|
|
NTAPI
|
|
|
|
KdpReceiveBuffer(
|
|
|
|
OUT PVOID Buffer,
|
|
|
|
IN ULONG Size);
|
|
|
|
|
|
|
|
KDP_STATUS
|
|
|
|
NTAPI
|
|
|
|
KdpReceivePacketLeader(
|
|
|
|
OUT PULONG PacketLeader);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2013-04-21 23:56:15 +00:00
|
|
|
KdpSendByte(IN UCHAR Byte);
|
2009-10-22 14:58:33 +00:00
|
|
|
|
|
|
|
KDP_STATUS
|
|
|
|
NTAPI
|
2013-04-21 23:56:15 +00:00
|
|
|
KdpPollByte(OUT PUCHAR OutByte);
|
2009-10-22 14:58:33 +00:00
|
|
|
|
|
|
|
KDP_STATUS
|
|
|
|
NTAPI
|
2013-04-21 23:56:15 +00:00
|
|
|
KdpReceiveByte(OUT PUCHAR OutByte);
|
2009-10-22 14:58:33 +00:00
|
|
|
|
|
|
|
KDP_STATUS
|
|
|
|
NTAPI
|
2011-03-15 18:41:17 +00:00
|
|
|
KdpPollBreakIn(VOID);
|
2009-10-22 14:58:33 +00:00
|
|
|
|
2014-02-06 11:18:34 +00:00
|
|
|
#endif /* _KDDLL_H_ */
|