reg_booke.h
来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 452 行 · 第 1/2 页
H
452 行
#define DBSR_DAC1W 0x00040000 /* Data Addr Compare 1 Write Event */#define DBSR_DAC2R 0x00020000 /* Data Addr Compare 2 Read Event */#define DBSR_DAC2W 0x00010000 /* Data Addr Compare 2 Write 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 */#define DBSR_IAC1 0x00800000 /* Instruction Address Compare 1 Event */#define DBSR_IAC2 0x00400000 /* Instruction Address Compare 2 Event */#define DBSR_IAC3 0x00200000 /* Instruction Address Compare 3 Event */#define DBSR_IAC4 0x00100000 /* Instruction Address Compare 4 Event */#define DBSR_DAC1R 0x00080000 /* Data Address Compare 1 Read Event */#define DBSR_DAC1W 0x00040000 /* Data Address Compare 1 Write Event */#define DBSR_DAC2R 0x00020000 /* Data Address Compare 2 Read Event */#define DBSR_DAC2W 0x00010000 /* Data Address Compare 2 Write 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 */#define ESR_DLK 0x00200000 /* Data Cache Locking */#define ESR_ILK 0x00100000 /* Instr. Cache Locking */#define ESR_BO 0x00020000 /* Byte Ordering *//* 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 L1CSR0. */#define L1CSR0_DCFI 0x00000002 /* Data Cache Flash Invalidate */#define L1CSR0_DCE 0x00000001 /* Data Cache Enable *//* Bit definitions for L1CSR0. */#define L1CSR1_ICLFR 0x00000100 /* Instr Cache Lock Bits Flash Reset */#define L1CSR1_ICFI 0x00000002 /* Instr Cache Flash Invalidate */#define L1CSR1_ICE 0x00000001 /* Instr Cache Enable *//* Bit definitions for SGR. */#define SGR_NORMAL 0 /* Speculative fetching allowed. */#define SGR_GUARDED 1 /* Speculative fetching disallowed. *//* Bit definitions for SPEFSCR. */#define SPEFSCR_SOVH 0x80000000 /* Summary integer overflow high */#define SPEFSCR_OVH 0x40000000 /* Integer overflow high */#define SPEFSCR_FGH 0x20000000 /* Embedded FP guard bit high */#define SPEFSCR_FXH 0x10000000 /* Embedded FP sticky bit high */#define SPEFSCR_FINVH 0x08000000 /* Embedded FP invalid operation high */#define SPEFSCR_FDBZH 0x04000000 /* Embedded FP div by zero high */#define SPEFSCR_FUNFH 0x02000000 /* Embedded FP underflow high */#define SPEFSCR_FOVFH 0x01000000 /* Embedded FP overflow high */#define SPEFSCR_FINXS 0x00200000 /* Embedded FP inexact sticky */#define SPEFSCR_FINVS 0x00100000 /* Embedded FP invalid op. sticky */#define SPEFSCR_FDBZS 0x00080000 /* Embedded FP div by zero sticky */#define SPEFSCR_FUNFS 0x00040000 /* Embedded FP underflow sticky */#define SPEFSCR_FOVFS 0x00020000 /* Embedded FP overflow sticky */#define SPEFSCR_MODE 0x00010000 /* Embedded FP mode */#define SPEFSCR_SOV 0x00008000 /* Integer summary overflow */#define SPEFSCR_OV 0x00004000 /* Integer overflow */#define SPEFSCR_FG 0x00002000 /* Embedded FP guard bit */#define SPEFSCR_FX 0x00001000 /* Embedded FP sticky bit */#define SPEFSCR_FINV 0x00000800 /* Embedded FP invalid operation */#define SPEFSCR_FDBZ 0x00000400 /* Embedded FP div by zero */#define SPEFSCR_FUNF 0x00000200 /* Embedded FP underflow */#define SPEFSCR_FOVF 0x00000100 /* Embedded FP overflow */#define SPEFSCR_FINXE 0x00000040 /* Embedded FP inexact enable */#define SPEFSCR_FINVE 0x00000020 /* Embedded FP invalid op. enable */#define SPEFSCR_FDBZE 0x00000010 /* Embedded FP div by zero enable */#define SPEFSCR_FUNFE 0x00000008 /* Embedded FP underflow enable */#define SPEFSCR_FOVFE 0x00000004 /* Embedded FP overflow enable */#define SPEFSCR_FRMC 0x00000003 /* Embedded FP rounding mode control *//* Short-hand for various SPRs. */#ifdef CONFIG_BOOKE#define CSRR0 SPRN_CSRR0 /* Critical Save and Restore Register 0 */#define CSRR1 SPRN_CSRR1 /* Critical Save and Restore Register 1 */#else#define CSRR0 SPRN_SRR2 /* Logically and functionally equivalent. */#define CSRR1 SPRN_SRR3 /* Logically and functionally equivalent. */#endif#define MCSRR0 SPRN_MCSRR0 /* Machine Check Save and Restore Register 0 */#define MCSRR1 SPRN_MCSRR1 /* Machine Check 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/* * 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__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?