447{
462
463 TRACE_(SERENUM,
"SerenumDetectLegacyDevice(DeviceObject %p, LowerDevice %p)\n",
465 LowerDevice);
466
468
469
471 LowerDevice,
474 0,
479
480
481 TRACE_(SERENUM,
"Reset UART\n");
482 Mcr = 0;
486
487
488 TRACE_(SERENUM,
"Set communications parameters\n");
489
490 Fcr = 0;
494
495 BaudRate = 1200;
497 &BaudRate,
sizeof(BaudRate),
NULL,
NULL);
499
506
507
508 TRACE_(SERENUM,
"Flush receive buffer\n");
513
515
516
517 TRACE_(SERENUM,
"Enable DTR/RTS\n");
524
525
526 TRACE_(SERENUM,
"Set timeout to 500 microseconds\n");
532 &Timeouts,
sizeof(Timeouts),
NULL,
NULL);
534
535
536 TRACE_(SERENUM,
"Fill the read buffer\n");
539
543 {
545 {
546
547
548
549
557 goto ByeBye;
558 }
560 {
561
563 {
564
566 goto ByeBye;
567 }
569 {
570 case '3':
571
572
573
577 break;
578 default:
579
580
581
585 break;
586 }
591 goto ByeBye;
592 }
593 }
594
596
597ByeBye:
598
602}
NTSTATUS SerenumInitMultiSzString(OUT PUNICODE_STRING Destination,...)
ULONG ReportDetectedDevice
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
#define OBJ_KERNEL_HANDLE
#define SERIAL_PURGE_RXCLEAR
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define IOCTL_SERIAL_SET_LINE_CONTROL
#define IOCTL_SERIAL_SET_TIMEOUTS
#define IOCTL_SERIAL_SET_MODEM_CONTROL
#define IOCTL_SERIAL_SET_FIFO_CONTROL
#define IOCTL_SERIAL_SET_BAUD_RATE
#define IOCTL_SERIAL_SET_DTR
#define IOCTL_SERIAL_SET_RTS
NTSTATUS NTAPI ObOpenObjectByPointer(IN PVOID Object, IN ULONG HandleAttributes, IN PACCESS_STATE PassedAccessState, IN ACCESS_MASK DesiredAccess, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, OUT PHANDLE Handle)
ULONG WriteTotalTimeoutMultiplier
ULONG ReadTotalTimeoutConstant
ULONG WriteTotalTimeoutConstant
ULONG ReadTotalTimeoutMultiplier
ULONG ReadIntervalTimeout
#define STATUS_DEVICE_NOT_CONNECTED
_In_ WDFDPC _In_ BOOLEAN Wait