Mercurial > ecos-v3_0-branch
annotate packages/hal/arm/xscale/iq80310/current/src/diag/cycduart.h @ 2729:74dbf4c3f2e1 after-copyright-change-20090129
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
| author | jlarmour |
|---|---|
| date | Thu, 29 Jan 2009 17:47:46 +0000 |
| parents | 37b0db9e87ca |
| children |
| rev | line source |
|---|---|
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
1 //============================================================================= |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
2 // |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
3 // cycduart.h - Cyclone Diagnostics |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
4 // |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
5 //============================================================================= |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
6 // ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
7 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
8 // This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
9 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
10 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
11 // eCos is free software; you can redistribute it and/or modify it under |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
12 // the terms of the GNU General Public License as published by the Free |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
13 // Software Foundation; either version 2 or (at your option) any later |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
14 // version. |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
15 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
16 // eCos is distributed in the hope that it will be useful, but WITHOUT |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
17 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
18 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
19 // for more details. |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
20 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
21 // You should have received a copy of the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
22 // along with eCos; if not, write to the Free Software Foundation, Inc., |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
23 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
24 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
25 // As a special exception, if other files instantiate templates or use |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
26 // macros or inline functions from this file, or you compile this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
27 // and link it with other works to produce a work based on this file, |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
28 // this file does not by itself cause the resulting work to be covered by |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
29 // the GNU General Public License. However the source code for this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
30 // must still be made available in accordance with section (3) of the GNU |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
31 // General Public License v2. |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
32 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
33 // This exception does not invalidate any other reasons why a work based |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
34 // on this file might be covered by the GNU General Public License. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
35 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
417
diff
changeset
|
36 // ####ECOSGPLCOPYRIGHTEND#### |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
37 //============================================================================= |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
38 //#####DESCRIPTIONBEGIN#### |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
39 // |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
40 // Author(s): Scott Coulter, Jeff Frazier, Eric Breeden |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
41 // Contributors: |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
42 // Date: 2001-01-25 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
43 // Purpose: |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
44 // Description: |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
45 // |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
46 //####DESCRIPTIONEND#### |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
47 // |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
48 //===========================================================================*/ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
49 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
50 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
51 /* Control/status register offsets from base address */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
52 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
53 #define RBR 0x00 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
54 #define THR 0x00 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
55 #define DLL 0x00 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
56 #define IER 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
57 #define DLM 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
58 #define IIR 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
59 #define FCR 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
60 #define LCR 0x03 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
61 #define MCR 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
62 #define LSR 0x05 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
63 #define MSR 0x06 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
64 #define SCR 0x07 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
65 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
66 /* 16550A Line Control Register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
67 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
68 #define LCR_5BITS 0x00 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
69 #define LCR_6BITS 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
70 #define LCR_7BITS 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
71 #define LCR_8BITS 0x03 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
72 #define LCR_NSB 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
73 #define LCR_PEN 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
74 #define LCR_EPS 0x10 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
75 #define LCR_SP 0x20 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
76 #define LCR_SB 0x40 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
77 #define LCR_DLAB 0x80 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
78 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
79 /* 16550A Line Status Register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
80 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
81 #define LSR_DR 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
82 #define LSR_OE 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
83 #define LSR_PE 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
84 #define LSR_FE 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
85 #define LSR_BI 0x10 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
86 #define LSR_THRE 0x20 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
87 #define LSR_TSRE 0x40 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
88 #define LSR_FERR 0x80 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
89 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
90 /* 16550A Interrupt Identification Register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
91 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
92 #define IIR_IP 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
93 #define IIR_ID 0x0e |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
94 #define IIR_RLS 0x06 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
95 #define IIR_RDA 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
96 #define IIR_THRE 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
97 #define IIR_MSTAT 0x00 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
98 #define IIR_TIMEOUT 0x0c |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
99 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
100 /* 16550A interrupt enable register bits */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
101 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
102 #define IER_DAV 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
103 #define IER_TXE 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
104 #define IER_RLS 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
105 #define IER_MS 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
106 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
107 /* 16550A Modem control register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
108 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
109 #define MCR_DTR 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
110 #define MCR_RTS 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
111 #define MCR_OUT1 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
112 #define MCR_OUT2 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
113 #define MCR_LOOP 0x10 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
114 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
115 /* 16550A Modem Status Register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
116 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
117 #define MSR_DCTS 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
118 #define MSR_DDSR 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
119 #define MSR_TERI 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
120 #define MSR_DRLSD 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
121 #define MSR_CTS 0x10 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
122 #define MSR_DSR 0x20 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
123 #define MSR_RI 0x40 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
124 #define MSR_RLSD 0x80 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
125 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
126 /* (*) 16550A FIFO Control Register */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
127 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
128 #define FCR_EN 0x01 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
129 #define FCR_RXCLR 0x02 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
130 #define FCR_TXCLR 0x04 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
131 #define FCR_DMA 0x08 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
132 #define FCR_RES1 0x10 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
133 #define FCR_RES2 0x20 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
134 #define FCR_RXTRIG_L 0x40 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
135 #define FCR_RXTRIG_H 0x80 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
136 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
137 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
138 #define CHAN1 0x8 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
139 #define CHAN2 0x0 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
140 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
141 #define DataIn 0x00 /* data input port */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
142 #define DataOut 0x00 /* data output port */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
143 #define BaudLsb 0x00 /* baud rate divisor least significant byte */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
144 #define BaudMsb 0x01 /* baud rate divisor most significant byte */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
145 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
146 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
147 /* |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
148 * Enable receive and transmit FIFOs. |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
149 * |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
150 * FCR<7:6> 00 trigger level = 1 byte |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
151 * FCR<5:4> 00 reserved |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
152 * FCR<3> 0 mode 1 - interrupt on fifo threshold |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
153 * FCR<2> 1 clear xmit fifo |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
154 * FCR<1> 1 clear recv fifo |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
155 * FCR<0> 1 turn on fifo mode |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
156 */ |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
157 #define FIFO_ENABLE 0x07 |
|
417
37b0db9e87ca
Cleanup a few loose ends from IOP310 reorganization
msalter
parents:
411
diff
changeset
|
158 #define INT_ENABLE (IER_RLS) /* default interrupt mask */ |
|
411
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
159 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
160 |
|
de449c532876
Add NPWR Linux Engine, update Xscale IOP310 based platforms
gthomas
parents:
diff
changeset
|
161 |
