1
2
3
4
5
6#ifndef __ASM_ARCH_UART_H
7#define __ASM_ARCH_UART_H
8struct rk_uart {
9 unsigned int rbr;
10 unsigned int ier;
11 unsigned int fcr;
12 unsigned int lcr;
13 unsigned int mcr;
14 unsigned int lsr;
15 unsigned int msr;
16 unsigned int scr;
17 unsigned int reserved1[(0x30 - 0x20) / 4];
18 unsigned int srbr[(0x70 - 0x30) / 4];
19 unsigned int far;
20 unsigned int tfr;
21 unsigned int rfw;
22 unsigned int usr;
23 unsigned int tfl;
24 unsigned int rfl;
25 unsigned int srr;
26 unsigned int srts;
27 unsigned int sbcr;
28 unsigned int sdmam;
29 unsigned int sfe;
30 unsigned int srt;
31 unsigned int stet;
32 unsigned int htx;
33 unsigned int dmasa;
34 unsigned int reserver2[(0xf4 - 0xac) / 4];
35 unsigned int cpr;
36 unsigned int ucv;
37 unsigned int ctr;
38};
39
40void rk_uart_init(void *base);
41void print_hex(unsigned int n);
42void print(char *s);
43#endif
44