Lines Matching refs:kdb_port_info
36 static struct async_struct kdb_port_info = {0}; variable
56 kdb_port_info.state = ser; in rs_kgdb_hook()
57 kdb_port_info.magic = SERIAL_MAGIC; in rs_kgdb_hook()
58 kdb_port_info.port = ser->port; in rs_kgdb_hook()
59 kdb_port_info.flags = ser->flags; in rs_kgdb_hook()
64 serial_in(&kdb_port_info, UART_LSR); in rs_kgdb_hook()
65 serial_in(&kdb_port_info, UART_RX); in rs_kgdb_hook()
66 serial_in(&kdb_port_info, UART_IIR); in rs_kgdb_hook()
67 serial_in(&kdb_port_info, UART_MSR); in rs_kgdb_hook()
72 serial_out(&kdb_port_info, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ in rs_kgdb_hook()
73 if (kdb_port_info.flags & ASYNC_FOURPORT) { in rs_kgdb_hook()
74 kdb_port_info.MCR = UART_MCR_DTR | UART_MCR_RTS; in rs_kgdb_hook()
77 kdb_port_info.MCR in rs_kgdb_hook()
82 kdb_port_info.MCR = t; /* no interrupts, please */ in rs_kgdb_hook()
83 serial_out(&kdb_port_info, UART_MCR, kdb_port_info.MCR); in rs_kgdb_hook()
91 t = kdb_port_info.state->baud_base / 9600; in rs_kgdb_hook()
93 serial_out(&kdb_port_info, UART_LCR, UART_LCR_WLEN8 | UART_LCR_DLAB); in rs_kgdb_hook()
94 serial_out(&kdb_port_info, UART_DLL, t & 0xff);/* LS of divisor */ in rs_kgdb_hook()
95 serial_out(&kdb_port_info, UART_DLM, t >> 8); /* MS of divisor */ in rs_kgdb_hook()
97 serial_out(&kdb_port_info, UART_LCR, UART_LCR_WLEN8); in rs_kgdb_hook()
113 if (!kdb_port_info.state) { /* need to init device first */ in rs_putDebugChar()
117 while ((serial_in(&kdb_port_info, UART_LSR) & UART_LSR_THRE) == 0) in rs_putDebugChar()
120 serial_out(&kdb_port_info, UART_TX, c); in rs_putDebugChar()
127 if (!kdb_port_info.state) { /* need to init device first */ in rs_getDebugChar()
131 while (!(serial_in(&kdb_port_info, UART_LSR) & 1)) in rs_getDebugChar()
134 return(serial_in(&kdb_port_info, UART_RX)); in rs_getDebugChar()