aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-ebsa285/entry-macro.S
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-arm/arch-ebsa285/entry-macro.S
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-arm/arch-ebsa285/entry-macro.S')
-rw-r--r--include/asm-arm/arch-ebsa285/entry-macro.S105
1 files changed, 105 insertions, 0 deletions
diff --git a/include/asm-arm/arch-ebsa285/entry-macro.S b/include/asm-arm/arch-ebsa285/entry-macro.S
new file mode 100644
index 000000000000..db5729ff6349
--- /dev/null
+++ b/include/asm-arm/arch-ebsa285/entry-macro.S
@@ -0,0 +1,105 @@
1/*
2 * include/asm-arm/arch-footbridge/entry-macro.S
3 *
4 * Low-level IRQ helper macros for footbridge-based platforms
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10#include <asm/hardware/dec21285.h>
11
12 .macro disable_fiq
13 .endm
14
15 .equ dc21285_high, ARMCSR_BASE & 0xff000000
16 .equ dc21285_low, ARMCSR_BASE & 0x00ffffff
17
18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
19 mov r4, #dc21285_high
20 .if dc21285_low
21 orr r4, r4, #dc21285_low
22 .endif
23 ldr \irqstat, [r4, #0x180] @ get interrupts
24
25 mov \irqnr, #IRQ_SDRAMPARITY
26 tst \irqstat, #IRQ_MASK_SDRAMPARITY
27 bne 1001f
28
29 tst \irqstat, #IRQ_MASK_UART_RX
30 movne \irqnr, #IRQ_CONRX
31 bne 1001f
32
33 tst \irqstat, #IRQ_MASK_DMA1
34 movne \irqnr, #IRQ_DMA1
35 bne 1001f
36
37 tst \irqstat, #IRQ_MASK_DMA2
38 movne \irqnr, #IRQ_DMA2
39 bne 1001f
40
41 tst \irqstat, #IRQ_MASK_IN0
42 movne \irqnr, #IRQ_IN0
43 bne 1001f
44
45 tst \irqstat, #IRQ_MASK_IN1
46 movne \irqnr, #IRQ_IN1
47 bne 1001f
48
49 tst \irqstat, #IRQ_MASK_IN2
50 movne \irqnr, #IRQ_IN2
51 bne 1001f
52
53 tst \irqstat, #IRQ_MASK_IN3
54 movne \irqnr, #IRQ_IN3
55 bne 1001f
56
57 tst \irqstat, #IRQ_MASK_PCI
58 movne \irqnr, #IRQ_PCI
59 bne 1001f
60
61 tst \irqstat, #IRQ_MASK_DOORBELLHOST
62 movne \irqnr, #IRQ_DOORBELLHOST
63 bne 1001f
64
65 tst \irqstat, #IRQ_MASK_I2OINPOST
66 movne \irqnr, #IRQ_I2OINPOST
67 bne 1001f
68
69 tst \irqstat, #IRQ_MASK_TIMER1
70 movne \irqnr, #IRQ_TIMER1
71 bne 1001f
72
73 tst \irqstat, #IRQ_MASK_TIMER2
74 movne \irqnr, #IRQ_TIMER2
75 bne 1001f
76
77 tst \irqstat, #IRQ_MASK_TIMER3
78 movne \irqnr, #IRQ_TIMER3
79 bne 1001f
80
81 tst \irqstat, #IRQ_MASK_UART_TX
82 movne \irqnr, #IRQ_CONTX
83 bne 1001f
84
85 tst \irqstat, #IRQ_MASK_PCI_ABORT
86 movne \irqnr, #IRQ_PCI_ABORT
87 bne 1001f
88
89 tst \irqstat, #IRQ_MASK_PCI_SERR
90 movne \irqnr, #IRQ_PCI_SERR
91 bne 1001f
92
93 tst \irqstat, #IRQ_MASK_DISCARD_TIMER
94 movne \irqnr, #IRQ_DISCARD_TIMER
95 bne 1001f
96
97 tst \irqstat, #IRQ_MASK_PCI_DPERR
98 movne \irqnr, #IRQ_PCI_DPERR
99 bne 1001f
100
101 tst \irqstat, #IRQ_MASK_PCI_PERR
102 movne \irqnr, #IRQ_PCI_PERR
1031001:
104 .endm
105