![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 0003 #include <linux/io.h> 0004 0005 #include <asm/sn/ioc3.h> 0006 0007 static inline struct ioc3_uartregs *console_uart(void) 0008 { 0009 struct ioc3 *ioc3; 0010 0011 ioc3 = (struct ioc3 *)((void *)(0x900000001f600000)); 0012 return &ioc3->sregs.uarta; 0013 } 0014 0015 void prom_putchar(char c) 0016 { 0017 struct ioc3_uartregs *uart = console_uart(); 0018 0019 while ((readb(&uart->iu_lsr) & 0x20) == 0) 0020 cpu_relax(); 0021 0022 writeb(c, &uart->iu_thr); 0023 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |