source: rtems/c/src/lib/libcpu/mips/au1x00/include/au1x00.h @ 0c0181d

4.115
Last change on this file since 0c0181d was 0c0181d, checked in by Jennifer Averett <jennifer.averett@…>, on Apr 4, 2012 at 1:39:46 PM

PR 1993 - Convert MIPS to PIC IRQ model

  • Property mode set to 100644
File size: 15.8 KB
Line 
1/**
2 *  @file
3 * 
4 *  AMD AU1X00 specific information
5 */
6
7/*
8 *  Copyright (c) 2005 by Cogent Computer Systems
9 *  Written by Jay Monkman <jtm@lopingdog.com>
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18#ifndef __AU1X00_H__
19#define __AU1X00_H__
20
21#define bit(x)         (1 << (x))
22
23/* Au1x00 CP0 registers
24 */
25#define CP0_Index               $0
26#define CP0_Random              $1
27#define CP0_EntryLo0    $2
28#define CP0_EntryLo1    $3
29#define CP0_Context             $4
30#define CP0_PageMask    $5
31#define CP0_Wired               $6
32#define CP0_BadVAddr    $8
33#define CP0_Count               $9
34#define CP0_EntryHi             $10
35#define CP0_Compare             $11
36#define CP0_Status              $12
37#define CP0_Cause               $13
38#define CP0_EPC                 $14
39#define CP0_PRId                $15
40#define CP0_Config              $16
41#define CP0_Config0             $16
42#define CP0_Config1             $16,1
43#define CP0_LLAddr              $17
44#define CP0_WatchLo             $18
45#define CP0_IWatchLo    $18,1
46#define CP0_WatchHi             $19
47#define CP0_IWatchHi    $19,1
48#define CP0_Scratch             $22
49#define CP0_Debug               $23
50#define CP0_DEPC                $24
51#define CP0_PerfCnt             $25
52#define CP0_PerfCtrl    $25,1
53#define CP0_DTag                $28
54#define CP0_DData               $28,1
55#define CP0_ITag                $29
56#define CP0_IData               $29,1
57#define CP0_ErrorEPC    $30
58#define CP0_DESave              $31
59
60/* Addresses common to all AU1x00 CPUs */
61#define AU1X00_MEM_ADDR         0xB4000000
62#define AU1X00_AC97_ADDR        0xB0000000
63#define AU1X00_USBH_ADDR        0xB0100000
64#define AU1X00_USBD_ADDR        0xB0200000
65#define AU1X00_MACDMA0_ADDR     0xB4004000
66#define AU1X00_MACDMA1_ADDR     0xB4004200
67#define AU1X00_UART0_ADDR       0xB1100000
68#define AU1X00_UART3_ADDR       0xB1400000
69#define AU1X00_SYS_ADDR         0xB1900000
70#define AU1X00_GPIO2_ADDR       0xB1700000
71#define AU1X00_IC0_ADDR         0xB0400000
72#define AU1X00_IC1_ADDR         0xB1800000
73
74/* Au1100 base addresses (in KSEG1 region) */
75#define AU1100_MAC0_ADDR        0xB0500000
76#define AU1100_MACEN_ADDR       0xB0520000
77
78/* Au1500 base addresses (in KSEG1 region) */
79#define AU1500_MAC0_ADDR        0xB1500000
80#define AU1500_MAC1_ADDR        0xB1510000
81#define AU1500_MACEN_ADDR       0xB1520000
82#define AU1500_PCI_ADDR         0xB4005000
83
84/* Au1x00 gpio2 register offsets
85 */
86#define gpio2_dir               0x0000
87#define gpio2_output    0x0008
88#define gpio2_pinstate  0x000c
89#define gpio2_inten             0x0010
90#define gpio2_enable    0x0014
91
92/* Au1x00 memory controller register offsets
93 */
94#define mem_sdmode0             0x0000
95#define mem_sdmode1             0x0004
96#define mem_sdmode2             0x0008
97#define mem_sdaddr0             0x000C
98#define mem_sdaddr1             0x0010
99#define mem_sdaddr2             0x0014
100#define mem_sdrefcfg    0x0018
101#define mem_sdprecmd    0x001C
102#define mem_sdautoref   0x0020
103#define mem_sdwrmd0             0x0024
104#define mem_sdwrmd1             0x0028
105#define mem_sdwrmd2             0x002C
106#define mem_sdsleep             0x0030
107#define mem_sdsmcke             0x0034
108
109#define mem_stcfg0              0x1000
110#define mem_sttime0             0x1004
111#define mem_staddr0             0x1008
112#define mem_stcfg1              0x1010
113#define mem_sttime1             0x1014
114#define mem_staddr1             0x1018
115#define mem_stcfg2              0x1020
116#define mem_sttime2             0x1024
117#define mem_staddr2             0x1028
118#define mem_stcfg3              0x1030
119#define mem_sttime3             0x1034
120#define mem_staddr3             0x1038
121
122/*
123 * Au1x00 peripheral register offsets
124 */
125#define ac97_enable             0x0010
126#define usbh_enable             0x0007FFFC
127#define usbd_enable             0x0058
128#define irda_enable             0x0040
129#define macen_mac0              0x0000
130#define macen_mac1              0x0004
131#define i2s_enable              0x0008
132#define uart_enable             0x0100
133#define ssi_enable              0x0100
134
135#define sys_scratch0    0x0018
136#define sys_scratch1    0x001c
137#define sys_cntctrl             0x0014
138#define sys_freqctrl0   0x0020
139#define sys_freqctrl1   0x0024
140#define sys_clksrc              0x0028
141#define sys_pinfunc             0x002C
142#define sys_powerctrl   0x003C
143#define sys_endian              0x0038
144#define sys_wakesrc             0x005C
145#define sys_cpupll              0x0060
146#define sys_auxpll              0x0064
147#define sys_pininputen  0x0110
148
149#define pci_cmem                        0x0000
150#define pci_config                      0x0004
151#define pci_b2bmask_cch         0x0008
152#define pci_b2bbase0_venid      0x000C
153#define pci_b2bbase1_id         0x0010
154#define pci_mwmask_dev          0x0014
155#define pci_mwbase_rev_ccl      0x0018
156#define pci_err_addr            0x001C
157#define pci_spec_intack         0x0020
158#define pci_id                          0x0100
159#define pci_statcmd                     0x0104
160#define pci_classrev            0x0108
161#define pci_hdrtype                     0x010C
162#define pci_mbar                        0x0110
163
164/*
165 * CSB250-specific values
166 */
167
168#define SYS_CPUPLL              33
169#define SYS_POWERCTRL   1
170#define SYS_AUXPLL              8
171#define SYS_CNTCTRL             256
172
173/* RCE0: */
174#define MEM_STCFG0      0x00000203
175#define MEM_STTIME0     0x22080b20
176#define MEM_STADDR0     0x11f03fc0
177
178/* RCE1: */
179#define MEM_STCFG1      0x00000203
180#define MEM_STTIME1     0x22080b20
181#define MEM_STADDR1     0x11e03fc0
182
183/* RCE2: */
184#define MEM_STCFG2      0x00000244
185#define MEM_STTIME2     0x22080a20
186#define MEM_STADDR2     0x11803f00
187
188/* RCE3: */
189#define MEM_STCFG3      0x00000201
190#define MEM_STTIME3     0x22080b20
191#define MEM_STADDR3     0x11003f00
192
193/*
194 * SDCS0 -
195 * SDCS1 -
196 * SDCS2 -
197 */
198#define MEM_SDMODE0             0x00552229
199#define MEM_SDMODE1             0x00552229
200#define MEM_SDMODE2             0x00552229
201
202#define MEM_SDADDR0             0x001003F8
203#define MEM_SDADDR1             0x001023F8
204#define MEM_SDADDR2             0x001043F8
205
206#define MEM_SDREFCFG_D  0x74000c30      /* disable */
207#define MEM_SDREFCFG_E  0x76000c30      /* enable */
208#define MEM_SDWRMD0             0x00000023
209#define MEM_SDWRMD1             0x00000023
210#define MEM_SDWRMD2             0x00000023
211
212#define MEM_1MS                 ((396000000/1000000) * 1000)
213
214#define AU1X00_IC_CFG0RD(x)       (*(volatile uint32_t*)(x + 0x40))
215#define AU1X00_IC_CFG0SET(x)      (*(volatile uint32_t*)(x + 0x40))
216#define AU1X00_IC_CFG0CLR(x)      (*(volatile uint32_t*)(x + 0x44))
217#define AU1X00_IC_CFG1RD(x)       (*(volatile uint32_t*)(x + 0x48))
218#define AU1X00_IC_CFG1SET(x)      (*(volatile uint32_t*)(x + 0x48))
219#define AU1X00_IC_CFG1CLR(x)      (*(volatile uint32_t*)(x + 0x4c))
220#define AU1X00_IC_CFG2RD(x)       (*(volatile uint32_t*)(x + 0x50))
221#define AU1X00_IC_CFG2SET(x)      (*(volatile uint32_t*)(x + 0x50))
222#define AU1X00_IC_CFG2CLR(x)      (*(volatile uint32_t*)(x + 0x54))
223#define AU1X00_IC_REQ0INT(x)      (*(volatile uint32_t*)(x + 0x54))
224#define AU1X00_IC_SRCRD(x)        (*(volatile uint32_t*)(x + 0x58))
225#define AU1X00_IC_SRCSET(x)       (*(volatile uint32_t*)(x + 0x58))
226#define AU1X00_IC_SRCCLR(x)       (*(volatile uint32_t*)(x + 0x5c))
227#define AU1X00_IC_REQ1INT(x)      (*(volatile uint32_t*)(x + 0x5c))
228#define AU1X00_IC_ASSIGNRD(x)     (*(volatile uint32_t*)(x + 0x60))
229#define AU1X00_IC_ASSIGNSET(x)    (*(volatile uint32_t*)(x + 0x60))
230#define AU1X00_IC_ASSIGNCLR(x)    (*(volatile uint32_t*)(x + 0x64))
231#define AU1X00_IC_WAKERD(x)       (*(volatile uint32_t*)(x + 0x68))
232#define AU1X00_IC_WAKESET(x)      (*(volatile uint32_t*)(x + 0x68))
233#define AU1X00_IC_WAKECLR(x)      (*(volatile uint32_t*)(x + 0x6c))
234#define AU1X00_IC_MASKRD(x)       (*(volatile uint32_t*)(x + 0x70))
235#define AU1X00_IC_MASKSET(x)      (*(volatile uint32_t*)(x + 0x70))
236#define AU1X00_IC_MASKCLR(x)      (*(volatile uint32_t*)(x + 0x74))
237#define AU1X00_IC_RISINGRD(x)     (*(volatile uint32_t*)(x + 0x78))
238#define AU1X00_IC_RISINGCLR(x)    (*(volatile uint32_t*)(x + 0x78))
239#define AU1X00_IC_FALLINGRD(x)    (*(volatile uint32_t*)(x + 0x7c))
240#define AU1X00_IC_FALLINGCLR(x)   (*(volatile uint32_t*)(x + 0x7c))
241#define AU1X00_IC_TESTBIT(x)      (*(volatile uint32_t*)(x + 0x80))
242#define AU1X00_IC_IRQ_MAC0        (bit(28))
243#define AU1X00_IC_IRQ_MAC1        (bit(29))
244#define AU1X00_IC_IRQ_TOY_MATCH0  (bit(15))
245#define AU1X00_IC_IRQ_TOY_MATCH1  (bit(16))
246#define AU1X00_IC_IRQ_TOY_MATCH2  (bit(17))
247
248
249
250#define AU1X00_SYS_TOYTRIM(x)    (*(volatile uint32_t*)(x + 0x00))
251#define AU1X00_SYS_TOYWRITE(x)   (*(volatile uint32_t*)(x + 0x04))
252#define AU1X00_SYS_TOYMATCH0(x)  (*(volatile uint32_t*)(x + 0x08))
253#define AU1X00_SYS_TOYMATCH1(x)  (*(volatile uint32_t*)(x + 0x0c))
254#define AU1X00_SYS_TOYMATCH2(x)  (*(volatile uint32_t*)(x + 0x10))
255#define AU1X00_SYS_CNTCTRL(x)    (*(volatile uint32_t*)(x + 0x14))
256#define AU1X00_SYS_SCRATCH0(x)   (*(volatile uint32_t*)(x + 0x18))
257#define AU1X00_SYS_SCRATCH1(x)   (*(volatile uint32_t*)(x + 0x1c))
258#define AU1X00_SYS_WAKEMSK(x)   (*(volatile uint32_t*)(x + 0x34))
259#define AU1X00_SYS_ENDIAN(x)     (*(volatile uint32_t*)(x + 0x38))
260#define AU1X00_SYS_POWERCTRL(x)  (*(volatile uint32_t*)(x + 0x3c))
261#define AU1X00_SYS_TOYREAD(x)    (*(volatile uint32_t*)(x + 0x40))
262#define AU1X00_SYS_RTCTRIM(x)    (*(volatile uint32_t*)(x + 0x44))
263#define AU1X00_SYS_RTCWRITE(x)   (*(volatile uint32_t*)(x + 0x48))
264#define AU1X00_SYS_RTCMATCH0(x)  (*(volatile uint32_t*)(x + 0x4c))
265#define AU1X00_SYS_RTCMATCH1(x)  (*(volatile uint32_t*)(x + 0x50))
266#define AU1X00_SYS_RTCMATCH2(x)  (*(volatile uint32_t*)(x + 0x54))
267#define AU1X00_SYS_RTCREAD(x)    (*(volatile uint32_t*)(x + 0x58))
268#define AU1X00_SYS_WAKESRC(x)    (*(volatile uint32_t*)(x + 0x5c))
269#define AU1X00_SYS_SLPPWR(x)     (*(volatile uint32_t*)(x + 0x78))
270#define AU1X00_SYS_SLEEP(x)      (*(volatile uint32_t*)(x + 0x7c))
271
272#define AU1X00_SYS_CNTCTRL_ERS   (bit(23))
273#define AU1X00_SYS_CNTCTRL_RTS   (bit(20))
274#define AU1X00_SYS_CNTCTRL_RM2   (bit(19))
275#define AU1X00_SYS_CNTCTRL_RM1   (bit(18))
276#define AU1X00_SYS_CNTCTRL_RM0   (bit(17))
277#define AU1X00_SYS_CNTCTRL_RS    (bit(16))
278#define AU1X00_SYS_CNTCTRL_BP    (bit(14))
279#define AU1X00_SYS_CNTCTRL_REN   (bit(13))
280#define AU1X00_SYS_CNTCTRL_BRT   (bit(12))
281#define AU1X00_SYS_CNTCTRL_TEN   (bit(11))
282#define AU1X00_SYS_CNTCTRL_BTT   (bit(10))
283#define AU1X00_SYS_CNTCTRL_E0    (bit(8))
284#define AU1X00_SYS_CNTCTRL_ETS   (bit(7))
285#define AU1X00_SYS_CNTCTRL_32S   (bit(5))
286#define AU1X00_SYS_CNTCTRL_TTS   (bit(4))
287#define AU1X00_SYS_CNTCTRL_TM2   (bit(3))
288#define AU1X00_SYS_CNTCTRL_TM1   (bit(2))
289#define AU1X00_SYS_CNTCTRL_TM0   (bit(1))
290#define AU1X00_SYS_CNTCTRL_TS    (bit(0))
291#define AU1X00_SYS_WAKEMSK_M20   (bit(8))
292
293#define AU1X00_MAC_CONTROL(x)         (*(volatile uint32_t*)(x + 0x00))
294#define AU1X00_MAC_ADDRHIGH(x)        (*(volatile uint32_t*)(x + 0x04))
295#define AU1X00_MAC_ADDRLOW(x)         (*(volatile uint32_t*)(x + 0x08))
296#define AU1X00_MAC_HASHHIGH(x)        (*(volatile uint32_t*)(x + 0x0c))
297#define AU1X00_MAC_HASHLOW(x)         (*(volatile uint32_t*)(x + 0x10))
298#define AU1X00_MAC_MIICTRL(x)         (*(volatile uint32_t*)(x + 0x14))
299#define AU1X00_MAC_MIIDATA(x)         (*(volatile uint32_t*)(x + 0x18))
300#define AU1X00_MAC_FLOWCTRL(x)        (*(volatile uint32_t*)(x + 0x1c))
301#define AU1X00_MAC_VLAN1(x)           (*(volatile uint32_t*)(x + 0x20))
302#define AU1X00_MAC_VLAN2(x)           (*(volatile uint32_t*)(x + 0x24))
303#define AU1X00_MAC_EN0                (*(volatile uint32_t*)(AU1X00_MACEN_ADDR + 0x0))
304#define AU1X00_MAC_EN1                (*(volatile uint32_t*)(AU1X00_MACEN_ADDR + 0x4))
305#define AU1X00_MAC_DMA_TX0_ADDR(x)    (*(volatile uint32_t*)(x + 0x000))
306#define AU1X00_MAC_DMA_TX1_ADDR(x)    (*(volatile uint32_t*)(x + 0x010))
307#define AU1X00_MAC_DMA_TX2_ADDR(x)    (*(volatile uint32_t*)(x + 0x020))
308#define AU1X00_MAC_DMA_TX3_ADDR(x)    (*(volatile uint32_t*)(x + 0x030))
309#define AU1X00_MAC_DMA_RX0_ADDR(x)    (*(volatile uint32_t*)(x + 0x100))
310#define AU1X00_MAC_DMA_RX1_ADDR(x)    (*(volatile uint32_t*)(x + 0x110))
311#define AU1X00_MAC_DMA_RX2_ADDR(x)    (*(volatile uint32_t*)(x + 0x120))
312#define AU1X00_MAC_DMA_RX3_ADDR(x)    (*(volatile uint32_t*)(x + 0x130))
313
314typedef struct {
315    volatile uint32_t stat;
316    volatile uint32_t addr;
317    uint32_t _rsv0;
318    uint32_t _rsv1;
319} au1x00_macdma_rx_t;
320
321
322typedef struct {
323    volatile uint32_t stat;
324    volatile uint32_t addr;
325    volatile uint32_t len;
326    uint32_t _rsv0;
327} au1x00_macdma_tx_t;
328
329#define AU1X00_MAC_CTRL_RA                (bit(31))
330#define AU1X00_MAC_CTRL_EM                (bit(30))
331#define AU1X00_MAC_CTRL_DO                (bit(23))
332#define AU1X00_MAC_CTRL_LM(x)             ((x) << 21)
333#define AU1X00_MAC_CTRL_LM_NORMAL         ((0) << 21)
334#define AU1X00_MAC_CTRL_LM_INTERNAL       ((1) << 21)
335#define AU1X00_MAC_CTRL_LM_EXTERNAL       ((2) << 21)
336#define AU1X00_MAC_CTRL_F                 (bit(20))
337#define AU1X00_MAC_CTRL_PM                (bit(19))
338#define AU1X00_MAC_CTRL_PR                (bit(18))
339#define AU1X00_MAC_CTRL_IF                (bit(17))
340#define AU1X00_MAC_CTRL_PB                (bit(16))
341#define AU1X00_MAC_CTRL_HO                (bit(15))
342#define AU1X00_MAC_CTRL_HP                (bit(13))
343#define AU1X00_MAC_CTRL_LC                (bit(12))
344#define AU1X00_MAC_CTRL_DB                (bit(11))
345#define AU1X00_MAC_CTRL_DR                (bit(10))
346#define AU1X00_MAC_CTRL_AP                (bit(8))
347#define AU1X00_MAC_CTRL_BL(x)             ((x) << 6)
348#define AU1X00_MAC_CTRL_DC                (bit(5))
349#define AU1X00_MAC_CTRL_TE                (bit(3))
350#define AU1X00_MAC_CTRL_RE                (bit(2))
351
352#define AU1X00_MAC_EN_JP                  (bit(6))
353#define AU1X00_MAC_EN_E2                  (bit(5))
354#define AU1X00_MAC_EN_E1                  (bit(4))
355#define AU1X00_MAC_EN_C                   (bit(3))
356#define AU1X00_MAC_EN_TS                  (bit(2))
357#define AU1X00_MAC_EN_E0                  (bit(1))
358#define AU1X00_MAC_EN_CE                  (bit(0))
359
360#define AU1X00_MAC_ADDRHIGH_MASK          (0xffff)_
361#define AU1X00_MAC_MIICTRL_PHYADDR(x)     ((x & 0x1f) << 11)
362#define AU1X00_MAC_MIICTRL_MIIREG(x)      ((x & 0x1f) << 6)
363#define AU1X00_MAC_MIICTRL_MW             (bit(1))
364#define AU1X00_MAC_MIICTRL_MB             (bit(0))
365#define AU1X00_MAC_MIIDATA_MASK           (0xffff)
366#define AU1X00_MAC_FLOWCTRL_PT(x)         (((x) & 0xffff) << 16)
367#define AU1X00_MAC_FLOWCTRL_PC            (bit(2))
368#define AU1X00_MAC_FLOWCTRL_FE            (bit(1))
369#define AU1X00_MAC_FLOWCTRL_FB            (bit(0))
370
371#define AU1X00_MAC_DMA_RXSTAT_MI          (bit(31))
372#define AU1X00_MAC_DMA_RXSTAT_PF          (bit(30))
373#define AU1X00_MAC_DMA_RXSTAT_FF          (bit(29))
374#define AU1X00_MAC_DMA_RXSTAT_BF          (bit(28))
375#define AU1X00_MAC_DMA_RXSTAT_MF          (bit(27))
376#define AU1X00_MAC_DMA_RXSTAT_UC          (bit(26))
377#define AU1X00_MAC_DMA_RXSTAT_CF          (bit(25))
378#define AU1X00_MAC_DMA_RXSTAT_LE          (bit(24))
379#define AU1X00_MAC_DMA_RXSTAT_V2          (bit(23))
380#define AU1X00_MAC_DMA_RXSTAT_V1          (bit(22))
381#define AU1X00_MAC_DMA_RXSTAT_CR          (bit(21))
382#define AU1X00_MAC_DMA_RXSTAT_DB          (bit(20))
383#define AU1X00_MAC_DMA_RXSTAT_ME          (bit(19))
384#define AU1X00_MAC_DMA_RXSTAT_FT          (bit(18))
385#define AU1X00_MAC_DMA_RXSTAT_CS          (bit(17))
386#define AU1X00_MAC_DMA_RXSTAT_FL          (bit(16))
387#define AU1X00_MAC_DMA_RXSTAT_RF          (bit(15))
388#define AU1X00_MAC_DMA_RXSTAT_WT          (bit(14))
389#define AU1X00_MAC_DMA_RXSTAT_LEN(x)      ((x) & 0x3fff)
390#define AU1X00_MAC_DMA_RXADDR_ADDR(x)     ((x) & ~0x1f)
391#define AU1X00_MAC_DMA_RXADDR_CB_MASK     (0x3 << 0x2)
392#define AU1X00_MAC_DMA_RXADDR_DN          (bit(1))
393#define AU1X00_MAC_DMA_RXADDR_EN          (bit(0))
394
395
396#define AU1X00_MAC_DMA_TXSTAT_PR          (bit(31))
397#define AU1X00_MAC_DMA_TXSTAT_CC_MASK     (0xf << 10)
398#define AU1X00_MAC_DMA_TXSTAT_LO          (bit(9))
399#define AU1X00_MAC_DMA_TXSTAT_DF          (bit(8))
400#define AU1X00_MAC_DMA_TXSTAT_UR          (bit(7))
401#define AU1X00_MAC_DMA_TXSTAT_EC          (bit(6))
402#define AU1X00_MAC_DMA_TXSTAT_LC          (bit(5))
403#define AU1X00_MAC_DMA_TXSTAT_ED          (bit(4))
404#define AU1X00_MAC_DMA_TXSTAT_LS          (bit(3))
405#define AU1X00_MAC_DMA_TXSTAT_NC          (bit(2))
406#define AU1X00_MAC_DMA_TXSTAT_JT          (bit(1))
407#define AU1X00_MAC_DMA_TXSTAT_FA          (bit(0))
408#define AU1X00_MAC_DMA_TXADDR_ADDR(x)     ((x) & ~0x1f)
409#define AU1X00_MAC_DMA_TXADDR_CB_MASK     (0x3 << 0x2)
410#define AU1X00_MAC_DMA_TXADDR_DN          (bit(1))
411#define AU1X00_MAC_DMA_TXADDR_EN          (bit(0))
412
413
414
415typedef struct {
416    volatile uint32_t rxdata;
417    volatile uint32_t txdata;
418    volatile uint32_t inten;
419    volatile uint32_t intcause;
420    volatile uint32_t fifoctrl;
421    volatile uint32_t linectrl;
422    volatile uint32_t mdmctrl;
423    volatile uint32_t linestat;
424    volatile uint32_t mdmstat;
425    volatile uint32_t clkdiv;
426    volatile uint32_t _resv[54];
427    volatile uint32_t enable;
428} au1x00_uart_t;
429
430extern au1x00_uart_t *uart0;
431extern au1x00_uart_t *uart3;
432
433void static inline au_sync(void)
434{
435        __asm__ volatile ("sync");
436}
437
438
439extern void mips_default_isr( int vector );
440
441/* Generate a software interrupt */
442extern int assert_sw_irq(uint32_t irqnum);
443
444/* Clear a software interrupt */
445extern int negate_sw_irq(uint32_t irqnum);
446
447#endif
Note: See TracBrowser for help on using the repository browser.