static void udbg_44x_as1_putc(char c) { if (udbg_comport) { if (c == '\n') udbg_44x_as1_putc('\r'); udbg_44x_as1_flush(); as1_writeb(c, &udbg_comport->thr); eieio(); } }
static void udbg_44x_as1_putc(char c) { if (udbg_comport) { while ((as1_readb(&udbg_comport->lsr) & LSR_THRE) == 0) /* wait for idle */; as1_writeb(c, &udbg_comport->thr); eieio(); if (c == '\n') udbg_44x_as1_putc('\r'); } }
static void udbg_uart_out_44x_as1(unsigned int reg, u8 val) { as1_writeb(val, (void __iomem *)PPC44x_EARLY_DEBUG_VIRTADDR + reg); }