ReactOS 0.4.16-dev-2528-g7139e57
serial.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SER_8251A_REG_DATA   0x30
 
#define SER_8251A_REG_STATUS   0x32
 
#define SR_8251A_STATUS_TxRDY   0x01 /* Transmitter ready */
 
#define SR_8251A_STATUS_RxRDY   0x02 /* Receiver ready */
 
#define SR_8251A_STATUS_TxEMPTY   0x04 /* Transmitter empty */
 
#define SR_8251A_STATUS_PE   0x08 /* Parity error */
 
#define SR_8251A_STATUS_OE   0x10 /* Overrun error */
 
#define SR_8251A_STATUS_FE   0x20 /* Framing error */
 
#define SR_8251A_STATUS_SYNDET   0x40 /* Sync detect / Break detect */
 
#define SR_8251A_STATUS_DSR   0x80 /* Data set ready */
 
#define SR_8251A_MODE_PEN   0x10 /* Parity enable */
 
#define SR_8251A_MODE_EP   0x20 /* Even parity generation/check */
 
#define SR_8251A_MODE_ESD   0x40 /* External sync detect */
 
#define SR_8251A_MODE_SCS   0x80 /* Single character sync */
 
#define SR_8251A_MODE_LENGTH_5   0x00
 
#define SR_8251A_MODE_LENGTH_6   0x04
 
#define SR_8251A_MODE_LENGTH_7   0x08
 
#define SR_8251A_MODE_LENGTH_8   0x0C
 
#define SR_8251A_MODE_SYNC   0x00
 
#define SR_8251A_MODE_CLOCKx1   0x01
 
#define SR_8251A_MODE_CLOCKx16   0x02
 
#define SR_8251A_MODE_CLOCKx64   0x03
 
#define SR_8251A_MODE_1_STOP   0x40
 
#define SR_8251A_MODE_1_5_STOP   0x80
 
#define SR_8251A_MODE_2_STOP   0xC0
 
#define SR_8251A_COMMMAND_TxEN   0x01 /* Transmit enable */
 
#define SR_8251A_COMMMAND_DTR   0x02 /* Data terminal ready */
 
#define SR_8251A_COMMMAND_RxEN   0x04 /* Receive enable */
 
#define SR_8251A_COMMMAND_SBRK   0x08 /* Send break character */
 
#define SR_8251A_COMMMAND_ER   0x10 /* Error reset */
 
#define SR_8251A_COMMMAND_RTS   0x20 /* Request to send */
 
#define SR_8251A_COMMMAND_IR   0x40 /* Internal reset */
 
#define SR_8251A_COMMMAND_EH   0x80 /* Enter hunt mode */
 
#define SER_8251F_REG_RBR   0x130 /* Receive Buffer */
 
#define SER_8251F_REG_LSR   0x132 /* Line Status */
 
#define SER_8251F_REG_MSR   0x134 /* Modem Status */
 
#define SER_8251F_REG_IIR   0x136 /* Interrupt ID */
 
#define SER_8251F_REG_FCR   0x138 /* FIFO Control */
 
#define SER_8251F_REG_DLR   0x13A /* Divisor Latch */
 
#define SR_8251F_LSR_TxEMPTY   0x01 /* Transmitter empty */
 
#define SR_8251F_LSR_TxRDY   0x02 /* Transmitter ready */
 
#define SR_8251F_LSR_RxRDY   0x04 /* Receiver ready */
 
#define SR_8251F_LSR_OE   0x10 /* Overrun error */
 
#define SR_8251F_LSR_PE   0x20 /* Parity error */
 
#define SR_8251F_LSR_BI   0x80 /* Break detect */
 
#define SR_8251F_MSR_CTS_CHANGED   0x01 /* Change in clear to send */
 
#define SR_8251F_MSR_DSR_CHANGED   0x02 /* Change in data set ready */
 
#define SR_8251F_MSR_RI_CHANGED   0x04 /* Trailing edge ring indicator */
 
#define SR_8251F_MSR_DCD_CHANGED   0x08 /* Change in carrier detect */
 
#define SR_8251F_MSR_CTS   0x10 /* Clear to send */
 
#define SR_8251F_MSR_DSR   0x20 /* Data set ready */
 
#define SR_8251F_MSR_RI   0x40 /* Ring indicator */
 
#define SR_8251F_MSR_DCD   0x80 /* Data carrier detect */
 
#define SR_8251F_IIR_MS   0x00 /* Modem status change */
 
#define SR_8251F_IIR_THR   0x02 /* Transmitter holding register empty */
 
#define SR_8251F_IIR_RDA   0x04 /* Received data acailable */
 
#define SR_8251F_IIR_RLS   0x06 /* Receiver line status change */
 
#define SR_8251F_IIR_CTI   0x0C /* Character timeout */
 
#define SR_8251F_IIR_ID_MASK   0x0F
 
#define SR_8251F_IIR_SELF   0x01 /* No interrupt pending */
 
#define SR_8251F_IIR_MUST_BE_ZERO   0x20
 
#define SR_8251F_IIR_FIFO_DET   0x40 /* Toggles for each read */
 
#define SR_8251F_FCR_DISABLE   0x00 /* Disable FIFO */
 
#define SR_8251F_FCR_ENABLE   0x01 /* Enable FIFO */
 
#define SR_8251F_FCR_RCVR_RESET   0x02 /* Clear receive FIFO */
 
#define SR_8251F_FCR_TXMT_RESET   0x04 /* Clear transmit FIFO */
 
#define SR_8251F_FCR_1_BYTE_HIGH_WATER   0x00
 
#define SR_8251F_FCR_4_BYTE_HIGH_WATER   0x40
 
#define SR_8251F_FCR_8_BYTE_HIGH_WATER   0x80
 
#define SR_8251F_FCR_14_BYTE_HIGH_WATER   0xC0
 
#define SR_8251F_DLR_BAUD_115200   0x01
 
#define SR_8251F_DLR_BAUD_57600   0x02
 
#define SR_8251F_DLR_BAUD_38400   0x03
 
#define SR_8251F_DLR_BAUD_28800   0x04
 
#define SR_8251F_DLR_BAUD_19200   0x06
 
#define SR_8251F_DLR_BAUD_14400   0x08
 
#define SR_8251F_DLR_BAUD_9600   0x0C
 
#define SR_8251F_DLR_MODE_VFAST   0x80
 
#define SR_8251F_DLR_MODE_LEGACY   0x00
 

Macro Definition Documentation

◆ SER_8251A_REG_DATA

#define SER_8251A_REG_DATA   0x30

Definition at line 10 of file serial.h.

◆ SER_8251A_REG_STATUS

#define SER_8251A_REG_STATUS   0x32

Definition at line 11 of file serial.h.

◆ SER_8251F_REG_DLR

#define SER_8251F_REG_DLR   0x13A /* Divisor Latch */

Definition at line 56 of file serial.h.

◆ SER_8251F_REG_FCR

#define SER_8251F_REG_FCR   0x138 /* FIFO Control */

Definition at line 55 of file serial.h.

◆ SER_8251F_REG_IIR

#define SER_8251F_REG_IIR   0x136 /* Interrupt ID */

Definition at line 54 of file serial.h.

◆ SER_8251F_REG_LSR

#define SER_8251F_REG_LSR   0x132 /* Line Status */

Definition at line 52 of file serial.h.

◆ SER_8251F_REG_MSR

#define SER_8251F_REG_MSR   0x134 /* Modem Status */

Definition at line 53 of file serial.h.

◆ SER_8251F_REG_RBR

#define SER_8251F_REG_RBR   0x130 /* Receive Buffer */

Definition at line 51 of file serial.h.

◆ SR_8251A_COMMMAND_DTR

#define SR_8251A_COMMMAND_DTR   0x02 /* Data terminal ready */

Definition at line 43 of file serial.h.

◆ SR_8251A_COMMMAND_EH

#define SR_8251A_COMMMAND_EH   0x80 /* Enter hunt mode */

Definition at line 49 of file serial.h.

◆ SR_8251A_COMMMAND_ER

#define SR_8251A_COMMMAND_ER   0x10 /* Error reset */

Definition at line 46 of file serial.h.

◆ SR_8251A_COMMMAND_IR

#define SR_8251A_COMMMAND_IR   0x40 /* Internal reset */

Definition at line 48 of file serial.h.

◆ SR_8251A_COMMMAND_RTS

#define SR_8251A_COMMMAND_RTS   0x20 /* Request to send */

Definition at line 47 of file serial.h.

◆ SR_8251A_COMMMAND_RxEN

#define SR_8251A_COMMMAND_RxEN   0x04 /* Receive enable */

Definition at line 44 of file serial.h.

◆ SR_8251A_COMMMAND_SBRK

#define SR_8251A_COMMMAND_SBRK   0x08 /* Send break character */

Definition at line 45 of file serial.h.

◆ SR_8251A_COMMMAND_TxEN

#define SR_8251A_COMMMAND_TxEN   0x01 /* Transmit enable */

Definition at line 42 of file serial.h.

◆ SR_8251A_MODE_1_5_STOP

#define SR_8251A_MODE_1_5_STOP   0x80

Definition at line 39 of file serial.h.

◆ SR_8251A_MODE_1_STOP

#define SR_8251A_MODE_1_STOP   0x40

Definition at line 38 of file serial.h.

◆ SR_8251A_MODE_2_STOP

#define SR_8251A_MODE_2_STOP   0xC0

Definition at line 40 of file serial.h.

◆ SR_8251A_MODE_CLOCKx1

#define SR_8251A_MODE_CLOCKx1   0x01

Definition at line 34 of file serial.h.

◆ SR_8251A_MODE_CLOCKx16

#define SR_8251A_MODE_CLOCKx16   0x02

Definition at line 35 of file serial.h.

◆ SR_8251A_MODE_CLOCKx64

#define SR_8251A_MODE_CLOCKx64   0x03

Definition at line 36 of file serial.h.

◆ SR_8251A_MODE_EP

#define SR_8251A_MODE_EP   0x20 /* Even parity generation/check */

Definition at line 24 of file serial.h.

◆ SR_8251A_MODE_ESD

#define SR_8251A_MODE_ESD   0x40 /* External sync detect */

Definition at line 25 of file serial.h.

◆ SR_8251A_MODE_LENGTH_5

#define SR_8251A_MODE_LENGTH_5   0x00

Definition at line 28 of file serial.h.

◆ SR_8251A_MODE_LENGTH_6

#define SR_8251A_MODE_LENGTH_6   0x04

Definition at line 29 of file serial.h.

◆ SR_8251A_MODE_LENGTH_7

#define SR_8251A_MODE_LENGTH_7   0x08

Definition at line 30 of file serial.h.

◆ SR_8251A_MODE_LENGTH_8

#define SR_8251A_MODE_LENGTH_8   0x0C

Definition at line 31 of file serial.h.

◆ SR_8251A_MODE_PEN

#define SR_8251A_MODE_PEN   0x10 /* Parity enable */

Definition at line 23 of file serial.h.

◆ SR_8251A_MODE_SCS

#define SR_8251A_MODE_SCS   0x80 /* Single character sync */

Definition at line 26 of file serial.h.

◆ SR_8251A_MODE_SYNC

#define SR_8251A_MODE_SYNC   0x00

Definition at line 33 of file serial.h.

◆ SR_8251A_STATUS_DSR

#define SR_8251A_STATUS_DSR   0x80 /* Data set ready */

Definition at line 20 of file serial.h.

◆ SR_8251A_STATUS_FE

#define SR_8251A_STATUS_FE   0x20 /* Framing error */

Definition at line 18 of file serial.h.

◆ SR_8251A_STATUS_OE

#define SR_8251A_STATUS_OE   0x10 /* Overrun error */

Definition at line 17 of file serial.h.

◆ SR_8251A_STATUS_PE

#define SR_8251A_STATUS_PE   0x08 /* Parity error */

Definition at line 16 of file serial.h.

◆ SR_8251A_STATUS_RxRDY

#define SR_8251A_STATUS_RxRDY   0x02 /* Receiver ready */

Definition at line 14 of file serial.h.

◆ SR_8251A_STATUS_SYNDET

#define SR_8251A_STATUS_SYNDET   0x40 /* Sync detect / Break detect */

Definition at line 19 of file serial.h.

◆ SR_8251A_STATUS_TxEMPTY

#define SR_8251A_STATUS_TxEMPTY   0x04 /* Transmitter empty */

Definition at line 15 of file serial.h.

◆ SR_8251A_STATUS_TxRDY

#define SR_8251A_STATUS_TxRDY   0x01 /* Transmitter ready */

Definition at line 13 of file serial.h.

◆ SR_8251F_DLR_BAUD_115200

#define SR_8251F_DLR_BAUD_115200   0x01

Definition at line 94 of file serial.h.

◆ SR_8251F_DLR_BAUD_14400

#define SR_8251F_DLR_BAUD_14400   0x08

Definition at line 99 of file serial.h.

◆ SR_8251F_DLR_BAUD_19200

#define SR_8251F_DLR_BAUD_19200   0x06

Definition at line 98 of file serial.h.

◆ SR_8251F_DLR_BAUD_28800

#define SR_8251F_DLR_BAUD_28800   0x04

Definition at line 97 of file serial.h.

◆ SR_8251F_DLR_BAUD_38400

#define SR_8251F_DLR_BAUD_38400   0x03

Definition at line 96 of file serial.h.

◆ SR_8251F_DLR_BAUD_57600

#define SR_8251F_DLR_BAUD_57600   0x02

Definition at line 95 of file serial.h.

◆ SR_8251F_DLR_BAUD_9600

#define SR_8251F_DLR_BAUD_9600   0x0C

Definition at line 100 of file serial.h.

◆ SR_8251F_DLR_MODE_LEGACY

#define SR_8251F_DLR_MODE_LEGACY   0x00

Definition at line 102 of file serial.h.

◆ SR_8251F_DLR_MODE_VFAST

#define SR_8251F_DLR_MODE_VFAST   0x80

Definition at line 101 of file serial.h.

◆ SR_8251F_FCR_14_BYTE_HIGH_WATER

#define SR_8251F_FCR_14_BYTE_HIGH_WATER   0xC0

Definition at line 92 of file serial.h.

◆ SR_8251F_FCR_1_BYTE_HIGH_WATER

#define SR_8251F_FCR_1_BYTE_HIGH_WATER   0x00

Definition at line 89 of file serial.h.

◆ SR_8251F_FCR_4_BYTE_HIGH_WATER

#define SR_8251F_FCR_4_BYTE_HIGH_WATER   0x40

Definition at line 90 of file serial.h.

◆ SR_8251F_FCR_8_BYTE_HIGH_WATER

#define SR_8251F_FCR_8_BYTE_HIGH_WATER   0x80

Definition at line 91 of file serial.h.

◆ SR_8251F_FCR_DISABLE

#define SR_8251F_FCR_DISABLE   0x00 /* Disable FIFO */

Definition at line 84 of file serial.h.

◆ SR_8251F_FCR_ENABLE

#define SR_8251F_FCR_ENABLE   0x01 /* Enable FIFO */

Definition at line 85 of file serial.h.

◆ SR_8251F_FCR_RCVR_RESET

#define SR_8251F_FCR_RCVR_RESET   0x02 /* Clear receive FIFO */

Definition at line 86 of file serial.h.

◆ SR_8251F_FCR_TXMT_RESET

#define SR_8251F_FCR_TXMT_RESET   0x04 /* Clear transmit FIFO */

Definition at line 87 of file serial.h.

◆ SR_8251F_IIR_CTI

#define SR_8251F_IIR_CTI   0x0C /* Character timeout */

Definition at line 78 of file serial.h.

◆ SR_8251F_IIR_FIFO_DET

#define SR_8251F_IIR_FIFO_DET   0x40 /* Toggles for each read */

Definition at line 82 of file serial.h.

◆ SR_8251F_IIR_ID_MASK

#define SR_8251F_IIR_ID_MASK   0x0F

Definition at line 79 of file serial.h.

◆ SR_8251F_IIR_MS

#define SR_8251F_IIR_MS   0x00 /* Modem status change */

Definition at line 74 of file serial.h.

◆ SR_8251F_IIR_MUST_BE_ZERO

#define SR_8251F_IIR_MUST_BE_ZERO   0x20

Definition at line 81 of file serial.h.

◆ SR_8251F_IIR_RDA

#define SR_8251F_IIR_RDA   0x04 /* Received data acailable */

Definition at line 76 of file serial.h.

◆ SR_8251F_IIR_RLS

#define SR_8251F_IIR_RLS   0x06 /* Receiver line status change */

Definition at line 77 of file serial.h.

◆ SR_8251F_IIR_SELF

#define SR_8251F_IIR_SELF   0x01 /* No interrupt pending */

Definition at line 80 of file serial.h.

◆ SR_8251F_IIR_THR

#define SR_8251F_IIR_THR   0x02 /* Transmitter holding register empty */

Definition at line 75 of file serial.h.

◆ SR_8251F_LSR_BI

#define SR_8251F_LSR_BI   0x80 /* Break detect */

Definition at line 63 of file serial.h.

◆ SR_8251F_LSR_OE

#define SR_8251F_LSR_OE   0x10 /* Overrun error */

Definition at line 61 of file serial.h.

◆ SR_8251F_LSR_PE

#define SR_8251F_LSR_PE   0x20 /* Parity error */

Definition at line 62 of file serial.h.

◆ SR_8251F_LSR_RxRDY

#define SR_8251F_LSR_RxRDY   0x04 /* Receiver ready */

Definition at line 60 of file serial.h.

◆ SR_8251F_LSR_TxEMPTY

#define SR_8251F_LSR_TxEMPTY   0x01 /* Transmitter empty */

Definition at line 58 of file serial.h.

◆ SR_8251F_LSR_TxRDY

#define SR_8251F_LSR_TxRDY   0x02 /* Transmitter ready */

Definition at line 59 of file serial.h.

◆ SR_8251F_MSR_CTS

#define SR_8251F_MSR_CTS   0x10 /* Clear to send */

Definition at line 69 of file serial.h.

◆ SR_8251F_MSR_CTS_CHANGED

#define SR_8251F_MSR_CTS_CHANGED   0x01 /* Change in clear to send */

Definition at line 65 of file serial.h.

◆ SR_8251F_MSR_DCD

#define SR_8251F_MSR_DCD   0x80 /* Data carrier detect */

Definition at line 72 of file serial.h.

◆ SR_8251F_MSR_DCD_CHANGED

#define SR_8251F_MSR_DCD_CHANGED   0x08 /* Change in carrier detect */

Definition at line 68 of file serial.h.

◆ SR_8251F_MSR_DSR

#define SR_8251F_MSR_DSR   0x20 /* Data set ready */

Definition at line 70 of file serial.h.

◆ SR_8251F_MSR_DSR_CHANGED

#define SR_8251F_MSR_DSR_CHANGED   0x02 /* Change in data set ready */

Definition at line 66 of file serial.h.

◆ SR_8251F_MSR_RI

#define SR_8251F_MSR_RI   0x40 /* Ring indicator */

Definition at line 71 of file serial.h.

◆ SR_8251F_MSR_RI_CHANGED

#define SR_8251F_MSR_RI_CHANGED   0x04 /* Trailing edge ring indicator */

Definition at line 67 of file serial.h.