28 void BSP_uart_init(
int uart,
int baud,
int hwFlow);
29 void BSP_uart_set_baud(
int aurt,
int baud);
30 void BSP_uart_intr_ctrl(
int uart,
int cmd);
31 void BSP_uart_throttle(
int uart);
32 void BSP_uart_unthrottle(
int uart);
33 int BSP_uart_polled_status(
int uart);
34 void BSP_uart_polled_write(
int uart,
int val);
35 int BSP_uart_polled_read(
int uart);
36 void BSP_uart_termios_set(
int uart,
void *ttyp);
37 int BSP_uart_termios_write_com1(
int minor,
const char *buf,
int len);
38 int BSP_uart_termios_write_com2(
int minor,
const char *buf,
int len);
39 void BSP_uart_termios_isr_com1(
void);
40 void BSP_uart_termios_isr_com2(
void);
41 void BSP_uart_dbgisr_com1(
void);
42 void BSP_uart_dbgisr_com2(
void);
43 extern unsigned BSP_poll_char_via_serial(
void);
44 extern void BSP_output_char_via_serial(
int val);
45 extern int BSPConsolePort;
46 extern int BSPBaseBaud;
52 #define BSP_UART_INTR_CTRL_DISABLE (0) 53 #define BSP_UART_INTR_CTRL_GDB (0xaa) 54 #define BSP_UART_INTR_CTRL_ENABLE (0xbb) 55 #define BSP_UART_INTR_CTRL_TERMIOS (0xcc) 58 #define BSP_UART_STATUS_ERROR (-1) 59 #define BSP_UART_STATUS_NOCHAR (0) 60 #define BSP_UART_STATUS_CHAR (1) 61 #define BSP_UART_STATUS_BREAK (2) 64 #define BSP_UART_COM1 (0) 65 #define BSP_UART_COM2 (1) 71 #define COM1_BASE_IO 0x3F8 72 #define COM2_BASE_IO 0x2F8 105 #define NO_MORE_INTR 1 106 #define TRANSMITTER_HODING_REGISTER_EMPTY 2 107 #define RECEIVER_DATA_AVAIL 4 108 #define RECEIVER_ERROR 6 109 #define CHARACTER_TIMEOUT_INDICATION 12 114 #define RECEIVE_ENABLE 0x1 115 #define TRANSMIT_ENABLE 0x2 116 #define RECEIVER_LINE_ST_ENABLE 0x4 117 #define INTERRUPT_DISABLE 0x0 151 #define FIFO_CTRL 0x01 153 #define XMIT_RESET 0x04 154 #define RCV_RESET 0x02 157 #define RECEIVE_FIFO_TRIGGER1 0x0 158 #define RECEIVE_FIFO_TRIGGER4 0x40 159 #define RECEIVE_FIFO_TRIGGER8 0x80 160 #define RECEIVE_FIFO_TRIGGER12 0xc0 161 #define TRIG_LEVEL 0xc0 Interface to Kernel Print Methods.