Lines Matching refs:com_port
58 unsigned long com_port; in serial_init() local
66 com_port = rs_table[chan].port; in serial_init()
71 com_port = (unsigned long)rs_table[chan].iomem_base; in serial_init()
84 lcr = serial_inb(com_port + (UART_LCR << shift)); in serial_init()
87 serial_outb(com_port + (UART_LCR << shift), UART_LCR_DLAB); in serial_init()
88 dlm = serial_inb(com_port + (UART_DLM << shift)); in serial_init()
98 serial_outb(com_port + (UART_LCR << shift), lcr); in serial_init()
102 serial_outb(com_port + (UART_DLL << shift), in serial_init()
104 serial_outb(com_port + (UART_DLM << shift), in serial_init()
107 serial_outb(com_port + (UART_LCR << shift), 0x03); in serial_init()
109 serial_outb(com_port + (UART_MCR << shift), 0x03); in serial_init()
112 serial_outb(com_port + (UART_FCR << shift), 0x07); in serial_init()
115 return (com_port); in serial_init()
119 serial_putc(unsigned long com_port, unsigned char c) in serial_putc() argument
121 while ((serial_inb(com_port + (UART_LSR << shift)) & UART_LSR_THRE) == 0) in serial_putc()
123 serial_outb(com_port, c); in serial_putc()
127 serial_getc(unsigned long com_port) in serial_getc() argument
129 while ((serial_inb(com_port + (UART_LSR << shift)) & UART_LSR_DR) == 0) in serial_getc()
131 return serial_inb(com_port); in serial_getc()
135 serial_tstc(unsigned long com_port) in serial_tstc() argument
137 return ((serial_inb(com_port + (UART_LSR << shift)) & UART_LSR_DR) != 0); in serial_tstc()
141 serial_close(unsigned long com_port) in serial_close() argument