16#if defined(SARCH_PC98)
17#define DEFAULT_BAUD_RATE 9600
19#define DEFAULT_BAUD_RATE 19200
22#if defined(_M_IX86) || defined(_M_AMD64)
23#if defined(SARCH_PC98)
35#error Unknown architecture
38#define MAX_COM_PORTS (sizeof(BaseArray) / sizeof(BaseArray[0]) - 1)
66 if (ComPortNumber == 0)
74 for (ComPortNumber =
MAX_COM_PORTS; ComPortNumber > 0; ComPortNumber--)
82 if (ComPortNumber == 0)
89 PortInitialized =
TRUE;
114 "\r\nKernel Debugger: Serial port found: COM%ld (Port 0x%p) BaudRate %ld\r\n\r\n",
VOID NTAPI CpPutByte(IN PCPPORT Port, IN UCHAR Byte)
NTSTATUS NTAPI CpInitialize(IN PCPPORT Port, IN PUCHAR Address, IN ULONG BaudRate)
USHORT NTAPI CpGetByte(IN PCPPORT Port, OUT PUCHAR Byte, IN BOOLEAN Wait, IN BOOLEAN Poll)
BOOLEAN NTAPI CpDoesPortExist(IN PUCHAR Address)
#define NT_SUCCESS(StatCode)
IN CINT OUT PVOID PortInformation
static const ULONG BaseArray[]
NTHALAPI VOID NTAPI HalDisplayString(PUCHAR String)
_In_ ULONG _In_ ULONG _In_ ULONG Length
VOID NTAPI KdPortPutByteEx(IN PCPPORT PortInformation, IN UCHAR ByteToSend)
BOOLEAN NTAPI KdPortInitializeEx(IN PCPPORT PortInformation, IN ULONG ComPortNumber)
BOOLEAN NTAPI KdPortGetByteEx(IN PCPPORT PortInformation, OUT PUCHAR ByteReceived)
#define DEFAULT_BAUD_RATE