ReactOS 0.4.16-dev-297-gc569aee
kdserial.c File Reference
#include <ntoskrnl.h>
#include "kd.h"
Include dependency graph for kdserial.c:

Go to the source code of this file.

Functions

VOID KdbpSendCommandSerial (_In_ PCSTR Command)
 
CHAR KdbpTryGetCharSerial (_In_ ULONG Retry)
 

Function Documentation

◆ KdbpSendCommandSerial()

VOID KdbpSendCommandSerial ( _In_ PCSTR  Command)

Definition at line 17 of file kdserial.c.

19{
20 while (*Command)
22}
VOID NTAPI KdPortPutByteEx(PCPPORT PortInformation, UCHAR ByteToSend)
CPPORT SerialPortInfo
Definition: kdio.c:40
Definition: shell.h:41

Referenced by KdpInitTerminal(), and KdpUpdateTerminalSize().

◆ KdbpTryGetCharSerial()

CHAR KdbpTryGetCharSerial ( _In_ ULONG  Retry)

Definition at line 25 of file kdserial.c.

27{
28 CHAR Result = -1;
29
30 if (Retry == 0)
32 else
33 while (!KdPortGetByteEx(&SerialPortInfo, (PUCHAR)&Result) && Retry-- > 0);
34
35 return Result;
36}
_In_ PSCSI_REQUEST_BLOCK _Out_ NTSTATUS _Inout_ BOOLEAN * Retry
Definition: classpnp.h:312
BOOLEAN NTAPI KdPortGetByteEx(PCPPORT PortInformation, PUCHAR ByteReceived)
unsigned char * PUCHAR
Definition: typedefs.h:53
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409
char CHAR
Definition: xmlstorage.h:175

Referenced by KdpFlushTerminalInput(), KdpInitTerminal(), KdpReadTermKey(), and KdpUpdateTerminalSize().