1 // SPDX-License-Identifier: GPL-2.0
4 #include <linux/processor.h>
6 #include <asm/sn/ioc3.h>
9 static inline struct ioc3_uartregs
*console_uart(void)
13 ioc3
= (struct ioc3
*)((void *)(0x900000001f600000));
14 return &ioc3
->sregs
.uarta
;
17 void prom_putchar(char c
)
19 struct ioc3_uartregs
*uart
= console_uart();
21 while ((readb(&uart
->iu_lsr
) & 0x20) == 0)
24 writeb(c
, &uart
->iu_thr
);