ReactOS 0.4.16-dev-88-ga65b6ae
|
Go to the source code of this file.
Classes | |
struct | _CIRCULAR_BUFFER |
struct | _SERIAL_DEVICE_EXTENSION |
struct | _WORKITEM_DATA |
Typedefs | |
typedef struct _CIRCULAR_BUFFER | CIRCULAR_BUFFER |
typedef struct _CIRCULAR_BUFFER * | PCIRCULAR_BUFFER |
typedef struct _SERIAL_DEVICE_EXTENSION | SERIAL_DEVICE_EXTENSION |
typedef struct _SERIAL_DEVICE_EXTENSION * | PSERIAL_DEVICE_EXTENSION |
typedef struct _WORKITEM_DATA | WORKITEM_DATA |
typedef struct _WORKITEM_DATA * | PWORKITEM_DATA |
Enumerations | |
enum | SERIAL_DEVICE_STATE { dsStopped , dsStarted , dsPaused , dsRemoved , dsSurpriseRemoved } |
enum | UART_TYPE { UartUnknown , Uart8250 , Uart16450 , Uart16550 , Uart16550A , Uart16650 , Uart16750 } |
#define SI_MSR_RI SERIAL_RI_STATE /* Ring Indicator */ |
#define SR_FCR_14_BYTES (0xC0 | SR_FCR_ENABLE_FIFO) |
#define SR_FCR_1_BYTE (0x00 | SR_FCR_ENABLE_FIFO) |
#define SR_FCR_4_BYTES (0x40 | SR_FCR_ENABLE_FIFO) |
#define SR_FCR_8_BYTES (0x80 | SR_FCR_ENABLE_FIFO) |
#define SR_FCR_CLEAR_RCVR (0x02 | SR_FCR_ENABLE_FIFO) |
#define SR_FCR_CLEAR_XMIT (0x04 | SR_FCR_ENABLE_FIFO) |
#define SR_IIR_DATA_RECEIVED (SR_IIR_SELF | 4) |
#define SR_IIR_ERROR (SR_IIR_SELF | 6) |
#define SR_IIR_MSR_CHANGE SR_IIR_SELF |
#define SR_IIR_THR_EMPTY (SR_IIR_SELF | 2) |
#define SR_MCR_DTR SERIAL_DTR_STATE |
#define SR_MCR_RTS SERIAL_RTS_STATE |
#define SR_MSR_CTS SERIAL_CTS_STATE /* Clear To Send */ |
#define SR_MSR_DCD SERIAL_DCD_STATE /* Data Carrier Detect */ |
typedef struct _CIRCULAR_BUFFER CIRCULAR_BUFFER |
typedef struct _CIRCULAR_BUFFER * PCIRCULAR_BUFFER |
typedef struct _WORKITEM_DATA * PWORKITEM_DATA |
typedef struct _WORKITEM_DATA WORKITEM_DATA |
Enumerator | |
---|---|
UartUnknown | |
Uart8250 | |
Uart16450 | |
Uart16550 | |
Uart16550A | |
Uart16650 | |
Uart16750 |
NTSTATUS FreeCircularBuffer | ( | IN PCIRCULAR_BUFFER | pBuffer | ) |
ULONG GetNumberOfElementsInCircularBuffer | ( | IN PCIRCULAR_BUFFER | pBuffer | ) |
NTSTATUS IncreaseCircularBufferSize | ( | IN PCIRCULAR_BUFFER | pBuffer, |
IN ULONG | NewBufferSize | ||
) |
Definition at line 91 of file circularbuffer.c.
Referenced by SerialDeviceControl().
NTSTATUS InitializeCircularBuffer | ( | IN PCIRCULAR_BUFFER | pBuffer, |
IN ULONG | BufferSize | ||
) |
Definition at line 15 of file circularbuffer.c.
Referenced by SerialAddDeviceInternal().
BOOLEAN IsCircularBufferEmpty | ( | IN PCIRCULAR_BUFFER | pBuffer | ) |
Definition at line 41 of file circularbuffer.c.
Referenced by PopCircularBufferEntry(), ReadBytes(), and SerialSendByte().
NTSTATUS PopCircularBufferEntry | ( | IN PCIRCULAR_BUFFER | pBuffer, |
OUT PUCHAR | Entry | ||
) |
Definition at line 76 of file circularbuffer.c.
Referenced by ReadBytes(), and SerialSendByte().
NTSTATUS PushCircularBufferEntry | ( | IN PCIRCULAR_BUFFER | pBuffer, |
IN UCHAR | Entry | ||
) |
Definition at line 59 of file circularbuffer.c.
Referenced by SerialReceiveByte(), and SerialWrite().
NTSTATUS NTAPI SerialAddDeviceInternal | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PDEVICE_OBJECT | Pdo, | ||
IN UART_TYPE | UartType, | ||
IN PULONG pComPortNumber | OPTIONAL, | ||
OUT PDEVICE_OBJECT *pFdo | OPTIONAL | ||
) |
Definition at line 18 of file pnp.c.
Referenced by SerialAddDevice().
VOID NTAPI SerialCompleteIrp | ( | IN PKDPC | Dpc, |
IN PVOID | pDeviceExtension, | ||
IN PVOID | pIrp, | ||
IN PVOID | Unused | ||
) |
Definition at line 105 of file misc.c.
Referenced by SerialAddDeviceInternal().
Definition at line 16 of file legacy.c.
Referenced by SerialPnpStartDevice().
NTSTATUS NTAPI SerialPnpStartDevice | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PCM_RESOURCE_LIST | ResourceList, | ||
IN PCM_RESOURCE_LIST | ResourceListTranslated | ||
) |
Definition at line 136 of file pnp.c.
Referenced by SerialPnp().
VOID NTAPI SerialReceiveByte | ( | IN PKDPC | Dpc, |
IN PVOID | pDeviceExtension, | ||
IN PVOID | Unused1, | ||
IN PVOID | Unused2 | ||
) |
Definition at line 30 of file misc.c.
Referenced by SerialAddDeviceInternal().
VOID NTAPI SerialSendByte | ( | IN PKDPC | Dpc, |
IN PVOID | pDeviceExtension, | ||
IN PVOID | Unused1, | ||
IN PVOID | Unused2 | ||
) |
Definition at line 67 of file misc.c.
Referenced by SerialAddDeviceInternal(), and SerialWrite().
NTSTATUS NTAPI SerialSetBaudRate | ( | IN PSERIAL_DEVICE_EXTENSION | DeviceExtension, |
IN ULONG | NewBaudRate | ||
) |
Definition at line 50 of file devctrl.c.
Referenced by SerialDeviceControl(), and SerialPnpStartDevice().
NTSTATUS NTAPI SerialSetLineControl | ( | IN PSERIAL_DEVICE_EXTENSION | DeviceExtension, |
IN PSERIAL_LINE_CONTROL | NewSettings | ||
) |
Definition at line 88 of file devctrl.c.
Referenced by SerialDeviceControl(), and SerialPnpStartDevice().
DRIVER_DISPATCH ForwardIrpAndForget |
DRIVER_ADD_DEVICE SerialAddDevice |
Definition at line 280 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialCleanup |
Definition at line 209 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialClose |
Definition at line 213 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialCreate |
Definition at line 217 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialDeviceControl |
Definition at line 221 of file serial.h.
Referenced by DriverEntry().
KSERVICE_ROUTINE SerialInterruptService |
Definition at line 268 of file serial.h.
Referenced by SerialPnpStartDevice().
DRIVER_DISPATCH SerialPnp |
Definition at line 288 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialPower |
Definition at line 292 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialQueryInformation |
Definition at line 235 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialRead |
Definition at line 296 of file serial.h.
Referenced by DriverEntry().
DRIVER_DISPATCH SerialWrite |
Definition at line 297 of file serial.h.
Referenced by DriverEntry().