50 INFO_(SERIAL,
"Byte received on COM%lu: 0x%02x\n",
91 INFO_(SERIAL,
"Byte sent to COM%lu: 0x%02x\n",
143 TRACE_(SERIAL,
"SR_IIR_MSR_CHANGE\n");
168 INFO_(SERIAL,
"SR_MSR_RI_CHANGED changed: now %d\n", MSR &
SI_MSR_RI);
173 INFO_(SERIAL,
"SR_MSR_DCD_CHANGED changed: now %d\n", MSR &
SR_MSR_DCD);
184 TRACE_(SERIAL,
"SR_IIR_THR_EMPTY\n");
195 TRACE_(SERIAL,
"SR_IIR_DATA_RECEIVED\n");
204 if (AlreadyReceivedBytes < Limit && AlreadyReceivedBytes + 1 >=
Limit)
216 TRACE_(SERIAL,
"SR_IIR_ERROR\n");
#define InterlockedIncrement
NTSTATUS PushCircularBufferEntry(IN PCIRCULAR_BUFFER pBuffer, IN UCHAR Entry)
BOOLEAN IsCircularBufferEmpty(IN PCIRCULAR_BUFFER pBuffer)
NTSTATUS PopCircularBufferEntry(IN PCIRCULAR_BUFFER pBuffer, OUT PUCHAR Entry)
ULONG GetNumberOfElementsInCircularBuffer(IN PCIRCULAR_BUFFER pBuffer)
#define NT_SUCCESS(StatCode)
BOOLEAN NTAPI KeInsertQueueDpc(IN PKDPC Dpc, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
VOID NTAPI SerialReceiveByte(IN PKDPC Dpc, IN PVOID pDeviceExtension, IN PVOID Unused1, IN PVOID Unused2)
VOID NTAPI SerialSendByte(IN PKDPC Dpc, IN PVOID pDeviceExtension, IN PVOID Unused1, IN PVOID Unused2)
VOID NTAPI SerialCompleteIrp(IN PKDPC Dpc, IN PVOID pDeviceExtension, IN PVOID pIrp, IN PVOID Unused)
#define SR_MSR_RI_CHANGED
#define SR_IIR_DATA_RECEIVED
#define SR_IIR_MSR_CHANGE
#define SR_MSR_DCD_CHANGED
#define SR_LSR_OVERRUN_ERROR
struct _SERIAL_DEVICE_EXTENSION * PSERIAL_DEVICE_EXTENSION
#define SR_LSR_PARITY_ERROR
#define SR_MSR_DSR_CHANGED
#define SR_MSR_CTS_CHANGED
#define SR_LSR_FRAMING_ERROR
#define SR_IER_DATA_RECEIVED
#define SR_LSR_DATA_RECEIVED
KSERVICE_ROUTINE SerialInterruptService
#define SR_IER_MSR_CHANGE
struct _DEVICE_OBJECT * PDEVICE_OBJECT
#define KeReleaseSpinLock(sl, irql)
#define KeSetEvent(pEvt, foo, foo2)
#define KeAcquireSpinLock(sl, irql)
DRIVER_DISPATCH ForwardIrpAndForget
#define SERIAL_EV_TXEMPTY
#define SERIAL_EV_RX80FULL
#define IoSkipCurrentIrpStackLocation(Irp)
#define IoCompleteRequest
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
union _IRP::@1577 AssociatedIrp
ULONG SerialOverrunErrorCount
ULONG BufferOverrunErrorCount
KSPIN_LOCK OutputBufferLock
KSPIN_LOCK InputBufferLock
KEVENT InputBufferNotEmpty
ULONG BreakInterruptErrorCount
CIRCULAR_BUFFER InputBuffer
CIRCULAR_BUFFER OutputBuffer
SERIALPERF_STATS SerialPerfStats
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFINTERRUPT * Interrupt
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
_In_ LONG _In_ LONG Limit