102 case 0xB0:
case 0xB3:
case 0xBA:
105 case 0xB1:
case 0xDC:
case 0xDD:
case 0xDE:
case 0xDF:
108 case 0xB2:
case 0xDB:
111 case 0xA9:
case 0xAA:
case 0xBB:
case 0xBC:
case 0xBF:
112 case 0xC0:
case 0xC8:
case 0xC9:
case 0xD9:
case 0xDA:
163 DPRINT1(
"Failed to initialize port through cportlib\n");
194 HeadlessBlock = LoaderBlock->Extension->HeadlessLoaderBlock;
195 if (!HeadlessBlock)
return;
217 DPRINT1(
"EMS on Port %lu (0x%p) at %lu bps\n",
228 DPRINT1(
"PCI Serial Ports not supported\n");
232 DPRINT1(
"FIXME: No Headless logging support\n");
241 DPRINT1(
"Please use other baud rate than 9600bps for now\n");
264 UCHAR DataBuffer[80];
295 (InputBufferSize !=
sizeof(*EnableTerminal)))
350 CommandStr = (
PUCHAR)
"\x1B[2J";
352 CommandStr = (
PUCHAR)
"\x1B[0J";
354 CommandStr = (
PUCHAR)
"\x1B[0K";
356 CommandStr = (
PUCHAR)
"\x1B[0m";
358 CommandStr = (
PUCHAR)
"\x1B[7m";
363 (InputBufferSize !=
sizeof(*SetColor)))
377 CommandStr = DataBuffer;
383 (InputBufferSize !=
sizeof(*CursorPos)))
398 CommandStr = DataBuffer;
415 !(OutputBufferSize) ||
416 (*OutputBufferSize <
sizeof(*GetByte)))
462 !(OutputBufferSize) ||
463 (*OutputBufferSize <
sizeof(*HeadlessInfo)))
492 HeadlessInfo->
Serial.TerminalPortBaseAddress = 0;
#define STATUS_NOT_IMPLEMENTED
#define NT_SUCCESS(StatCode)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define KeReleaseSpinLock(sl, irql)
#define KeAcquireSpinLock(sl, irql)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
@ HeadlessCmdStartBugCheck
@ HeadlessCmdDisplayInverseVideo
@ HeadlessCmdTerminalPoll
@ HeadlessCmdDisplayAttributesOff
@ HeadlessCmdPositionCursor
@ HeadlessCmdEnableTerminal
@ HeadlessCmdClearDisplay
@ HeadlessCmdClearToEndOfLine
@ HeadlessCmdClearToEndOfDisplay
@ HeadlessCmdDoBugCheckProcessing
@ HeadlessCmdCheckForReboot
@ HeadlessCmdSendBlueScreenData
@ HeadlessCmdSetBlueScreenData
@ HeadlessCmdQueryInformation
enum _HEADLESS_CMD HEADLESS_CMD
NTSTATUS NTAPI HeadlessDispatch(IN HEADLESS_CMD Command, IN PVOID InputBuffer, IN SIZE_T InputBufferSize, OUT PVOID OutputBuffer, OUT PSIZE_T OutputBufferSize)
PHEADLESS_GLOBALS HeadlessGlobals
NTSTATUS NTAPI HdlspDispatch(IN HEADLESS_CMD Command, IN PVOID InputBuffer, IN SIZE_T InputBufferSize, OUT PVOID OutputBuffer, OUT PSIZE_T OutputBufferSize)
VOID NTAPI HdlspPutString(IN PUCHAR String)
FORCEINLINE VOID HdlspReleaseGlobalLock(IN KIRQL OldIrql)
VOID NTAPI HdlspPutData(IN PUCHAR Data, IN ULONG DataSize)
VOID NTAPI HeadlessInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
FORCEINLINE KIRQL HdlspAcquireGlobalLock(VOID)
VOID NTAPI HdlspSendStringAtBaud(IN PUCHAR String)
NTSTATUS NTAPI HdlspEnableTerminal(IN BOOLEAN Enable)
VOID NTAPI InbvPortTerminate(IN ULONG PortId)
VOID NTAPI InbvPortPutByte(IN ULONG PortId, IN UCHAR Byte)
BOOLEAN NTAPI InbvPortInitialize(IN ULONG BaudRate, IN ULONG PortNumber, IN PUCHAR PortAddress, OUT PULONG PortId, IN BOOLEAN IsMMIODevice)
VOID NTAPI InbvPortEnableFifo(IN ULONG PortId, IN BOOLEAN Enable)
BOOLEAN NTAPI InbvPortGetByte(IN ULONG PortId, OUT PUCHAR Byte)
BOOLEAN NTAPI InbvPortPollOnly(IN ULONG PortId)
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
NTSTRSAFEVAPI RtlStringCbPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat,...)
PUCHAR TerminalPortAddress
struct _HEADLESS_RSP_QUERY_INFO::@1790::@1792 Serial
HEADLESS_TERM_PORT_TYPE PortType
#define RtlZeroMemory(Destination, Length)
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
#define PCI_INVALID_VENDORID
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql