summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boot/ns16550.h
blob: 4baf4c1c5f4e41f9be9798a14cc68d7b5077538a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * NS16550 Serial Port
 */

struct NS16550
 {
  unsigned char rbr;  /* 0 */
  unsigned char ier;  /* 1 */
  unsigned char fcr;  /* 2 */
  unsigned char lcr;  /* 3 */
  unsigned char mcr;  /* 4 */
  unsigned char lsr;  /* 5 */
  unsigned char msr;  /* 6 */
  unsigned char scr;  /* 7 */
 };

#define thr rbr
#define iir fcr
#define dll rbr
#define dlm ier

#define LSR_DR   0x01  /* Data ready */
#define LSR_OE   0x02  /* Overrun */
#define LSR_PE   0x04  /* Parity error */
#define LSR_FE   0x08  /* Framing error */
#define LSR_BI   0x10  /* Break */
#define LSR_THRE 0x20  /* Xmit holding register empty */
#define LSR_TEMT 0x40  /* Xmitter empty */
#define LSR_ERR  0x80  /* Error */

#define COM1 0x800003F8
#define COM2 0x800002F8
#define COM3 0x800003F8
#define COM4 0x80000388