Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a40ffec5
Commit
a40ffec5
authored
Sep 22, 2003
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Move PowerPC Book E (and IBM 40x) register definitions to their own fil
e.
parent
511ffaa3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
339 additions
and
312 deletions
+339
-312
arch/ppc/boot/simple/misc.c
arch/ppc/boot/simple/misc.c
+1
-0
arch/ppc/syslib/ibm440gp_common.c
arch/ppc/syslib/ibm440gp_common.c
+1
-0
include/asm-ppc/ibm4xx.h
include/asm-ppc/ibm4xx.h
+0
-42
include/asm-ppc/reg.h
include/asm-ppc/reg.h
+27
-270
include/asm-ppc/reg_booke.h
include/asm-ppc/reg_booke.h
+310
-0
No files found.
arch/ppc/boot/simple/misc.c
View file @
a40ffec5
...
...
@@ -27,6 +27,7 @@
#ifdef CONFIG_44x
#include <asm/ibm4xx.h>
#endif
#include <asm/reg.h>
#include "nonstdio.h"
#include "zlib.h"
...
...
arch/ppc/syslib/ibm440gp_common.c
View file @
a40ffec5
...
...
@@ -17,6 +17,7 @@
*/
#include <linux/config.h>
#include <linux/types.h>
#include <asm/reg.h>
#include <asm/ibm44x.h>
#include <asm/mmu.h>
...
...
include/asm-ppc/ibm4xx.h
View file @
a40ffec5
...
...
@@ -16,48 +16,6 @@
#include <linux/config.h>
#ifdef CONFIG_4xx
#ifndef __ASSEMBLY__
/* Device Control Registers */
#define stringify(s) tostring(s)
#define tostring(s) #s
#define mfdcr(rn) mfdcr_or_dflt(rn, 0)
#define mfdcr_or_dflt(rn,default_rval) \
({unsigned int rval; \
if (rn == 0) \
rval = default_rval; \
else \
asm volatile("mfdcr %0," stringify(rn) : "=r" (rval)); \
rval;})
#define mtdcr(rn, v) \
do { \
if (rn != 0) \
asm volatile("mtdcr " stringify(rn) ",%0" : : "r" (v)); \
} while (0)
/* R/W of indirect DCRs make use of standard naming conventions for DCRs */
#define mfdcri(base, reg) \
({ \
mtdcr(base##_CFGADDR, base##_##reg); \
mfdcr(base##_CFGDATA); \
})
#define mtdcri(base, reg, data) \
do { \
mtdcr(base##_CFGADDR, base##_##reg); \
mtdcr(base##_CFGDATA, data); \
} while (0)
#endif
/* __ASSEMBLY__ */
#endif
/* CONFIG_4xx */
#ifdef CONFIG_40x
#if defined(CONFIG_ASH)
...
...
include/asm-ppc/reg.h
View file @
a40ffec5
/*
* Contains the definition of registers common to all PowerPC variants.
*/
/*
* The Book E definitions are hacked into here for 440 right
* now. This whole thing needs regorganized (maybe two files)
* so that it becomes readable. -Matt
* It will be. -- Tom.
* If a register definition has been changed in a different PowerPC
* variant, we will case it in #ifndef XXX ... #endif, and have the
* number used in the Programming Environments Manual For 32-Bit
* Implementations of the PowerPC Architecture (a.k.a. Green Book) here.
*/
#ifdef __KERNEL__
...
...
@@ -15,12 +12,14 @@
#include <linux/stringify.h>
/* Machine State Register (MSR) Fields */
/* Pickup Book E specific registers. */
#if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
#include <asm/reg_booke.h>
#endif
#ifdef CONFIG_PPC64BRIDGE
/* Machine State Register (MSR) Fields */
#define MSR_SF (1<<63)
#define MSR_ISF (1<<61)
#endif
/* CONFIG_PPC64BRIDGE */
#define MSR_VEC (1<<25)
/* Enable AltiVec */
#define MSR_POW (1<<18)
/* Enable Power Management */
#define MSR_WE (1<<18)
/* Wait State Enable */
...
...
@@ -33,7 +32,6 @@
#define MSR_ME (1<<12)
/* Machine Check Enable */
#define MSR_FE0 (1<<11)
/* Floating Exception mode 0 */
#define MSR_SE (1<<10)
/* Single Step */
#define MSR_DWE (1<<10)
/* Debug Wait Enable (4xx) */
#define MSR_BE (1<<9)
/* Branch Trace */
#define MSR_DE (1<<9)
/* Debug Exception Enable */
#define MSR_FE1 (1<<8)
/* Floating Exception mode 1 */
...
...
@@ -45,25 +43,18 @@
#define MSR_RI (1<<1)
/* Recoverable Exception */
#define MSR_LE (1<<0)
/* Little Endian */
#ifdef CONFIG_BOOKE
#define MSR_IS MSR_IR
/* Instruction Space */
#define MSR_DS MSR_DR
/* Data Space */
#endif
/* Default MSR for kernel mode. */
#ifdef CONFIG_APUS_FAST_EXCEPT
#define MSR_ (MSR_ME|MSR_IP|MSR_RI)
#else
#define MSR_ (MSR_ME|MSR_RI)
#define MSR_KERNEL (MSR_ME|MSR_IP|MSR_RI|MSR_IR|MSR_DR)
#endif
#ifdef CONFIG_4xx
#define MSR_KERNEL (MSR_|MSR_IR|MSR_DR|MSR_CE|MSR_DE)
#else
#define MSR_KERNEL (MSR_|MSR_IR|MSR_DR)
#ifndef MSR_KERNEL
#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR)
#endif
#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
/* Floating Point Status and Control Register (FPSCR) Fields */
#define FPSCR_FX 0x80000000
/* FPU exception summary */
#define FPSCR_FEX 0x40000000
/* FPU enabled exception summary */
#define FPSCR_VX 0x20000000
/* Invalid operation summary */
...
...
@@ -93,18 +84,12 @@
#define FPSCR_RN 0x00000003
/* FPU rounding control */
/* Special Purpose Registers (SPRNs)*/
#define SPRN_CCR0 0x3B3
/* Core Configuration Register (4xx) */
#define SPRN_CDBCR 0x3D7
/* Cache Debug Control Register */
#define SPRN_CTR 0x009
/* Count Register */
#define SPRN_DABR 0x3F5
/* Data Address Breakpoint Register */
#if
ndef CONFIG_BOOKE
#if
!defined(SPRN_DAC1) && !defined(SPRN_DAC2)
#define SPRN_DAC1 0x3F6
/* Data Address Compare 1 */
#define SPRN_DAC2 0x3F7
/* Data Address Compare 2 */
#else
#define SPRN_DAC1 0x13C
/* Book E Data Address Compare 1 */
#define SPRN_DAC2 0x13D
/* Book E Data Address Compare 2 */
#endif
/* CONFIG_BOOKE */
#endif
#define SPRN_DAR 0x013
/* Data Address Register */
#define SPRN_DBAT0L 0x219
/* Data BAT 0 Lower Register */
#define SPRN_DBAT0U 0x218
/* Data BAT 0 Upper Register */
...
...
@@ -123,90 +108,6 @@
#define SPRN_DBAT7L 0x23F
/* Data BAT 7 Lower Register */
#define SPRN_DBAT7U 0x23E
/* Data BAT 7 Upper Register */
#define SPRN_DBCR 0x3F2
/* Debug Control Regsiter */
#define DBCR_EDM 0x80000000
#define DBCR_IDM 0x40000000
#define DBCR_RST(x) (((x) & 0x3) << 28)
#define DBCR_RST_NONE 0
#define DBCR_RST_CORE 1
#define DBCR_RST_CHIP 2
#define DBCR_RST_SYSTEM 3
#define DBCR_IC 0x08000000
/* Instruction Completion Debug Evnt */
#define DBCR_BT 0x04000000
/* Branch Taken Debug Event */
#define DBCR_EDE 0x02000000
/* Exception Debug Event */
#define DBCR_TDE 0x01000000
/* TRAP Debug Event */
#define DBCR_FER 0x00F80000
/* First Events Remaining Mask */
#define DBCR_FT 0x00040000
/* Freeze Timers on Debug Event */
#define DBCR_IA1 0x00020000
/* Instr. Addr. Compare 1 Enable */
#define DBCR_IA2 0x00010000
/* Instr. Addr. Compare 2 Enable */
#define DBCR_D1R 0x00008000
/* Data Addr. Compare 1 Read Enable */
#define DBCR_D1W 0x00004000
/* Data Addr. Compare 1 Write Enable */
#define DBCR_D1S(x) (((x) & 0x3) << 12)
/* Data Adrr. Compare 1 Size */
#define DAC_BYTE 0
#define DAC_HALF 1
#define DAC_WORD 2
#define DAC_QUAD 3
#define DBCR_D2R 0x00000800
/* Data Addr. Compare 2 Read Enable */
#define DBCR_D2W 0x00000400
/* Data Addr. Compare 2 Write Enable */
#define DBCR_D2S(x) (((x) & 0x3) << 8)
/* Data Addr. Compare 2 Size */
#define DBCR_SBT 0x00000040
/* Second Branch Taken Debug Event */
#define DBCR_SED 0x00000020
/* Second Exception Debug Event */
#define DBCR_STD 0x00000010
/* Second Trap Debug Event */
#define DBCR_SIA 0x00000008
/* Second IAC Enable */
#define DBCR_SDA 0x00000004
/* Second DAC Enable */
#define DBCR_JOI 0x00000002
/* JTAG Serial Outbound Int. Enable */
#define DBCR_JII 0x00000001
/* JTAG Serial Inbound Int. Enable */
#ifndef CONFIG_BOOKE
#define SPRN_DBCR0 0x3F2
/* Debug Control Register 0 */
#else
#define SPRN_DBCR0 0x134
/* Book E Debug Control Register 0 */
#endif
/* CONFIG_BOOKE */
#define DBCR0_EDM 0x80000000
/* External Debug Mode */
#define DBCR0_IDM 0x40000000
/* Internal Debug Mode */
#define DBCR0_RST 0x30000000
/* all the bits in the RST field */
#define DBCR0_RST_SYSTEM 0x30000000
/* System Reset */
#define DBCR0_RST_CHIP 0x20000000
/* Chip Reset */
#define DBCR0_RST_CORE 0x10000000
/* Core Reset */
#define DBCR0_RST_NONE 0x00000000
/* No Reset */
#define DBCR0_IC 0x08000000
/* Instruction Completion */
#define DBCR0_BT 0x04000000
/* Branch Taken */
#define DBCR0_EDE 0x02000000
/* Exception Debug Event */
#define DBCR0_TDE 0x01000000
/* TRAP Debug Event */
#define DBCR0_IA1 0x00800000
/* Instr Addr compare 1 enable */
#define DBCR0_IA2 0x00400000
/* Instr Addr compare 2 enable */
#define DBCR0_IA12 0x00200000
/* Instr Addr 1-2 range enable */
#define DBCR0_IA12X 0x00100000
/* Instr Addr 1-2 range eXclusive */
#define DBCR0_IA3 0x00080000
/* Instr Addr compare 3 enable */
#define DBCR0_IA4 0x00040000
/* Instr Addr compare 4 enable */
#define DBCR0_IA34 0x00020000
/* Instr Addr 3-4 range Enable */
#define DBCR0_IA34X 0x00010000
/* Instr Addr 3-4 range eXclusive */
#define DBCR0_IA12T 0x00008000
/* Instr Addr 1-2 range Toggle */
#define DBCR0_IA34T 0x00004000
/* Instr Addr 3-4 range Toggle */
#define DBCR0_FT 0x00000001
/* Freeze Timers on debug event */
#ifndef CONFIG_BOOKE
#define SPRN_DBCR1 0x3BD
/* Debug Control Register 1 */
#define SPRN_DBSR 0x3F0
/* Debug Status Register */
#define DBSR_IC 0x80000000
/* Instruction Completion */
#define DBSR_BT 0x40000000
/* Branch taken */
#define DBSR_TIE 0x10000000
/* Trap Instruction debug Event */
#else
#define SPRN_DBCR1 0x135
/* Book E Debug Control Register 1 */
#define SPRN_DBSR 0x130
/* Book E Debug Status Register */
#define DBSR_IC 0x08000000
/* Book E Instruction Completion */
#define DBSR_TIE 0x01000000
/* Book E Trap Instruction Event */
#endif
/* CONFIG_BOOKE */
#define SPRN_DCCR 0x3FA
/* Data Cache Cacheability Register */
#define DCCR_NOCACHE 0
/* Noncacheable */
#define DCCR_CACHE 1
/* Cacheable */
#define SPRN_DCMP 0x3D1
/* Data TLB Compare Register */
#define SPRN_DCWR 0x3BA
/* Data Cache Write-thru Register */
#define DCWR_COPY 0
/* Copy-back */
#define DCWR_WRITE 1
/* Write-through */
#ifndef CONFIG_BOOKE
#define SPRN_DEAR 0x3D5
/* Data Error Address Register */
#else
#define SPRN_DEAR 0x03D
/* Book E Data Error Address Register */
#endif
/* CONFIG_BOOKE */
#define SPRN_DEC 0x016
/* Decrement Register */
#define SPRN_DER 0x095
/* Debug Enable Regsiter */
#define DER_RSTE 0x40000000
/* Reset Interrupt */
...
...
@@ -231,22 +132,6 @@
#define SPRN_DMISS 0x3D0
/* Data TLB Miss Register */
#define SPRN_DSISR 0x012
/* Data Storage Interrupt Status Register */
#define SPRN_EAR 0x11A
/* External Address Register */
#ifndef CONFIG_BOOKE
#define SPRN_ESR 0x3D4
/* Exception Syndrome Register */
#else
#define SPRN_ESR 0x03E
/* Book E Exception Syndrome Register */
#endif
/* CONFIG_BOOKE */
#define ESR_MCI 0x80000000
/* 405 Machine Check - Instruction */
#define ESR_IMCP 0x80000000
/* Instr. Machine Check - Protection */
#define ESR_IMCN 0x40000000
/* Instr. Machine Check - Non-config */
#define ESR_IMCB 0x20000000
/* Instr. Machine Check - Bus error */
#define ESR_IMCT 0x10000000
/* Instr. Machine Check - Timeout */
#define ESR_PIL 0x08000000
/* Program Exception - Illegal */
#define ESR_PPR 0x04000000
/* Program Exception - Priveleged */
#define ESR_PTR 0x02000000
/* Program Exception - Trap */
#define ESR_DST 0x00800000
/* Storage Exception - Data miss */
#define ESR_DIZ 0x00400000
/* Storage Exception - Zone fault */
#define SPRN_EVPR 0x3D6
/* Exception Vector Prefix Register */
#define SPRN_HASH1 0x3D2
/* Primary Hash Address Register */
#define SPRN_HASH2 0x3D3
/* Secondary Hash Address Resgister */
#define SPRN_HID0 0x3F0
/* Hardware Implementation Register 0 */
...
...
@@ -295,13 +180,10 @@
#define HID1_SYNCBE (1<<11)
/* 7450 ABE for sync, eieio */
#define HID1_ABE (1<<10)
/* 7450 Address Broadcast Enable */
#define SPRN_IABR 0x3F2
/* Instruction Address Breakpoint Register */
#if
ndef CONFIG_BOOKE
#if
!defined(SPRN_IAC1) && !defined(SPRN_IAC2)
#define SPRN_IAC1 0x3F4
/* Instruction Address Compare 1 */
#define SPRN_IAC2 0x3F5
/* Instruction Address Compare 2 */
#else
#define SPRN_IAC1 0x138
/* Book E Instruction Address Compare 1 */
#define SPRN_IAC2 0x139
/* Book E Instruction Address Compare 2 */
#endif
/* CONFIG_BOOKE */
#endif
#define SPRN_IBAT0L 0x211
/* Instruction BAT 0 Lower Register */
#define SPRN_IBAT0U 0x210
/* Instruction BAT 0 Upper Register */
#define SPRN_IBAT1L 0x213
/* Instruction BAT 1 Lower Register */
...
...
@@ -318,10 +200,6 @@
#define SPRN_IBAT6U 0x234
/* Instruction BAT 6 Upper Register */
#define SPRN_IBAT7L 0x237
/* Instruction BAT 7 Lower Register */
#define SPRN_IBAT7U 0x236
/* Instruction BAT 7 Upper Register */
#define SPRN_ICCR 0x3FB
/* Instruction Cache Cacheability Register */
#define ICCR_NOCACHE 0
/* Noncacheable */
#define ICCR_CACHE 1
/* Cacheable */
#define SPRN_ICDBDR 0x3D3
/* Instruction Cache Debug Data Register */
#define SPRN_ICMP 0x3D5
/* Instruction TLB Compare Register */
#define SPRN_ICTC 0x3FB
/* Instruction Cache Throttling Control Reg */
#define SPRN_ICTRL 0x3F3
/* 1011 7450 icache and interrupt ctrl */
...
...
@@ -388,18 +266,9 @@
#define SPRN_LR 0x008
/* Link Register */
#define SPRN_MMCR0 0x3B8
/* Monitor Mode Control Register 0 */
#define SPRN_MMCR1 0x3BC
/* Monitor Mode Control Register 1 */
#define SPRN_PBL1 0x3FC
/* Protection Bound Lower 1 */
#define SPRN_PBL2 0x3FE
/* Protection Bound Lower 2 */
#define SPRN_PBU1 0x3FD
/* Protection Bound Upper 1 */
#define SPRN_PBU2 0x3FF
/* Protection Bound Upper 2 */
#ifndef CONFIG_BOOKE
#define SPRN_PID 0x3B1
/* Process ID */
#ifndef SPRN_PIR
#define SPRN_PIR 0x3FF
/* Processor Identification Register */
#else
#define SPRN_PID 0x030
/* Book E Process ID */
#define SPRN_PIR 0x11E
/* Book E Processor Identification Register */
#endif
/* CONFIG_BOOKE */
#define SPRN_PIT 0x3DB
/* Programmable Interval Timer */
#endif
#define SPRN_PMC1 0x3B9
/* Performance Counter Register 1 */
#define SPRN_PMC2 0x3BA
/* Performance Counter Register 2 */
#define SPRN_PMC3 0x3BD
/* Performance Counter Register 3 */
...
...
@@ -410,60 +279,19 @@
#define SPRN_RPA 0x3D6
/* Required Physical Address Register */
#define SPRN_SDA 0x3BF
/* Sampled Data Address Register */
#define SPRN_SDR1 0x019
/* MMU Hash Base Register */
#define SPRN_SGR 0x3B9
/* Storage Guarded Register */
#define SGR_NORMAL 0
#define SGR_GUARDED 1
#define SPRN_SIA 0x3BB
/* Sampled Instruction Address Register */
#define SPRN_SLER 0x3BB
/* Little-endian real mode */
#define SPRN_SPRG0 0x110
/* Special Purpose Register General 0 */
#define SPRN_SPRG1 0x111
/* Special Purpose Register General 1 */
#define SPRN_SPRG2 0x112
/* Special Purpose Register General 2 */
#define SPRN_SPRG3 0x113
/* Special Purpose Register General 3 */
#define SPRN_SPRG4 0x114
/* Special Purpose Register General 4
(4xx)
*/
#define SPRN_SPRG5 0x115
/* Special Purpose Register General 5
(4xx)
*/
#define SPRN_SPRG6 0x116
/* Special Purpose Register General 6
(4xx)
*/
#define SPRN_SPRG7 0x117
/* Special Purpose Register General 7
(4xx)
*/
#define SPRN_SPRG4 0x114
/* Special Purpose Register General 4 */
#define SPRN_SPRG5 0x115
/* Special Purpose Register General 5 */
#define SPRN_SPRG6 0x116
/* Special Purpose Register General 6 */
#define SPRN_SPRG7 0x117
/* Special Purpose Register General 7 */
#define SPRN_SRR0 0x01A
/* Save/Restore Register 0 */
#define SPRN_SRR1 0x01B
/* Save/Restore Register 1 */
#define SPRN_SRR2 0x3DE
/* Save/Restore Register 2 */
#define SPRN_SRR3 0x3DF
/* Save/Restore Register 3 */
#define SPRN_SU0R 0x3BC
/* "User 0" real mode */
#define SPRN_TBHI 0x3DC
/* Time Base High (4xx) */
#define SPRN_TBHU 0x3CC
/* Time Base High User-mode (4xx) */
#define SPRN_TBLO 0x3DD
/* Time Base Low (4xx) */
#define SPRN_TBLU 0x3CD
/* Time Base Low User-mode (4xx) */
#define SPRN_TBRL 0x10C
/* Time Base Read Lower Register (user, R/O) */
#define SPRN_TBRU 0x10D
/* Time Base Read Upper Register (user, R/O) */
#define SPRN_TBWL 0x11C
/* Time Base Lower Register (super, R/W) */
#define SPRN_TBWU 0x11D
/* Time Base Upper Register (super, R/W) */
#ifndef CONFIG_BOOKE
#define SPRN_TCR 0x3DA
/* Timer Control Register */
#else
#define SPRN_TCR 0x154
/* Book E Timer Control Register */
#endif
#define TCR_WP(x) (((x)&0x3)<<30)
/* WDT Period */
#define TCR_WP_MASK TCR_WP(3)
#define WP_2_17 0
/* 2^17 clocks */
#define WP_2_21 1
/* 2^21 clocks */
#define WP_2_25 2
/* 2^25 clocks */
#define WP_2_29 3
/* 2^29 clocks */
#define TCR_WRC(x) (((x)&0x3)<<28)
/* WDT Reset Control */
#define TCR_WRC_MASK TCR_WRC(3)
#define WRC_NONE 0
/* No reset will occur */
#define WRC_CORE 1
/* Core reset will occur */
#define WRC_CHIP 2
/* Chip reset will occur */
#define WRC_SYSTEM 3
/* System reset will occur */
#define TCR_WIE 0x08000000
/* WDT Interrupt Enable */
#define TCR_PIE 0x04000000
/* PIT Interrupt Enable */
#define TCR_DIE TCR_PIE
/* DEC Interrupt Enable */
#define TCR_FP(x) (((x)&0x3)<<24)
/* FIT Period */
#define TCR_FP_MASK TCR_FP(3)
#define FP_2_9 0
/* 2^9 clocks */
#define FP_2_13 1
/* 2^13 clocks */
#define FP_2_17 2
/* 2^17 clocks */
#define FP_2_21 3
/* 2^21 clocks */
#define TCR_FIE 0x00800000
/* FIT Interrupt Enable */
#define TCR_ARE 0x00400000
/* Auto Reload Enable */
#define SPRN_THRM1 0x3FC
/* Thermal Management Register 1 */
/* these bits were defined in inverted endian sense originally, ugh, confusing */
#define THRM1_TIN (1 << 31)
...
...
@@ -477,21 +305,6 @@
#define SPRN_THRM3 0x3FE
/* Thermal Management Register 3 */
#define THRM3_E (1<<0)
#define SPRN_TLBMISS 0x3D4
/* 980 7450 TLB Miss Register */
#ifndef CONFIG_BOOKE
#define SPRN_TSR 0x3D8
/* Timer Status Register */
#else
#define SPRN_TSR 0x150
/* Book E Timer Status Register */
#endif
/* CONFIG_BOOKE */
#define TSR_ENW 0x80000000
/* Enable Next Watchdog */
#define TSR_WIS 0x40000000
/* WDT Interrupt Status */
#define TSR_WRS(x) (((x)&0x3)<<28)
/* WDT Reset Status */
#define WRS_NONE 0
/* No WDT reset occurred */
#define WRS_CORE 1
/* WDT forced core reset */
#define WRS_CHIP 2
/* WDT forced chip reset */
#define WRS_SYSTEM 3
/* WDT forced system reset */
#define TSR_PIS 0x08000000
/* PIT Interrupt Status */
#define TSR_DIS TSR_PIS
/* DEC Interrupt Status */
#define TSR_FIS 0x04000000
/* FIT Interrupt Status */
#define SPRN_UMMCR0 0x3A8
/* User Monitor Mode Control Register 0 */
#define SPRN_UMMCR1 0x3AC
/* User Monitor Mode Control Register 0 */
#define SPRN_UPMC1 0x3A9
/* User Performance Counter Register 1 */
...
...
@@ -501,49 +314,8 @@
#define SPRN_USIA 0x3AB
/* User Sampled Instruction Address Register */
#define SPRN_VRSAVE 0x100
/* Vector Register Save Register */
#define SPRN_XER 0x001
/* Fixed Point Exception Register */
#define SPRN_ZPR 0x3B0
/* Zone Protection Register */
/* Book E definitions */
#define SPRN_DECAR 0x036
/* Decrementer Auto Reload Register */
#define SPRN_CSRR0 0x03A
/* Critical Save and Restore Register 0 */
#define SPRN_CSRR1 0x03B
/* Critical Save and Restore Register 1 */
#define SPRN_IVPR 0x03F
/* Interrupt Vector Prefix Register */
#define SPRN_USPRG0 0x100
/* User Special Purpose Register General 0 */
#define SPRN_SPRG4R 0x104
/* Special Purpose Register General 4 Read */
#define SPRN_SPRG5R 0x105
/* Special Purpose Register General 5 Read */
#define SPRN_SPRG6R 0x106
/* Special Purpose Register General 6 Read */
#define SPRN_SPRG7R 0x107
/* Special Purpose Register General 7 Read */
#define SPRN_SPRG4W 0x114
/* Special Purpose Register General 4 Write */
#define SPRN_SPRG5W 0x115
/* Special Purpose Register General 5 Write */
#define SPRN_SPRG6W 0x116
/* Special Purpose Register General 6 Write */
#define SPRN_SPRG7W 0x117
/* Special Purpose Register General 7 Write */
#define SPRN_DBCR2 0x136
/* Debug Control Register 2 */
#define SPRN_IAC3 0x13A
/* Instruction Address Compare 3 */
#define SPRN_IAC4 0x13B
/* Instruction Address Compare 4 */
#define SPRN_DVC1 0x13E
/* */
#define SPRN_DVC2 0x13F
/* */
#define SPRN_IVOR0 0x190
/* Interrupt Vector Offset Register 0 */
#define SPRN_IVOR1 0x191
/* Interrupt Vector Offset Register 1 */
#define SPRN_IVOR2 0x192
/* Interrupt Vector Offset Register 2 */
#define SPRN_IVOR3 0x193
/* Interrupt Vector Offset Register 3 */
#define SPRN_IVOR4 0x194
/* Interrupt Vector Offset Register 4 */
#define SPRN_IVOR5 0x195
/* Interrupt Vector Offset Register 5 */
#define SPRN_IVOR6 0x196
/* Interrupt Vector Offset Register 6 */
#define SPRN_IVOR7 0x197
/* Interrupt Vector Offset Register 7 */
#define SPRN_IVOR8 0x198
/* Interrupt Vector Offset Register 8 */
#define SPRN_IVOR9 0x199
/* Interrupt Vector Offset Register 9 */
#define SPRN_IVOR10 0x19a
/* Interrupt Vector Offset Register 10 */
#define SPRN_IVOR11 0x19b
/* Interrupt Vector Offset Register 11 */
#define SPRN_IVOR12 0x19c
/* Interrupt Vector Offset Register 12 */
#define SPRN_IVOR13 0x19d
/* Interrupt Vector Offset Register 13 */
#define SPRN_IVOR14 0x19e
/* Interrupt Vector Offset Register 14 */
#define SPRN_IVOR15 0x19f
/* Interrupt Vector Offset Register 15 */
#define SPRN_MMUCR 0x3b2
/* MMU Control Register */
#define ESR_ST 0x00800000
/* Store Operation */
/* Short-hand versions for a number of the above SPRNs */
#define CTR SPRN_CTR
/* Counter Register */
#define DAR SPRN_DAR
/* Data Address Register */
#define DABR SPRN_DABR
/* Data Address Breakpoint Register */
...
...
@@ -563,7 +335,6 @@
#define DBAT6U SPRN_DBAT6U
/* Data BAT 6 Upper Register */
#define DBAT7L SPRN_DBAT7L
/* Data BAT 7 Lower Register */
#define DBAT7U SPRN_DBAT7U
/* Data BAT 7 Upper Register */
#define DCMP SPRN_DCMP
/* Data TLB Compare Register */
#define DEC SPRN_DEC
/* Decrement Register */
#define DMISS SPRN_DMISS
/* Data TLB Miss Register */
#define DSISR SPRN_DSISR
/* Data Storage Interrupt Status Register */
...
...
@@ -602,7 +373,7 @@
#define SPR1 SPRN_SPRG1
#define SPR2 SPRN_SPRG2
#define SPR3 SPRN_SPRG3
#define SPR4 SPRN_SPRG4
/* Supervisor Private Registers (4xx) */
#define SPR4 SPRN_SPRG4
#define SPR5 SPRN_SPRG5
#define SPR6 SPRN_SPRG6
#define SPR7 SPRN_SPRG7
...
...
@@ -614,25 +385,11 @@
#define SPRG5 SPRN_SPRG5
#define SPRG6 SPRN_SPRG6
#define SPRG7 SPRN_SPRG7
#define SPRG4R SPRN_SPRG4R
/* Book E Supervisor Private Registers */
#define SPRG5R SPRN_SPRG5R
#define SPRG6R SPRN_SPRG6R
#define SPRG7R SPRN_SPRG7R
#define SPRG4W SPRN_SPRG4W
#define SPRG5W SPRN_SPRG5W
#define SPRG6W SPRN_SPRG6W
#define SPRG7W SPRN_SPRG7W
#define CSRR0 SPRN_CSRR0
/* Critical Save and Restore Register 0 */
#define CSRR1 SPRN_CSRR1
/* Critical Save and Restore Register 1 */
#define SRR0 SPRN_SRR0
/* Save and Restore Register 0 */
#define SRR1 SPRN_SRR1
/* Save and Restore Register 1 */
#define SRR2 SPRN_SRR2
/* Save and Restore Register 2 */
#define SRR3 SPRN_SRR3
/* Save and Restore Register 3 */
#define TBRL SPRN_TBRL
/* Time Base Read Lower Register */
#define TBRU SPRN_TBRU
/* Time Base Read Upper Register */
#define TBWL SPRN_TBWL
/* Time Base Write Lower Register */
#define TBWU SPRN_TBWU
/* Time Base Write Upper Register */
#define ICTC 1019
#define ICTC SPRN_ICTC
/* Instruction Cache Throttling Control Reg */
#define THRM1 SPRN_THRM1
/* Thermal Management Register 1 */
#define THRM2 SPRN_THRM2
/* Thermal Management Register 2 */
#define THRM3 SPRN_THRM3
/* Thermal Management Register 3 */
...
...
include/asm-ppc/reg_booke.h
0 → 100644
View file @
a40ffec5
/*
* Contains register definitions common to the Book E PowerPC
* specification. Notice that while the IBM-40x series of CPUs
* are not true Book E PowerPCs, they borrowed a number of features
* before Book E was finalized, and are included here as well. Unfortunatly,
* they sometimes used different locations than true Book E CPUs did.
*/
#ifdef __KERNEL__
#ifndef __ASM_PPC_REG_BOOKE_H__
#define __ASM_PPC_REG_BOOKE_H__
#ifndef __ASSEMBLY__
/* Device Control Registers */
#define mfdcr(rn) mfdcr_or_dflt(rn, 0)
#define mfdcr_or_dflt(rn,default_rval) \
({unsigned int rval; \
if (rn == 0) \
rval = default_rval; \
else \
asm volatile("mfdcr %0," __stringify(rn) : "=r" (rval)); \
rval;})
#define mtdcr(rn, v) \
do { \
if (rn != 0) \
asm volatile("mtdcr " __stringify(rn) ",%0" : : "r" (v)); \
} while (0)
/* R/W of indirect DCRs make use of standard naming conventions for DCRs */
#define mfdcri(base, reg) \
({ \
mtdcr(base ## _CFGADDR, base ## _ ## reg); \
mfdcr(base ## _CFGDATA); \
})
#define mtdcri(base, reg, data) \
do { \
mtdcr(base ## _CFGADDR, base ## _ ## reg); \
mtdcr(base ## _CFGDATA, data); \
} while (0)
#endif
/* __ASSEMBLY__ */
/* Machine State Register (MSR) Fields */
#define MSR_DWE (1<<10)
/* Debug Wait Enable */
#define MSR_IS MSR_IR
/* Instruction Space */
#define MSR_DS MSR_DR
/* Data Space */
/* Default MSR for kernel mode. */
#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR|MSR_CE|MSR_DE)
/* Special Purpose Registers (SPRNs)*/
#define SPRN_DECAR 0x036
/* Decrementer Auto Reload Register */
#define SPRN_CSRR0 0x03A
/* Critical Save and Restore Register 0 */
#define SPRN_CSRR1 0x03B
/* Critical Save and Restore Register 1 */
#define SPRN_IVPR 0x03F
/* Interrupt Vector Prefix Register */
#define SPRN_USPRG0 0x100
/* User Special Purpose Register General 0 */
#define SPRN_SPRG4R 0x104
/* Special Purpose Register General 4 Read */
#define SPRN_SPRG5R 0x105
/* Special Purpose Register General 5 Read */
#define SPRN_SPRG6R 0x106
/* Special Purpose Register General 6 Read */
#define SPRN_SPRG7R 0x107
/* Special Purpose Register General 7 Read */
#define SPRN_TBRL 0x10C
/* Time Base Read Lower Register (user, R/O) */
#define SPRN_TBRU 0x10D
/* Time Base Read Upper Register (user, R/O) */
#define SPRN_SPRG4W 0x114
/* Special Purpose Register General 4 Write */
#define SPRN_SPRG5W 0x115
/* Special Purpose Register General 5 Write */
#define SPRN_SPRG6W 0x116
/* Special Purpose Register General 6 Write */
#define SPRN_SPRG7W 0x117
/* Special Purpose Register General 7 Write */
#define SPRN_TBWL 0x11C
/* Time Base Lower Register (super, R/W) */
#define SPRN_TBWU 0x11D
/* Time Base Upper Register (super, R/W) */
#define SPRN_DBCR2 0x136
/* Debug Control Register 2 */
#define SPRN_IAC3 0x13A
/* Instruction Address Compare 3 */
#define SPRN_IAC4 0x13B
/* Instruction Address Compare 4 */
#define SPRN_DVC1 0x13E
/* Data Value Compare Register 1 */
#define SPRN_DVC2 0x13F
/* Data Value Compare Register 2 */
#define SPRN_IVOR0 0x190
/* Interrupt Vector Offset Register 0 */
#define SPRN_IVOR1 0x191
/* Interrupt Vector Offset Register 1 */
#define SPRN_IVOR2 0x192
/* Interrupt Vector Offset Register 2 */
#define SPRN_IVOR3 0x193
/* Interrupt Vector Offset Register 3 */
#define SPRN_IVOR4 0x194
/* Interrupt Vector Offset Register 4 */
#define SPRN_IVOR5 0x195
/* Interrupt Vector Offset Register 5 */
#define SPRN_IVOR6 0x196
/* Interrupt Vector Offset Register 6 */
#define SPRN_IVOR7 0x197
/* Interrupt Vector Offset Register 7 */
#define SPRN_IVOR8 0x198
/* Interrupt Vector Offset Register 8 */
#define SPRN_IVOR9 0x199
/* Interrupt Vector Offset Register 9 */
#define SPRN_IVOR10 0x19A
/* Interrupt Vector Offset Register 10 */
#define SPRN_IVOR11 0x19B
/* Interrupt Vector Offset Register 11 */
#define SPRN_IVOR12 0x19C
/* Interrupt Vector Offset Register 12 */
#define SPRN_IVOR13 0x19D
/* Interrupt Vector Offset Register 13 */
#define SPRN_IVOR14 0x19E
/* Interrupt Vector Offset Register 14 */
#define SPRN_IVOR15 0x19F
/* Interrupt Vector Offset Register 15 */
#define SPRN_ZPR 0x3B0
/* Zone Protection Register (40x) */
#define SPRN_MMUCR 0x3B2
/* MMU Control Register */
#define SPRN_CCR0 0x3B3
/* Core Configuration Register */
#define SPRN_SGR 0x3B9
/* Storage Guarded Register */
#define SPRN_DCWR 0x3BA
/* Data Cache Write-thru Register */
#define SPRN_SLER 0x3BB
/* Little-endian real mode */
#define SPRN_SU0R 0x3BC
/* "User 0" real mode (40x) */
#define SPRN_DCMP 0x3D1
/* Data TLB Compare Register */
#define SPRN_ICDBDR 0x3D3
/* Instruction Cache Debug Data Register */
#define SPRN_EVPR 0x3D6
/* Exception Vector Prefix Register */
#define SPRN_PIT 0x3DB
/* Programmable Interval Timer */
#define SPRN_DCCR 0x3FA
/* Data Cache Cacheability Register */
#define SPRN_ICCR 0x3FB
/* Instruction Cache Cacheability Register */
/*
* SPRs which have conflicting definitions on true Book E versus classic,
* or IBM 40x.
*/
#ifdef CONFIG_BOOKE
#define SPRN_PID 0x030
/* Process ID */
#define SPRN_DEAR 0x03D
/* Data Error Address Register */
#define SPRN_ESR 0x03E
/* Exception Syndrome Register */
#define SPRN_PIR 0x11E
/* Processor Identification Register */
#define SPRN_DBSR 0x130
/* Debug Status Register */
#define SPRN_DBCR0 0x134
/* Debug Control Register 0 */
#define SPRN_DBCR1 0x135
/* Debug Control Register 1 */
#define SPRN_IAC1 0x138
/* Instruction Address Compare 1 */
#define SPRN_IAC2 0x139
/* Instruction Address Compare 2 */
#define SPRN_DAC1 0x13C
/* Data Address Compare 1 */
#define SPRN_DAC2 0x13D
/* Data Address Compare 2 */
#define SPRN_TSR 0x150
/* Timer Status Register */
#define SPRN_TCR 0x154
/* Timer Control Register */
#endif
/* Book E */
#ifdef CONFIG_40x
#define SPRN_PID 0x3B1
/* Process ID */
#define SPRN_DBCR1 0x3BD
/* Debug Control Register 1 */
#define SPRN_ESR 0x3D4
/* Exception Syndrome Register */
#define SPRN_DEAR 0x3D5
/* Data Error Address Register */
#define SPRN_TSR 0x3D8
/* Timer Status Register */
#define SPRN_TCR 0x3DA
/* Timer Control Register */
#define SPRN_DBSR 0x3F0
/* Debug Status Register */
#define SPRN_DBCR0 0x3F2
/* Debug Control Register 0 */
#endif
/* Bit definitions for the DBSR. */
/*
* DBSR bits which have conflicting definitions on true Book E versus IBM 40x.
*/
#ifdef CONFIG_BOOKE
#define DBSR_IC 0x08000000
/* Instruction Completion */
#define DBSR_TIE 0x01000000
/* Trap Instruction Event */
#endif
#ifdef CONFIG_40x
#define DBSR_IC 0x80000000
/* Instruction Completion */
#define DBSR_BT 0x40000000
/* Branch taken */
#define DBSR_TIE 0x10000000
/* Trap Instruction debug Event */
#endif
/* Bit definitions related to the ESR. */
#define ESR_MCI 0x80000000
/* Machine Check - Instruction */
#define ESR_IMCP 0x80000000
/* Instr. Machine Check - Protection */
#define ESR_IMCN 0x40000000
/* Instr. Machine Check - Non-config */
#define ESR_IMCB 0x20000000
/* Instr. Machine Check - Bus error */
#define ESR_IMCT 0x10000000
/* Instr. Machine Check - Timeout */
#define ESR_PIL 0x08000000
/* Program Exception - Illegal */
#define ESR_PPR 0x04000000
/* Program Exception - Priveleged */
#define ESR_PTR 0x02000000
/* Program Exception - Trap */
#define ESR_DST 0x00800000
/* Storage Exception - Data miss */
#define ESR_DIZ 0x00400000
/* Storage Exception - Zone fault */
#define ESR_ST 0x00800000
/* Store Operation */
/* Bit definitions related to the DBCR0. */
#define DBCR0_EDM 0x80000000
/* External Debug Mode */
#define DBCR0_IDM 0x40000000
/* Internal Debug Mode */
#define DBCR0_RST 0x30000000
/* all the bits in the RST field */
#define DBCR0_RST_SYSTEM 0x30000000
/* System Reset */
#define DBCR0_RST_CHIP 0x20000000
/* Chip Reset */
#define DBCR0_RST_CORE 0x10000000
/* Core Reset */
#define DBCR0_RST_NONE 0x00000000
/* No Reset */
#define DBCR0_IC 0x08000000
/* Instruction Completion */
#define DBCR0_BT 0x04000000
/* Branch Taken */
#define DBCR0_EDE 0x02000000
/* Exception Debug Event */
#define DBCR0_TDE 0x01000000
/* TRAP Debug Event */
#define DBCR0_IA1 0x00800000
/* Instr Addr compare 1 enable */
#define DBCR0_IA2 0x00400000
/* Instr Addr compare 2 enable */
#define DBCR0_IA12 0x00200000
/* Instr Addr 1-2 range enable */
#define DBCR0_IA12X 0x00100000
/* Instr Addr 1-2 range eXclusive */
#define DBCR0_IA3 0x00080000
/* Instr Addr compare 3 enable */
#define DBCR0_IA4 0x00040000
/* Instr Addr compare 4 enable */
#define DBCR0_IA34 0x00020000
/* Instr Addr 3-4 range Enable */
#define DBCR0_IA34X 0x00010000
/* Instr Addr 3-4 range eXclusive */
#define DBCR0_IA12T 0x00008000
/* Instr Addr 1-2 range Toggle */
#define DBCR0_IA34T 0x00004000
/* Instr Addr 3-4 range Toggle */
#define DBCR0_FT 0x00000001
/* Freeze Timers on debug event */
/* Bit definitions related to the TCR. */
#define TCR_WP(x) (((x)&0x3)<<30)
/* WDT Period */
#define TCR_WP_MASK TCR_WP(3)
#define WP_2_17 0
/* 2^17 clocks */
#define WP_2_21 1
/* 2^21 clocks */
#define WP_2_25 2
/* 2^25 clocks */
#define WP_2_29 3
/* 2^29 clocks */
#define TCR_WRC(x) (((x)&0x3)<<28)
/* WDT Reset Control */
#define TCR_WRC_MASK TCR_WRC(3)
#define WRC_NONE 0
/* No reset will occur */
#define WRC_CORE 1
/* Core reset will occur */
#define WRC_CHIP 2
/* Chip reset will occur */
#define WRC_SYSTEM 3
/* System reset will occur */
#define TCR_WIE 0x08000000
/* WDT Interrupt Enable */
#define TCR_PIE 0x04000000
/* PIT Interrupt Enable */
#define TCR_DIE TCR_PIE
/* DEC Interrupt Enable */
#define TCR_FP(x) (((x)&0x3)<<24)
/* FIT Period */
#define TCR_FP_MASK TCR_FP(3)
#define FP_2_9 0
/* 2^9 clocks */
#define FP_2_13 1
/* 2^13 clocks */
#define FP_2_17 2
/* 2^17 clocks */
#define FP_2_21 3
/* 2^21 clocks */
#define TCR_FIE 0x00800000
/* FIT Interrupt Enable */
#define TCR_ARE 0x00400000
/* Auto Reload Enable */
/* Bit definitions for the TSR. */
#define TSR_ENW 0x80000000
/* Enable Next Watchdog */
#define TSR_WIS 0x40000000
/* WDT Interrupt Status */
#define TSR_WRS(x) (((x)&0x3)<<28)
/* WDT Reset Status */
#define WRS_NONE 0
/* No WDT reset occurred */
#define WRS_CORE 1
/* WDT forced core reset */
#define WRS_CHIP 2
/* WDT forced chip reset */
#define WRS_SYSTEM 3
/* WDT forced system reset */
#define TSR_PIS 0x08000000
/* PIT Interrupt Status */
#define TSR_DIS TSR_PIS
/* DEC Interrupt Status */
#define TSR_FIS 0x04000000
/* FIT Interrupt Status */
/* Bit definitions for the DCCR. */
#define DCCR_NOCACHE 0
/* Noncacheable */
#define DCCR_CACHE 1
/* Cacheable */
/* Bit definitions for DCWR. */
#define DCWR_COPY 0
/* Copy-back */
#define DCWR_WRITE 1
/* Write-through */
/* Bit definitions for ICCR. */
#define ICCR_NOCACHE 0
/* Noncacheable */
#define ICCR_CACHE 1
/* Cacheable */
/* Bit definitions for SGR. */
#define SGR_NORMAL 0
/* Speculative fetching allowed. */
#define SGR_GUARDED 1
/* Speculative fetching disallowed. */
/* Short-hand for various SPRs. */
#define CSRR0 SPRN_CSRR0
/* Critical Save and Restore Register 0 */
#define CSRR1 SPRN_CSRR1
/* Critical Save and Restore Register 1 */
#define DCMP SPRN_DCMP
/* Data TLB Compare Register */
#define SPRG4R SPRN_SPRG4R
/* Supervisor Private Registers */
#define SPRG5R SPRN_SPRG5R
#define SPRG6R SPRN_SPRG6R
#define SPRG7R SPRN_SPRG7R
#define SPRG4W SPRN_SPRG4W
#define SPRG5W SPRN_SPRG5W
#define SPRG6W SPRN_SPRG6W
#define SPRG7W SPRN_SPRG7W
#define TBRL SPRN_TBRL
/* Time Base Read Lower Register */
#define TBRU SPRN_TBRU
/* Time Base Read Upper Register */
#define TBWL SPRN_TBWL
/* Time Base Write Lower Register */
#define TBWU SPRN_TBWU
/* Time Base Write Upper Register */
/*
* The IBM-403 is an even more odd special case, as it is much
* older than the IBM-405 series. We put these down here incase someone
* wishes to support these machines again.
*/
#ifdef CONFIG_403GCX
/* Special Purpose Registers (SPRNs)*/
#define SPRN_TBHU 0x3CC
/* Time Base High User-mode */
#define SPRN_TBLU 0x3CD
/* Time Base Low User-mode */
#define SPRN_CDBCR 0x3D7
/* Cache Debug Control Register */
#define SPRN_TBHI 0x3DC
/* Time Base High */
#define SPRN_TBLO 0x3DD
/* Time Base Low */
#define SPRN_DBCR 0x3F2
/* Debug Control Regsiter */
#define SPRN_PBL1 0x3FC
/* Protection Bound Lower 1 */
#define SPRN_PBL2 0x3FE
/* Protection Bound Lower 2 */
#define SPRN_PBU1 0x3FD
/* Protection Bound Upper 1 */
#define SPRN_PBU2 0x3FF
/* Protection Bound Upper 2 */
/* Bit definitions for the DBCR. */
#define DBCR_EDM DBCR0_EDM
#define DBCR_IDM DBCR0_IDM
#define DBCR_RST(x) (((x) & 0x3) << 28)
#define DBCR_RST_NONE 0
#define DBCR_RST_CORE 1
#define DBCR_RST_CHIP 2
#define DBCR_RST_SYSTEM 3
#define DBCR_IC DBCR0_IC
/* Instruction Completion Debug Evnt */
#define DBCR_BT DBCR0_BT
/* Branch Taken Debug Event */
#define DBCR_EDE DBCR0_EDE
/* Exception Debug Event */
#define DBCR_TDE DBCR0_TDE
/* TRAP Debug Event */
#define DBCR_FER 0x00F80000
/* First Events Remaining Mask */
#define DBCR_FT 0x00040000
/* Freeze Timers on Debug Event */
#define DBCR_IA1 0x00020000
/* Instr. Addr. Compare 1 Enable */
#define DBCR_IA2 0x00010000
/* Instr. Addr. Compare 2 Enable */
#define DBCR_D1R 0x00008000
/* Data Addr. Compare 1 Read Enable */
#define DBCR_D1W 0x00004000
/* Data Addr. Compare 1 Write Enable */
#define DBCR_D1S(x) (((x) & 0x3) << 12)
/* Data Adrr. Compare 1 Size */
#define DAC_BYTE 0
#define DAC_HALF 1
#define DAC_WORD 2
#define DAC_QUAD 3
#define DBCR_D2R 0x00000800
/* Data Addr. Compare 2 Read Enable */
#define DBCR_D2W 0x00000400
/* Data Addr. Compare 2 Write Enable */
#define DBCR_D2S(x) (((x) & 0x3) << 8)
/* Data Addr. Compare 2 Size */
#define DBCR_SBT 0x00000040
/* Second Branch Taken Debug Event */
#define DBCR_SED 0x00000020
/* Second Exception Debug Event */
#define DBCR_STD 0x00000010
/* Second Trap Debug Event */
#define DBCR_SIA 0x00000008
/* Second IAC Enable */
#define DBCR_SDA 0x00000004
/* Second DAC Enable */
#define DBCR_JOI 0x00000002
/* JTAG Serial Outbound Int. Enable */
#define DBCR_JII 0x00000001
/* JTAG Serial Inbound Int. Enable */
#endif
/* 403GCX */
#endif
/* __ASM_PPC_REG_BOOKE_H__ */
#endif
/* __KERNEL__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment