Lines Matching refs:kgdb_uart
155 static t_uart_saa9730_regmap *kgdb_uart = (void *)(ATLAS_SAA9730_REG + SAA9730_UART_REGS_ADDR); variable
166 t = INB(&kgdb_uart->Lsr); in saa9730_kgdb_hook()
167 t += INB(&kgdb_uart->Msr); in saa9730_kgdb_hook()
168 t += INB(&kgdb_uart->Thr_Rbr); in saa9730_kgdb_hook()
169 t += INB(&kgdb_uart->Iir_Fcr); in saa9730_kgdb_hook()
175 OUTB(SAA9730_LCR_DATA8, &kgdb_uart->Lcr); in saa9730_kgdb_hook()
178 OUTB(0, &kgdb_uart->BaudDivMsb); /* HACK - Assumes standard crystal */ in saa9730_kgdb_hook()
179 OUTB(23, &kgdb_uart->BaudDivLsb); /* HACK - known for MIPS Atlas */ in saa9730_kgdb_hook()
182 OUTB(SAA9730_MCR_DTR | SAA9730_MCR_RTS, &kgdb_uart->Mcr); in saa9730_kgdb_hook()
193 while (!(INB(&kgdb_uart->Lsr) & SAA9730_LSR_THRE)) in saa9730_putDebugChar()
195 OUTB(c, &kgdb_uart->Thr_Rbr); in saa9730_putDebugChar()
207 while (!(INB(&kgdb_uart->Lsr) & SAA9730_LSR_DR)) in saa9730_getDebugChar()
210 c = INB(&kgdb_uart->Thr_Rbr); in saa9730_getDebugChar()