#include <ntoskrnl.h>
#include <debug.h>
#include <cportlib/uartinfo.h>
Go to the source code of this file.
◆ NDEBUG
◆ KdPortGetByteEx()
Definition at line 115 of file kdserial.c.
118{
120}
USHORT NTAPI CpGetByte(_Inout_ PCPPORT Port, _Out_ PUCHAR Byte, _In_ BOOLEAN Wait, _In_ BOOLEAN Poll)
IN CINT OUT PVOID PortInformation
◆ KdPortInitializeEx()
Definition at line 30 of file kdserial.c.
33{
35
36#if 0
37
38
39
40
41 if (!PortInitialized)
42 {
44
45 if (ComPortNumber == 0)
46 {
47
48
49
50
51
52 for (ComPortNumber =
MAX_COM_PORTS; ComPortNumber > 0; ComPortNumber--)
53 {
55 {
57 break;
58 }
59 }
60 if (ComPortNumber == 0)
61 {
64 }
65 }
66
67 PortInitialized =
TRUE;
68 }
69#endif
70
71
72
73
80 {
83 }
84 else
85 {
86#ifndef NDEBUG
89
90
92 "\r\nKernel Debugger: Using COM%lu (Port 0x%p) BaudRate %lu\r\n\r\n",
93 ComPortNumber,
97 {
98
100 }
101
103#endif
104
105#if 0
106
108#endif
110 }
111}
NTSTATUS NTAPI CpInitialize(_Inout_ PCPPORT Port, _In_ PUCHAR Address, _In_ ULONG BaudRate)
BOOLEAN NTAPI CpDoesPortExist(_In_ PUCHAR Address)
#define NT_SUCCESS(StatCode)
NTHALAPI VOID NTAPI HalDisplayString(PUCHAR String)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define DEFAULT_DEBUG_BAUD_RATE
◆ KdPortPutByteEx()
Definition at line 124 of file kdserial.c.
127{
129}
VOID NTAPI CpPutByte(_Inout_ PCPPORT Port, _In_ UCHAR Byte)