aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/netlogic/xlp-hal/pic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal/pic.h')
-rw-r--r--arch/mips/include/asm/netlogic/xlp-hal/pic.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/pic.h b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
index b2e53a5383ab..46ace0ca26d8 100644
--- a/arch/mips/include/asm/netlogic/xlp-hal/pic.h
+++ b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
@@ -36,7 +36,7 @@
36#define _NLM_HAL_PIC_H 36#define _NLM_HAL_PIC_H
37 37
38/* PIC Specific registers */ 38/* PIC Specific registers */
39#define PIC_CTRL 0x00 39#define PIC_CTRL 0x00
40 40
41/* PIC control register defines */ 41/* PIC control register defines */
42#define PIC_CTRL_ITV 32 /* interrupt timeout value */ 42#define PIC_CTRL_ITV 32 /* interrupt timeout value */
@@ -71,41 +71,41 @@
71#define PIC_IRT_DB 16 /* Destination base */ 71#define PIC_IRT_DB 16 /* Destination base */
72#define PIC_IRT_DTE 0 /* Destination thread enables */ 72#define PIC_IRT_DTE 0 /* Destination thread enables */
73 73
74#define PIC_BYTESWAP 0x02 74#define PIC_BYTESWAP 0x02
75#define PIC_STATUS 0x04 75#define PIC_STATUS 0x04
76#define PIC_INTR_TIMEOUT 0x06 76#define PIC_INTR_TIMEOUT 0x06
77#define PIC_ICI0_INTR_TIMEOUT 0x08 77#define PIC_ICI0_INTR_TIMEOUT 0x08
78#define PIC_ICI1_INTR_TIMEOUT 0x0a 78#define PIC_ICI1_INTR_TIMEOUT 0x0a
79#define PIC_ICI2_INTR_TIMEOUT 0x0c 79#define PIC_ICI2_INTR_TIMEOUT 0x0c
80#define PIC_IPI_CTL 0x0e 80#define PIC_IPI_CTL 0x0e
81#define PIC_INT_ACK 0x10 81#define PIC_INT_ACK 0x10
82#define PIC_INT_PENDING0 0x12 82#define PIC_INT_PENDING0 0x12
83#define PIC_INT_PENDING1 0x14 83#define PIC_INT_PENDING1 0x14
84#define PIC_INT_PENDING2 0x16 84#define PIC_INT_PENDING2 0x16
85 85
86#define PIC_WDOG0_MAXVAL 0x18 86#define PIC_WDOG0_MAXVAL 0x18
87#define PIC_WDOG0_COUNT 0x1a 87#define PIC_WDOG0_COUNT 0x1a
88#define PIC_WDOG0_ENABLE0 0x1c 88#define PIC_WDOG0_ENABLE0 0x1c
89#define PIC_WDOG0_ENABLE1 0x1e 89#define PIC_WDOG0_ENABLE1 0x1e
90#define PIC_WDOG0_BEATCMD 0x20 90#define PIC_WDOG0_BEATCMD 0x20
91#define PIC_WDOG0_BEAT0 0x22 91#define PIC_WDOG0_BEAT0 0x22
92#define PIC_WDOG0_BEAT1 0x24 92#define PIC_WDOG0_BEAT1 0x24
93 93
94#define PIC_WDOG1_MAXVAL 0x26 94#define PIC_WDOG1_MAXVAL 0x26
95#define PIC_WDOG1_COUNT 0x28 95#define PIC_WDOG1_COUNT 0x28
96#define PIC_WDOG1_ENABLE0 0x2a 96#define PIC_WDOG1_ENABLE0 0x2a
97#define PIC_WDOG1_ENABLE1 0x2c 97#define PIC_WDOG1_ENABLE1 0x2c
98#define PIC_WDOG1_BEATCMD 0x2e 98#define PIC_WDOG1_BEATCMD 0x2e
99#define PIC_WDOG1_BEAT0 0x30 99#define PIC_WDOG1_BEAT0 0x30
100#define PIC_WDOG1_BEAT1 0x32 100#define PIC_WDOG1_BEAT1 0x32
101 101
102#define PIC_WDOG_MAXVAL(i) (PIC_WDOG0_MAXVAL + ((i) ? 7 : 0)) 102#define PIC_WDOG_MAXVAL(i) (PIC_WDOG0_MAXVAL + ((i) ? 7 : 0))
103#define PIC_WDOG_COUNT(i) (PIC_WDOG0_COUNT + ((i) ? 7 : 0)) 103#define PIC_WDOG_COUNT(i) (PIC_WDOG0_COUNT + ((i) ? 7 : 0))
104#define PIC_WDOG_ENABLE0(i) (PIC_WDOG0_ENABLE0 + ((i) ? 7 : 0)) 104#define PIC_WDOG_ENABLE0(i) (PIC_WDOG0_ENABLE0 + ((i) ? 7 : 0))
105#define PIC_WDOG_ENABLE1(i) (PIC_WDOG0_ENABLE1 + ((i) ? 7 : 0)) 105#define PIC_WDOG_ENABLE1(i) (PIC_WDOG0_ENABLE1 + ((i) ? 7 : 0))
106#define PIC_WDOG_BEATCMD(i) (PIC_WDOG0_BEATCMD + ((i) ? 7 : 0)) 106#define PIC_WDOG_BEATCMD(i) (PIC_WDOG0_BEATCMD + ((i) ? 7 : 0))
107#define PIC_WDOG_BEAT0(i) (PIC_WDOG0_BEAT0 + ((i) ? 7 : 0)) 107#define PIC_WDOG_BEAT0(i) (PIC_WDOG0_BEAT0 + ((i) ? 7 : 0))
108#define PIC_WDOG_BEAT1(i) (PIC_WDOG0_BEAT1 + ((i) ? 7 : 0)) 108#define PIC_WDOG_BEAT1(i) (PIC_WDOG0_BEAT1 + ((i) ? 7 : 0))
109 109
110#define PIC_TIMER0_MAXVAL 0x34 110#define PIC_TIMER0_MAXVAL 0x34
111#define PIC_TIMER1_MAXVAL 0x36 111#define PIC_TIMER1_MAXVAL 0x36
@@ -127,28 +127,28 @@
127#define PIC_TIMER7_COUNT 0x52 127#define PIC_TIMER7_COUNT 0x52
128#define PIC_TIMER_COUNT(i) (PIC_TIMER0_COUNT + ((i) * 2)) 128#define PIC_TIMER_COUNT(i) (PIC_TIMER0_COUNT + ((i) * 2))
129 129
130#define PIC_ITE0_N0_N1 0x54 130#define PIC_ITE0_N0_N1 0x54
131#define PIC_ITE1_N0_N1 0x58 131#define PIC_ITE1_N0_N1 0x58
132#define PIC_ITE2_N0_N1 0x5c 132#define PIC_ITE2_N0_N1 0x5c
133#define PIC_ITE3_N0_N1 0x60 133#define PIC_ITE3_N0_N1 0x60
134#define PIC_ITE4_N0_N1 0x64 134#define PIC_ITE4_N0_N1 0x64
135#define PIC_ITE5_N0_N1 0x68 135#define PIC_ITE5_N0_N1 0x68
136#define PIC_ITE6_N0_N1 0x6c 136#define PIC_ITE6_N0_N1 0x6c
137#define PIC_ITE7_N0_N1 0x70 137#define PIC_ITE7_N0_N1 0x70
138#define PIC_ITE_N0_N1(i) (PIC_ITE0_N0_N1 + ((i) * 4)) 138#define PIC_ITE_N0_N1(i) (PIC_ITE0_N0_N1 + ((i) * 4))
139 139
140#define PIC_ITE0_N2_N3 0x56 140#define PIC_ITE0_N2_N3 0x56
141#define PIC_ITE1_N2_N3 0x5a 141#define PIC_ITE1_N2_N3 0x5a
142#define PIC_ITE2_N2_N3 0x5e 142#define PIC_ITE2_N2_N3 0x5e
143#define PIC_ITE3_N2_N3 0x62 143#define PIC_ITE3_N2_N3 0x62
144#define PIC_ITE4_N2_N3 0x66 144#define PIC_ITE4_N2_N3 0x66
145#define PIC_ITE5_N2_N3 0x6a 145#define PIC_ITE5_N2_N3 0x6a
146#define PIC_ITE6_N2_N3 0x6e 146#define PIC_ITE6_N2_N3 0x6e
147#define PIC_ITE7_N2_N3 0x72 147#define PIC_ITE7_N2_N3 0x72
148#define PIC_ITE_N2_N3(i) (PIC_ITE0_N2_N3 + ((i) * 4)) 148#define PIC_ITE_N2_N3(i) (PIC_ITE0_N2_N3 + ((i) * 4))
149 149
150#define PIC_IRT0 0x74 150#define PIC_IRT0 0x74
151#define PIC_IRT(i) (PIC_IRT0 + ((i) * 2)) 151#define PIC_IRT(i) (PIC_IRT0 + ((i) * 2))
152 152
153#define TIMER_CYCLES_MAXVAL 0xffffffffffffffffULL 153#define TIMER_CYCLES_MAXVAL 0xffffffffffffffffULL
154 154