Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

serial_reg.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define UART_RX   0
#define UART_TX   0
#define UART_DLL   0
#define UART_DLM   1
#define UART_IER   1
#define UART_IIR   2
#define UART_FCR   2
#define UART_EFR   2
#define UART_LCR   3
#define UART_MCR   4
#define UART_LSR   5
#define UART_MSR   6
#define UART_SCR   7
#define UART_FCR_ENABLE_FIFO   0x01
#define UART_FCR_CLEAR_RCVR   0x02
#define UART_FCR_CLEAR_XMIT   0x04
#define UART_FCR_DMA_SELECT   0x08
#define UART_FCR_TRIGGER_MASK   0xC0
#define UART_FCR_TRIGGER_1   0x00
#define UART_FCR_TRIGGER_4   0x40
#define UART_FCR_TRIGGER_8   0x80
#define UART_FCR_TRIGGER_14   0xC0
#define UART_FCR6_R_TRIGGER_8   0x00
#define UART_FCR6_R_TRIGGER_16   0x40
#define UART_FCR6_R_TRIGGER_24   0x80
#define UART_FCR6_R_TRIGGER_28   0xC0
#define UART_FCR6_T_TRIGGER_16   0x00
#define UART_FCR6_T_TRIGGER_8   0x10
#define UART_FCR6_T_TRIGGER_24   0x20
#define UART_FCR6_T_TRIGGER_30   0x30
#define UART_FCR7_64BYTE   0x20
#define UART_LCR_DLAB   0x80
#define UART_LCR_SBC   0x40
#define UART_LCR_SPAR   0x20
#define UART_LCR_EPAR   0x10
#define UART_LCR_PARITY   0x08
#define UART_LCR_STOP   0x04
#define UART_LCR_WLEN5   0x00
#define UART_LCR_WLEN6   0x01
#define UART_LCR_WLEN7   0x02
#define UART_LCR_WLEN8   0x03
#define UART_LSR_TEMT   0x40
#define UART_LSR_THRE   0x20
#define UART_LSR_BI   0x10
#define UART_LSR_FE   0x08
#define UART_LSR_PE   0x04
#define UART_LSR_OE   0x02
#define UART_LSR_DR   0x01
#define UART_IIR_NO_INT   0x01
#define UART_IIR_ID   0x06
#define UART_IIR_MSI   0x00
#define UART_IIR_THRI   0x02
#define UART_IIR_RDI   0x04
#define UART_IIR_RLSI   0x06
#define UART_IER_MSI   0x08
#define UART_IER_RLSI   0x04
#define UART_IER_THRI   0x02
#define UART_IER_RDI   0x01
#define UART_IERX_SLEEP   0x10
#define UART_MCR_LOOP   0x10
#define UART_MCR_OUT2   0x08
#define UART_MCR_OUT1   0x04
#define UART_MCR_RTS   0x02
#define UART_MCR_DTR   0x01
#define UART_MSR_DCD   0x80
#define UART_MSR_RI   0x40
#define UART_MSR_DSR   0x20
#define UART_MSR_CTS   0x10
#define UART_MSR_DDCD   0x08
#define UART_MSR_TERI   0x04
#define UART_MSR_DDSR   0x02
#define UART_MSR_DCTS   0x01
#define UART_MSR_ANY_DELTA   0x0F
#define UART_EFR_CTS   0x80
#define UART_EFR_RTS   0x40
#define UART_EFR_SCD   0x20
#define UART_EFR_ECB   0x10


Define Documentation

#define UART_DLL   0
 

Definition at line 19 of file serial_reg.h.

#define UART_DLM   1
 

Definition at line 20 of file serial_reg.h.

#define UART_EFR   2
 

Definition at line 24 of file serial_reg.h.

Referenced by autoconfig(), change_speed(), mxser_get_ISA_conf(), shutdown(), and startup().

#define UART_EFR_CTS   0x80
 

Definition at line 135 of file serial_reg.h.

Referenced by change_speed().

#define UART_EFR_ECB   0x10
 

Definition at line 138 of file serial_reg.h.

Referenced by shutdown(), and startup().

#define UART_EFR_RTS   0x40
 

Definition at line 136 of file serial_reg.h.

#define UART_EFR_SCD   0x20
 

Definition at line 137 of file serial_reg.h.

#define UART_FCR   2
 

Definition at line 23 of file serial_reg.h.

#define UART_FCR6_R_TRIGGER_16   0x40
 

Definition at line 47 of file serial_reg.h.

#define UART_FCR6_R_TRIGGER_24   0x80
 

Definition at line 48 of file serial_reg.h.

#define UART_FCR6_R_TRIGGER_28   0xC0
 

Definition at line 49 of file serial_reg.h.

#define UART_FCR6_R_TRIGGER_8   0x00
 

Definition at line 46 of file serial_reg.h.

#define UART_FCR6_T_TRIGGER_16   0x00
 

Definition at line 50 of file serial_reg.h.

#define UART_FCR6_T_TRIGGER_24   0x20
 

Definition at line 52 of file serial_reg.h.

#define UART_FCR6_T_TRIGGER_30   0x30
 

Definition at line 53 of file serial_reg.h.

#define UART_FCR6_T_TRIGGER_8   0x10
 

Definition at line 51 of file serial_reg.h.

#define UART_FCR7_64BYTE   0x20
 

Definition at line 55 of file serial_reg.h.

Referenced by autoconfig(), and change_speed().

#define UART_FCR_CLEAR_RCVR   0x02
 

Definition at line 37 of file serial_reg.h.

Referenced by autoconfig(), irport_write_wakeup(), mshutdown(), mstartup(), mxser_shutdown(), mxser_startup(), shutdown(), and startup().

#define UART_FCR_CLEAR_XMIT   0x04
 

Definition at line 38 of file serial_reg.h.

Referenced by autoconfig(), mshutdown(), mstartup(), mxser_shutdown(), mxser_startup(), shutdown(), and startup().

#define UART_FCR_DMA_SELECT   0x08
 

Definition at line 39 of file serial_reg.h.

#define UART_FCR_ENABLE_FIFO   0x01
 

Definition at line 36 of file serial_reg.h.

Referenced by autoconfig(), change_speed(), irport_change_speed(), irport_write_wakeup(), mxser_change_speed(), and mxser_get_ISA_conf().

#define UART_FCR_TRIGGER_1   0x00
 

Definition at line 41 of file serial_reg.h.

Referenced by change_speed(), irport_change_speed(), irport_write_wakeup(), and mxser_change_speed().

#define UART_FCR_TRIGGER_14   0xC0
 

Definition at line 44 of file serial_reg.h.

Referenced by irport_change_speed(), irport_write_wakeup(), and mxser_change_speed().

#define UART_FCR_TRIGGER_4   0x40
 

Definition at line 42 of file serial_reg.h.

Referenced by mxser_change_speed().

#define UART_FCR_TRIGGER_8   0x80
 

Definition at line 43 of file serial_reg.h.

Referenced by change_speed(), and mxser_change_speed().

#define UART_FCR_TRIGGER_MASK   0xC0
 

Definition at line 40 of file serial_reg.h.

#define UART_IER   1
 

Definition at line 21 of file serial_reg.h.

#define UART_IER_MSI   0x08
 

Definition at line 99 of file serial_reg.h.

Referenced by change_speed(), mstartup(), mxser_change_speed(), mxser_startup(), and startup().

#define UART_IER_RDI   0x01
 

Definition at line 102 of file serial_reg.h.

Referenced by irport_change_speed(), irport_start(), irport_write_wakeup(), mstartup(), mxser_startup(), rs_close(), rs_interrupt_single(), rs_throttle(), rs_unthrottle(), set_esp_config(), and startup().

#define UART_IER_RLSI   0x04
 

Definition at line 100 of file serial_reg.h.

Referenced by irport_start(), mstartup(), mxser_close(), mxser_startup(), rs_close(), startup(), and su_close().

#define UART_IER_THRI   0x02
 

Definition at line 101 of file serial_reg.h.

Referenced by check_modem_status(), irport_hard_xmit(), irport_start(), modem_write_cmd(), mxser_check_modem_status(), mxser_flush_chars(), mxser_start(), mxser_stop(), mxser_throttle(), mxser_transmit_chars(), mxser_unthrottle(), mxser_write(), rs_flush_chars(), rs_interrupt_single(), rs_send_xchar(), rs_start(), rs_stop(), rs_timer(), rs_write(), su_flush_chars(), su_send_xchar(), su_start(), su_stop(), su_write(), transmit_chars(), transmit_chars_dma(), transmit_chars_pio(), and write_modem().

#define UART_IERX_SLEEP   0x10
 

Definition at line 107 of file serial_reg.h.

Referenced by shutdown().

#define UART_IIR   2
 

Definition at line 22 of file serial_reg.h.

#define UART_IIR_ID   0x06
 

Definition at line 89 of file serial_reg.h.

Referenced by irport_interrupt().

#define UART_IIR_MSI   0x00
 

Definition at line 91 of file serial_reg.h.

#define UART_IIR_NO_INT   0x01
 

Definition at line 88 of file serial_reg.h.

Referenced by elsa_interrupt(), elsa_interrupt_ipac(), mxser_interrupt(), rs_interrupt_elsa(), su_kbd_ms_interrupt(), and su_serial_interrupt().

#define UART_IIR_RDI   0x04
 

Definition at line 93 of file serial_reg.h.

Referenced by irport_interrupt().

#define UART_IIR_RLSI   0x06
 

Definition at line 94 of file serial_reg.h.

Referenced by irport_interrupt().

#define UART_IIR_THRI   0x02
 

Definition at line 92 of file serial_reg.h.

Referenced by irport_interrupt().

#define UART_LCR   3
 

Definition at line 26 of file serial_reg.h.

#define UART_LCR_DLAB   0x80
 

Definition at line 63 of file serial_reg.h.

Referenced by autoconfig(), change_speed(), irport_change_speed(), mxser_change_speed(), and mxser_get_ISA_conf().

#define UART_LCR_EPAR   0x10
 

Definition at line 66 of file serial_reg.h.

Referenced by change_speed(), isdn_tty_change_speed(), and mxser_change_speed().

#define UART_LCR_PARITY   0x08
 

Definition at line 67 of file serial_reg.h.

Referenced by change_speed(), isdn_tty_change_speed(), and mxser_change_speed().

#define UART_LCR_SBC   0x40
 

Definition at line 64 of file serial_reg.h.

Referenced by mshutdown(), mxser_send_break(), rs_break(), shutdown(), and su_break().

#define UART_LCR_SPAR   0x20
 

Definition at line 65 of file serial_reg.h.

Referenced by change_speed().

#define UART_LCR_STOP   0x04
 

Definition at line 68 of file serial_reg.h.

#define UART_LCR_WLEN5   0x00
 

Definition at line 69 of file serial_reg.h.

#define UART_LCR_WLEN6   0x01
 

Definition at line 70 of file serial_reg.h.

#define UART_LCR_WLEN7   0x02
 

Definition at line 71 of file serial_reg.h.

#define UART_LCR_WLEN8   0x03
 

Definition at line 72 of file serial_reg.h.

Referenced by irport_change_speed(), irport_start(), mstartup(), mxser_startup(), and startup().

#define UART_LSR   5
 

Definition at line 28 of file serial_reg.h.

#define UART_LSR_BI   0x10
 

Definition at line 79 of file serial_reg.h.

Referenced by change_speed(), mxser_change_speed(), mxser_receive_chars(), receive_chars(), receive_serial_chars(), and su_kbd_ms_interrupt().

#define UART_LSR_DR   0x01
 

Definition at line 83 of file serial_reg.h.

Referenced by change_speed(), irport_receive(), mxser_change_speed(), mxser_interrupt(), mxser_receive_chars(), receive_chars(), receive_kbd_ms_chars(), receive_serial_chars(), rs_close(), rs_interrupt_elsa(), su_close(), su_kbd_ms_interrupt(), and su_serial_interrupt().

#define UART_LSR_FE   0x08
 

Definition at line 80 of file serial_reg.h.

Referenced by change_speed(), mxser_change_speed(), mxser_receive_chars(), receive_chars(), and receive_serial_chars().

#define UART_LSR_OE   0x02
 

Definition at line 82 of file serial_reg.h.

Referenced by change_speed(), mxser_change_speed(), mxser_receive_chars(), receive_chars(), and receive_serial_chars().

#define UART_LSR_PE   0x04
 

Definition at line 81 of file serial_reg.h.

Referenced by change_speed(), mxser_change_speed(), mxser_receive_chars(), receive_chars(), and receive_serial_chars().

#define UART_LSR_TEMT   0x40
 

Definition at line 77 of file serial_reg.h.

Referenced by get_lsr_info(), isdn_tty_close(), isdn_tty_get_lsr_info(), isdn_tty_modem_hup(), isdn_tty_senddown(), isdn_tty_stat_callback(), isdn_tty_tint(), isdn_tty_write(), mxser_close(), mxser_get_lsr_info(), rs_wait_until_sent(), and su_wait_until_sent().

#define UART_LSR_THRE   0x20
 

Definition at line 78 of file serial_reg.h.

Referenced by change_speed(), irport_interrupt(), irport_write(), mxser_change_speed(), mxser_interrupt(), rs_interrupt_elsa(), su_put_char_kbd(), and su_serial_interrupt().

#define UART_MCR   4
 

Definition at line 27 of file serial_reg.h.

#define UART_MCR_DTR   0x01
 

Definition at line 116 of file serial_reg.h.

Referenced by block_til_ready(), detect_uart_irq(), get_modem_info(), irport_set_dtr_rts(), irport_start(), isdn_tty_change_speed(), isdn_tty_get_modem_info(), isdn_tty_set_modem_info(), isdn_tty_shutdown(), isdn_tty_startup(), line_info(), mshutdown(), mstartup(), mxser_block_til_ready(), mxser_change_speed(), mxser_get_modem_info(), mxser_set_modem_info(), mxser_shutdown(), mxser_startup(), rs_8xx_set_termios(), rs_set_termios(), set_modem_info(), shutdown(), startup(), and su_set_termios().

#define UART_MCR_LOOP   0x10
 

Definition at line 112 of file serial_reg.h.

Referenced by autoconfig().

#define UART_MCR_OUT1   0x04
 

Definition at line 114 of file serial_reg.h.

Referenced by detect_uart_irq(), get_modem_info(), set_modem_info(), shutdown(), and startup().

#define UART_MCR_OUT2   0x08
 

Definition at line 113 of file serial_reg.h.

Referenced by detect_uart_irq(), get_modem_info(), ircc_dma_xmit(), irport_set_dtr_rts(), irport_start(), isdn_tty_startup(), mshutdown(), mstartup(), set_modem_info(), shutdown(), startup(), and su_outb().

#define UART_MCR_RTS   0x02
 

Definition at line 115 of file serial_reg.h.

Referenced by block_til_ready(), detect_uart_irq(), get_modem_info(), irport_set_dtr_rts(), irport_start(), isdn_tty_get_modem_info(), isdn_tty_readmodem(), isdn_tty_set_modem_info(), isdn_tty_shutdown(), isdn_tty_startup(), isdn_tty_throttle(), isdn_tty_try_read(), isdn_tty_unthrottle(), line_info(), mshutdown(), mstartup(), mxser_block_til_ready(), mxser_get_modem_info(), mxser_set_modem_info(), mxser_shutdown(), mxser_startup(), mxser_throttle(), mxser_unthrottle(), rs_8xx_set_termios(), rs_8xx_throttle(), rs_8xx_unthrottle(), rs_set_termios(), rs_throttle(), rs_unthrottle(), set_modem_info(), shutdown(), startup(), su_set_termios(), su_throttle(), and su_unthrottle().

#define UART_MSR   6
 

Definition at line 29 of file serial_reg.h.

#define UART_MSR_ANY_DELTA   0x0F
 

Definition at line 129 of file serial_reg.h.

Referenced by check_modem_status(), mxser_get_modem_info(), and mxser_interrupt().

#define UART_MSR_CTS   0x10
 

Definition at line 124 of file serial_reg.h.

Referenced by check_modem_status(), get_modem_info(), isdn_tty_get_modem_info(), isdn_tty_senddown(), isdn_tty_startup(), isdn_tty_stat_callback(), isdn_tty_tint(), isdn_tty_write(), line_info(), mxser_check_modem_status(), and mxser_get_modem_info().

#define UART_MSR_DCD   0x80
 

Definition at line 121 of file serial_reg.h.

Referenced by block_til_ready(), check_modem_status(), get_modem_info(), isdn_tty_block_til_ready(), isdn_tty_cmd_ATand(), isdn_tty_get_modem_info(), isdn_tty_modem_hup(), isdn_tty_parse_at(), isdn_tty_stat_callback(), line_info(), mxser_block_til_ready(), mxser_check_modem_status(), and mxser_get_modem_info().

#define UART_MSR_DCTS   0x01
 

Definition at line 128 of file serial_reg.h.

Referenced by check_modem_status(), and mxser_check_modem_status().

#define UART_MSR_DDCD   0x08
 

Definition at line 125 of file serial_reg.h.

Referenced by check_modem_status(), and mxser_check_modem_status().

#define UART_MSR_DDSR   0x02
 

Definition at line 127 of file serial_reg.h.

Referenced by check_modem_status(), and mxser_check_modem_status().

#define UART_MSR_DSR   0x20
 

Definition at line 123 of file serial_reg.h.

Referenced by get_modem_info(), isdn_tty_get_modem_info(), isdn_tty_startup(), line_info(), and mxser_get_modem_info().

#define UART_MSR_RI   0x40
 

Definition at line 122 of file serial_reg.h.

Referenced by get_modem_info(), isdn_tty_cmd_ATA(), isdn_tty_find_icall(), isdn_tty_get_modem_info(), isdn_tty_modem_hup(), isdn_tty_modem_ring(), isdn_tty_parse_at(), isdn_tty_shutdown(), line_info(), and mxser_get_modem_info().

#define UART_MSR_TERI   0x04
 

Definition at line 126 of file serial_reg.h.

Referenced by check_modem_status(), and mxser_check_modem_status().

#define UART_RX   0
 

Definition at line 17 of file serial_reg.h.

Referenced by autoconfig(), change_speed(), detect_uart_irq(), irport_receive(), mshutdown(), mstartup(), mxser_receive_chars(), mxser_shutdown(), mxser_startup(), receive_chars(), receive_kbd_ms_chars(), receive_serial_chars(), shutdown(), and startup().

#define UART_SCR   7
 

Definition at line 30 of file serial_reg.h.

#define UART_TX   0
 

Definition at line 18 of file serial_reg.h.

Referenced by detect_uart_irq(), irport_raw_write(), irport_write(), mxser_transmit_chars(), su_put_char_kbd(), and transmit_chars().