drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / sgi-ip30 / ip30-console.c
bloba5f10097b985920f746fe986dfc69bb400d08dd7
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/io.h>
4 #include <linux/processor.h>
6 #include <asm/sn/ioc3.h>
7 #include <asm/setup.h>
9 static inline struct ioc3_uartregs *console_uart(void)
11 struct ioc3 *ioc3;
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)
22 cpu_relax();
24 writeb(c, &uart->iu_thr);