.. | .. |
---|
9 | 9 | #include <asm/page.h> |
---|
10 | 10 | #include <asm/setup.h> |
---|
11 | 11 | #include <asm/sn/addrs.h> |
---|
12 | | -#include <asm/sn/sn0/hub.h> |
---|
| 12 | +#include <asm/sn/agent.h> |
---|
13 | 13 | #include <asm/sn/klconfig.h> |
---|
14 | 14 | #include <asm/sn/ioc3.h> |
---|
15 | | -#include <asm/sn/sn_private.h> |
---|
16 | 15 | |
---|
17 | 16 | #include <linux/serial.h> |
---|
18 | 17 | #include <linux/serial_core.h> |
---|
| 18 | + |
---|
| 19 | +#include "ip27-common.h" |
---|
19 | 20 | |
---|
20 | 21 | #define IOC3_CLK (22000000 / 3) |
---|
21 | 22 | #define IOC3_FLAGS (0) |
---|
.. | .. |
---|
35 | 36 | { |
---|
36 | 37 | struct ioc3_uartregs *uart = console_uart(); |
---|
37 | 38 | |
---|
38 | | - while ((uart->iu_lsr & 0x20) == 0); |
---|
39 | | - uart->iu_thr = c; |
---|
| 39 | + while ((readb(&uart->iu_lsr) & 0x20) == 0) |
---|
| 40 | + ; |
---|
| 41 | + writeb(c, &uart->iu_thr); |
---|
40 | 42 | } |
---|