[PATCH] ppc64: cleanup SPR definitions

There are a bunch of irrelevant SPR definitions in asm/processer.h. Cut
them down a bit, also add a DABR_TRANSLATION define which will be used
shortly.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Anton Blanchard and committed by
Linus Torvalds
79f12489 7e3b11a9

+1 -158
+1 -158
include/asm-ppc64/processor.h
··· 120 120 121 121 /* Special Purpose Registers (SPRNs)*/ 122 122 123 - #define SPRN_CDBCR 0x3D7 /* Cache Debug Control Register */ 124 123 #define SPRN_CTR 0x009 /* Count Register */ 125 124 #define SPRN_DABR 0x3F5 /* Data Address Breakpoint Register */ 126 - #define SPRN_DAC1 0x3F6 /* Data Address Compare 1 */ 127 - #define SPRN_DAC2 0x3F7 /* Data Address Compare 2 */ 125 + #define DABR_TRANSLATION (1UL << 2) 128 126 #define SPRN_DAR 0x013 /* Data Address Register */ 129 - #define SPRN_DBCR 0x3F2 /* Debug Control Regsiter */ 130 - #define DBCR_EDM 0x80000000 131 - #define DBCR_IDM 0x40000000 132 - #define DBCR_RST(x) (((x) & 0x3) << 28) 133 - #define DBCR_RST_NONE 0 134 - #define DBCR_RST_CORE 1 135 - #define DBCR_RST_CHIP 2 136 - #define DBCR_RST_SYSTEM 3 137 - #define DBCR_IC 0x08000000 /* Instruction Completion Debug Evnt */ 138 - #define DBCR_BT 0x04000000 /* Branch Taken Debug Event */ 139 - #define DBCR_EDE 0x02000000 /* Exception Debug Event */ 140 - #define DBCR_TDE 0x01000000 /* TRAP Debug Event */ 141 - #define DBCR_FER 0x00F80000 /* First Events Remaining Mask */ 142 - #define DBCR_FT 0x00040000 /* Freeze Timers on Debug Event */ 143 - #define DBCR_IA1 0x00020000 /* Instr. Addr. Compare 1 Enable */ 144 - #define DBCR_IA2 0x00010000 /* Instr. Addr. Compare 2 Enable */ 145 - #define DBCR_D1R 0x00008000 /* Data Addr. Compare 1 Read Enable */ 146 - #define DBCR_D1W 0x00004000 /* Data Addr. Compare 1 Write Enable */ 147 - #define DBCR_D1S(x) (((x) & 0x3) << 12) /* Data Adrr. Compare 1 Size */ 148 - #define DAC_BYTE 0 149 - #define DAC_HALF 1 150 - #define DAC_WORD 2 151 - #define DAC_QUAD 3 152 - #define DBCR_D2R 0x00000800 /* Data Addr. Compare 2 Read Enable */ 153 - #define DBCR_D2W 0x00000400 /* Data Addr. Compare 2 Write Enable */ 154 - #define DBCR_D2S(x) (((x) & 0x3) << 8) /* Data Addr. Compare 2 Size */ 155 - #define DBCR_SBT 0x00000040 /* Second Branch Taken Debug Event */ 156 - #define DBCR_SED 0x00000020 /* Second Exception Debug Event */ 157 - #define DBCR_STD 0x00000010 /* Second Trap Debug Event */ 158 - #define DBCR_SIA 0x00000008 /* Second IAC Enable */ 159 - #define DBCR_SDA 0x00000004 /* Second DAC Enable */ 160 - #define DBCR_JOI 0x00000002 /* JTAG Serial Outbound Int. Enable */ 161 - #define DBCR_JII 0x00000001 /* JTAG Serial Inbound Int. Enable */ 162 - #define SPRN_DBCR0 0x3F2 /* Debug Control Register 0 */ 163 - #define SPRN_DBCR1 0x3BD /* Debug Control Register 1 */ 164 - #define SPRN_DBSR 0x3F0 /* Debug Status Register */ 165 - #define SPRN_DCCR 0x3FA /* Data Cache Cacheability Register */ 166 - #define DCCR_NOCACHE 0 /* Noncacheable */ 167 - #define DCCR_CACHE 1 /* Cacheable */ 168 - #define SPRN_DCMP 0x3D1 /* Data TLB Compare Register */ 169 - #define SPRN_DCWR 0x3BA /* Data Cache Write-thru Register */ 170 - #define DCWR_COPY 0 /* Copy-back */ 171 - #define DCWR_WRITE 1 /* Write-through */ 172 - #define SPRN_DEAR 0x3D5 /* Data Error Address Register */ 173 127 #define SPRN_DEC 0x016 /* Decrement Register */ 174 - #define SPRN_DMISS 0x3D0 /* Data TLB Miss Register */ 175 128 #define SPRN_DSISR 0x012 /* Data Storage Interrupt Status Register */ 176 129 #define DSISR_NOHPTE 0x40000000 /* no translation found */ 177 130 #define DSISR_PROTFAULT 0x08000000 /* protection fault */ 178 131 #define DSISR_ISSTORE 0x02000000 /* access was a store */ 179 132 #define DSISR_DABRMATCH 0x00400000 /* hit data breakpoint */ 180 133 #define DSISR_NOSEGMENT 0x00200000 /* STAB/SLB miss */ 181 - #define SPRN_EAR 0x11A /* External Address Register */ 182 - #define SPRN_ESR 0x3D4 /* Exception Syndrome Register */ 183 - #define ESR_IMCP 0x80000000 /* Instr. Machine Check - Protection */ 184 - #define ESR_IMCN 0x40000000 /* Instr. Machine Check - Non-config */ 185 - #define ESR_IMCB 0x20000000 /* Instr. Machine Check - Bus error */ 186 - #define ESR_IMCT 0x10000000 /* Instr. Machine Check - Timeout */ 187 - #define ESR_PIL 0x08000000 /* Program Exception - Illegal */ 188 - #define ESR_PPR 0x04000000 /* Program Exception - Priveleged */ 189 - #define ESR_PTR 0x02000000 /* Program Exception - Trap */ 190 - #define ESR_DST 0x00800000 /* Storage Exception - Data miss */ 191 - #define ESR_DIZ 0x00400000 /* Storage Exception - Zone fault */ 192 - #define SPRN_EVPR 0x3D6 /* Exception Vector Prefix Register */ 193 - #define SPRN_HASH1 0x3D2 /* Primary Hash Address Register */ 194 - #define SPRN_HASH2 0x3D3 /* Secondary Hash Address Resgister */ 195 134 #define SPRN_HID0 0x3F0 /* Hardware Implementation Register 0 */ 196 - #define HID0_EMCP (1<<31) /* Enable Machine Check pin */ 197 - #define HID0_EBA (1<<29) /* Enable Bus Address Parity */ 198 - #define HID0_EBD (1<<28) /* Enable Bus Data Parity */ 199 - #define HID0_SBCLK (1<<27) 200 - #define HID0_EICE (1<<26) 201 - #define HID0_ECLK (1<<25) 202 - #define HID0_PAR (1<<24) 203 - #define HID0_DOZE (1<<23) 204 - #define HID0_NAP (1<<22) 205 - #define HID0_SLEEP (1<<21) 206 - #define HID0_DPM (1<<20) 207 - #define HID0_ICE (1<<15) /* Instruction Cache Enable */ 208 - #define HID0_DCE (1<<14) /* Data Cache Enable */ 209 - #define HID0_ILOCK (1<<13) /* Instruction Cache Lock */ 210 - #define HID0_DLOCK (1<<12) /* Data Cache Lock */ 211 - #define HID0_ICFI (1<<11) /* Instr. Cache Flash Invalidate */ 212 - #define HID0_DCI (1<<10) /* Data Cache Invalidate */ 213 - #define HID0_SPD (1<<9) /* Speculative disable */ 214 - #define HID0_SGE (1<<7) /* Store Gathering Enable */ 215 - #define HID0_SIED (1<<7) /* Serial Instr. Execution [Disable] */ 216 - #define HID0_BTIC (1<<5) /* Branch Target Instruction Cache Enable */ 217 - #define HID0_ABE (1<<3) /* Address Broadcast Enable */ 218 - #define HID0_BHTE (1<<2) /* Branch History Table Enable */ 219 - #define HID0_BTCD (1<<1) /* Branch target cache disable */ 220 135 #define SPRN_MSRDORM 0x3F1 /* Hardware Implementation Register 1 */ 221 136 #define SPRN_HID1 0x3F1 /* Hardware Implementation Register 1 */ 222 137 #define SPRN_IABR 0x3F2 /* Instruction Address Breakpoint Register */ ··· 140 225 #define SPRN_HID5 0x3F6 /* 970 HID5 */ 141 226 #define SPRN_TSC 0x3FD /* Thread switch control */ 142 227 #define SPRN_TST 0x3FC /* Thread switch timeout */ 143 - #define SPRN_IAC1 0x3F4 /* Instruction Address Compare 1 */ 144 - #define SPRN_IAC2 0x3F5 /* Instruction Address Compare 2 */ 145 - #define SPRN_ICCR 0x3FB /* Instruction Cache Cacheability Register */ 146 - #define ICCR_NOCACHE 0 /* Noncacheable */ 147 - #define ICCR_CACHE 1 /* Cacheable */ 148 - #define SPRN_ICDBDR 0x3D3 /* Instruction Cache Debug Data Register */ 149 - #define SPRN_ICMP 0x3D5 /* Instruction TLB Compare Register */ 150 - #define SPRN_ICTC 0x3FB /* Instruction Cache Throttling Control Reg */ 151 - #define SPRN_IMISS 0x3D4 /* Instruction TLB Miss Register */ 152 - #define SPRN_IMMR 0x27E /* Internal Memory Map Register */ 153 228 #define SPRN_L2CR 0x3F9 /* Level 2 Cache Control Regsiter */ 154 229 #define SPRN_LR 0x008 /* Link Register */ 155 - #define SPRN_PBL1 0x3FC /* Protection Bound Lower 1 */ 156 - #define SPRN_PBL2 0x3FE /* Protection Bound Lower 2 */ 157 - #define SPRN_PBU1 0x3FD /* Protection Bound Upper 1 */ 158 - #define SPRN_PBU2 0x3FF /* Protection Bound Upper 2 */ 159 - #define SPRN_PID 0x3B1 /* Process ID */ 160 230 #define SPRN_PIR 0x3FF /* Processor Identification Register */ 161 231 #define SPRN_PIT 0x3DB /* Programmable Interval Timer */ 162 232 #define SPRN_PURR 0x135 /* Processor Utilization of Resources Register */ ··· 149 249 #define SPRN_RPA 0x3D6 /* Required Physical Address Register */ 150 250 #define SPRN_SDA 0x3BF /* Sampled Data Address Register */ 151 251 #define SPRN_SDR1 0x019 /* MMU Hash Base Register */ 152 - #define SPRN_SGR 0x3B9 /* Storage Guarded Register */ 153 - #define SGR_NORMAL 0 154 - #define SGR_GUARDED 1 155 252 #define SPRN_SIA 0x3BB /* Sampled Instruction Address Register */ 156 253 #define SPRN_SPRG0 0x110 /* Special Purpose Register General 0 */ 157 254 #define SPRN_SPRG1 0x111 /* Special Purpose Register General 1 */ ··· 161 264 #define SPRN_TBWL 0x11C /* Time Base Lower Register (super, W/O) */ 162 265 #define SPRN_TBWU 0x11D /* Time Base Write Upper Register (super, W/O) */ 163 266 #define SPRN_HIOR 0x137 /* 970 Hypervisor interrupt offset */ 164 - #define SPRN_TCR 0x3DA /* Timer Control Register */ 165 - #define TCR_WP(x) (((x)&0x3)<<30) /* WDT Period */ 166 - #define WP_2_17 0 /* 2^17 clocks */ 167 - #define WP_2_21 1 /* 2^21 clocks */ 168 - #define WP_2_25 2 /* 2^25 clocks */ 169 - #define WP_2_29 3 /* 2^29 clocks */ 170 - #define TCR_WRC(x) (((x)&0x3)<<28) /* WDT Reset Control */ 171 - #define WRC_NONE 0 /* No reset will occur */ 172 - #define WRC_CORE 1 /* Core reset will occur */ 173 - #define WRC_CHIP 2 /* Chip reset will occur */ 174 - #define WRC_SYSTEM 3 /* System reset will occur */ 175 - #define TCR_WIE 0x08000000 /* WDT Interrupt Enable */ 176 - #define TCR_PIE 0x04000000 /* PIT Interrupt Enable */ 177 - #define TCR_FP(x) (((x)&0x3)<<24) /* FIT Period */ 178 - #define FP_2_9 0 /* 2^9 clocks */ 179 - #define FP_2_13 1 /* 2^13 clocks */ 180 - #define FP_2_17 2 /* 2^17 clocks */ 181 - #define FP_2_21 3 /* 2^21 clocks */ 182 - #define TCR_FIE 0x00800000 /* FIT Interrupt Enable */ 183 - #define TCR_ARE 0x00400000 /* Auto Reload Enable */ 184 - #define SPRN_THRM1 0x3FC /* Thermal Management Register 1 */ 185 - #define THRM1_TIN (1<<0) 186 - #define THRM1_TIV (1<<1) 187 - #define THRM1_THRES (0x7f<<2) 188 - #define THRM1_TID (1<<29) 189 - #define THRM1_TIE (1<<30) 190 - #define THRM1_V (1<<31) 191 - #define SPRN_THRM2 0x3FD /* Thermal Management Register 2 */ 192 - #define SPRN_THRM3 0x3FE /* Thermal Management Register 3 */ 193 - #define THRM3_E (1<<31) 194 - #define SPRN_TSR 0x3D8 /* Timer Status Register */ 195 - #define TSR_ENW 0x80000000 /* Enable Next Watchdog */ 196 - #define TSR_WIS 0x40000000 /* WDT Interrupt Status */ 197 - #define TSR_WRS(x) (((x)&0x3)<<28) /* WDT Reset Status */ 198 - #define WRS_NONE 0 /* No WDT reset occurred */ 199 - #define WRS_CORE 1 /* WDT forced core reset */ 200 - #define WRS_CHIP 2 /* WDT forced chip reset */ 201 - #define WRS_SYSTEM 3 /* WDT forced system reset */ 202 - #define TSR_PIS 0x08000000 /* PIT Interrupt Status */ 203 - #define TSR_FIS 0x04000000 /* FIT Interrupt Status */ 204 267 #define SPRN_USIA 0x3AB /* User Sampled Instruction Address Register */ 205 268 #define SPRN_XER 0x001 /* Fixed Point Exception Register */ 206 - #define SPRN_ZPR 0x3B0 /* Zone Protection Register */ 207 269 #define SPRN_VRSAVE 0x100 /* Vector save */ 208 270 209 271 /* Performance monitor SPRs */ ··· 208 352 #define CTR SPRN_CTR /* Counter Register */ 209 353 #define DAR SPRN_DAR /* Data Address Register */ 210 354 #define DABR SPRN_DABR /* Data Address Breakpoint Register */ 211 - #define DCMP SPRN_DCMP /* Data TLB Compare Register */ 212 355 #define DEC SPRN_DEC /* Decrement Register */ 213 - #define DMISS SPRN_DMISS /* Data TLB Miss Register */ 214 356 #define DSISR SPRN_DSISR /* Data Storage Interrupt Status Register */ 215 - #define EAR SPRN_EAR /* External Address Register */ 216 - #define HASH1 SPRN_HASH1 /* Primary Hash Address Register */ 217 - #define HASH2 SPRN_HASH2 /* Secondary Hash Address Register */ 218 357 #define HID0 SPRN_HID0 /* Hardware Implementation Register 0 */ 219 358 #define MSRDORM SPRN_MSRDORM /* MSR Dormant Register */ 220 359 #define NIADORM SPRN_NIADORM /* NIA Dormant Register */ 221 360 #define TSC SPRN_TSC /* Thread switch control */ 222 361 #define TST SPRN_TST /* Thread switch timeout */ 223 362 #define IABR SPRN_IABR /* Instruction Address Breakpoint Register */ 224 - #define ICMP SPRN_ICMP /* Instruction TLB Compare Register */ 225 - #define IMISS SPRN_IMISS /* Instruction TLB Miss Register */ 226 - #define IMMR SPRN_IMMR /* PPC 860/821 Internal Memory Map Register */ 227 363 #define L2CR SPRN_L2CR /* PPC 750 L2 control register */ 228 364 #define __LR SPRN_LR 229 365 #define PVR SPRN_PVR /* Processor Version */ 230 366 #define PIR SPRN_PIR /* Processor ID */ 231 367 #define PURR SPRN_PURR /* Processor Utilization of Resource Register */ 232 - //#define RPA SPRN_RPA /* Required Physical Address Register */ 233 368 #define SDR1 SPRN_SDR1 /* MMU hash base register */ 234 369 #define SPR0 SPRN_SPRG0 /* Supervisor Private Registers */ 235 370 #define SPR1 SPRN_SPRG1 ··· 236 389 #define TBRU SPRN_TBRU /* Time Base Read Upper Register */ 237 390 #define TBWL SPRN_TBWL /* Time Base Write Lower Register */ 238 391 #define TBWU SPRN_TBWU /* Time Base Write Upper Register */ 239 - #define ICTC 1019 240 - #define THRM1 SPRN_THRM1 /* Thermal Management Register 1 */ 241 - #define THRM2 SPRN_THRM2 /* Thermal Management Register 2 */ 242 - #define THRM3 SPRN_THRM3 /* Thermal Management Register 3 */ 243 392 #define XER SPRN_XER 244 393 245 394 /* Processor Version Register (PVR) field extraction */