1 // SPDX-License-Identifier: GPL-2.0
5 #include <asm/sn/ioc3.h>
7 static inline struct ioc3_uartregs *console_uart(void)
11 ioc3 = (struct ioc3 *)((void *)(0x900000001f600000));
12 return &ioc3->sregs.uarta;
15 void prom_putchar(char c)
17 struct ioc3_uartregs *uart = console_uart();
19 while ((readb(&uart->iu_lsr) & 0x20) == 0)
22 writeb(c, &uart->iu_thr);