This source file includes following definitions.
- putc
- flush
1
2
3
4
5
6
7
8 #include <linux/serial_reg.h>
9
10 #define SERIAL_BASE ((unsigned char *)0xf0000be0)
11
12
13
14
15 static inline void putc(int c)
16 {
17 unsigned char v, *base = SERIAL_BASE;
18
19 do {
20 v = base[UART_LSR << 2];
21 barrier();
22 } while (!(v & UART_LSR_THRE));
23
24 base[UART_TX << 2] = c;
25 }
26
27 static inline void flush(void)
28 {
29 unsigned char v, *base = SERIAL_BASE;
30
31 do {
32 v = base[UART_LSR << 2];
33 barrier();
34 } while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) !=
35 (UART_LSR_TEMT|UART_LSR_THRE));
36 }
37
38
39
40
41 #define arch_decomp_setup()