mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 15:07:53 +00:00
[KDCOM]
- Use the UCHAR type directly instead of using a typedef for defining BYTE. - A little bit of header reorganization. svn path=/trunk/; revision=58824
This commit is contained in:
parent
6515d813b3
commit
5159da237d
|
@ -9,6 +9,9 @@
|
|||
#include "kddll.h"
|
||||
#include <cportlib/cportlib.h>
|
||||
|
||||
long atol(const char *str);
|
||||
|
||||
|
||||
/* Serial debug connection */
|
||||
#define DEFAULT_DEBUG_PORT 2 /* COM2 */
|
||||
#define DEFAULT_DEBUG_COM1_IRQ 4 /* COM1 IRQ */
|
||||
|
@ -166,7 +169,7 @@ KdDebuggerInitialize0(IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KdpSendByte(IN BYTE Byte)
|
||||
KdpSendByte(IN UCHAR Byte)
|
||||
{
|
||||
/* Send the byte */
|
||||
CpPutByte(&KdDebugComPort, Byte);
|
||||
|
@ -174,7 +177,7 @@ KdpSendByte(IN BYTE Byte)
|
|||
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
KdpPollByte(OUT PBYTE OutByte)
|
||||
KdpPollByte(OUT PUCHAR OutByte)
|
||||
{
|
||||
/* Poll the byte */
|
||||
return (CpGetByte(&KdDebugComPort, OutByte, FALSE) == CP_GET_SUCCESS
|
||||
|
@ -184,7 +187,7 @@ KdpPollByte(OUT PBYTE OutByte)
|
|||
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
KdpReceiveByte(OUT PBYTE OutByte)
|
||||
KdpReceiveByte(OUT PUCHAR OutByte)
|
||||
{
|
||||
/* Get the byte */
|
||||
return (CpGetByte(&KdDebugComPort, OutByte, TRUE) == CP_GET_SUCCESS
|
||||
|
|
|
@ -415,3 +415,4 @@ KdSendPacket(
|
|||
CurrentPacketId &= ~SYNC_PACKET_ID;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -8,27 +8,28 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
//#define KDDEBUG /* uncomment to enable debugging this dll */
|
||||
|
||||
#define NOEXTAPI
|
||||
#include <ntifs.h>
|
||||
#include <arc/arc.h>
|
||||
#include <halfuncs.h>
|
||||
#include "arc/arc.h"
|
||||
#include "windbgkd.h"
|
||||
|
||||
#include <windbgkd.h>
|
||||
#include <wdbgexts.h>
|
||||
#include <ioaccess.h> /* port intrinsics */
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
long atol(const char *str);
|
||||
|
||||
typedef UCHAR BYTE, *PBYTE;
|
||||
//#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,
|
||||
|
@ -36,12 +37,6 @@ typedef enum
|
|||
KDP_PACKET_RESEND = 2
|
||||
} KDP_STATUS;
|
||||
|
||||
#ifndef KDDEBUG
|
||||
#define KDDBGPRINT(...)
|
||||
#else
|
||||
#define KDDBGPRINT KdpDbgPrint
|
||||
#endif
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
KdpSendBuffer(
|
||||
|
@ -61,24 +56,18 @@ KdpReceivePacketLeader(
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KdpSendByte(IN BYTE Byte);
|
||||
KdpSendByte(IN UCHAR Byte);
|
||||
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
KdpPollByte(OUT PBYTE OutByte);
|
||||
KdpPollByte(OUT PUCHAR OutByte);
|
||||
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
KdpReceiveByte(OUT PBYTE OutByte);
|
||||
KdpReceiveByte(OUT PUCHAR OutByte);
|
||||
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
KdpPollBreakIn(VOID);
|
||||
|
||||
|
||||
#if 0
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdDebuggerInitialize0(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL);
|
||||
#endif
|
||||
/* EOF */
|
||||
|
|
|
@ -143,3 +143,4 @@ KdpReceivePacketLeader(
|
|||
return KDP_PACKET_RECEIVED;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue