mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
* Do not include debug.h into the main header. CORE-7716 svn path=/trunk/; revision=61485
71 lines
1.2 KiB
C
71 lines
1.2 KiB
C
/*
|
|
* 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.
|
|
* PROGRAMMER: Timo Kreuzer ([email protected])
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define NOEXTAPI
|
|
#include <ntifs.h>
|
|
#include <arc/arc.h>
|
|
#include <halfuncs.h>
|
|
#include <windbgkd.h>
|
|
#include <wdbgexts.h>
|
|
#include <ioaccess.h> /* port intrinsics */
|
|
|
|
//#define KDDEBUG /* uncomment to enable debugging this dll */
|
|
|
|
typedef ULONG (*PFNDBGPRNT)(const char *Format, ...);
|
|
extern PFNDBGPRNT KdpDbgPrint;
|
|
|
|
#ifndef KDDEBUG
|
|
#define KDDBGPRINT(...)
|
|
#else
|
|
#define KDDBGPRINT KdpDbgPrint
|
|
#endif
|
|
|
|
typedef enum
|
|
{
|
|
KDP_PACKET_RECEIVED = 0,
|
|
KDP_PACKET_TIMEOUT = 1,
|
|
KDP_PACKET_RESEND = 2
|
|
} 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
|
|
KdpSendByte(IN UCHAR Byte);
|
|
|
|
KDP_STATUS
|
|
NTAPI
|
|
KdpPollByte(OUT PUCHAR OutByte);
|
|
|
|
KDP_STATUS
|
|
NTAPI
|
|
KdpReceiveByte(OUT PUCHAR OutByte);
|
|
|
|
KDP_STATUS
|
|
NTAPI
|
|
KdpPollBreakIn(VOID);
|
|
|
|
/* EOF */
|