diff options
Diffstat (limited to 'arch/microblaze/include/asm/pvr.h')
-rw-r--r-- | arch/microblaze/include/asm/pvr.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/microblaze/include/asm/pvr.h b/arch/microblaze/include/asm/pvr.h index 9578666e98ba..37db96a15b45 100644 --- a/arch/microblaze/include/asm/pvr.h +++ b/arch/microblaze/include/asm/pvr.h | |||
@@ -30,7 +30,9 @@ struct pvr_s { | |||
30 | #define PVR0_USE_EXC_MASK 0x04000000 | 30 | #define PVR0_USE_EXC_MASK 0x04000000 |
31 | #define PVR0_USE_ICACHE_MASK 0x02000000 | 31 | #define PVR0_USE_ICACHE_MASK 0x02000000 |
32 | #define PVR0_USE_DCACHE_MASK 0x01000000 | 32 | #define PVR0_USE_DCACHE_MASK 0x01000000 |
33 | #define PVR0_USE_MMU 0x00800000 /* new */ | 33 | #define PVR0_USE_MMU 0x00800000 |
34 | #define PVR0_USE_BTC 0x00400000 | ||
35 | #define PVR0_ENDI 0x00200000 | ||
34 | #define PVR0_VERSION_MASK 0x0000FF00 | 36 | #define PVR0_VERSION_MASK 0x0000FF00 |
35 | #define PVR0_USER1_MASK 0x000000FF | 37 | #define PVR0_USER1_MASK 0x000000FF |
36 | 38 | ||
@@ -38,9 +40,9 @@ struct pvr_s { | |||
38 | #define PVR1_USER2_MASK 0xFFFFFFFF | 40 | #define PVR1_USER2_MASK 0xFFFFFFFF |
39 | 41 | ||
40 | /* Configuration PVR masks */ | 42 | /* Configuration PVR masks */ |
41 | #define PVR2_D_OPB_MASK 0x80000000 | 43 | #define PVR2_D_OPB_MASK 0x80000000 /* or AXI */ |
42 | #define PVR2_D_LMB_MASK 0x40000000 | 44 | #define PVR2_D_LMB_MASK 0x40000000 |
43 | #define PVR2_I_OPB_MASK 0x20000000 | 45 | #define PVR2_I_OPB_MASK 0x20000000 /* or AXI */ |
44 | #define PVR2_I_LMB_MASK 0x10000000 | 46 | #define PVR2_I_LMB_MASK 0x10000000 |
45 | #define PVR2_INTERRUPT_IS_EDGE_MASK 0x08000000 | 47 | #define PVR2_INTERRUPT_IS_EDGE_MASK 0x08000000 |
46 | #define PVR2_EDGE_IS_POSITIVE_MASK 0x04000000 | 48 | #define PVR2_EDGE_IS_POSITIVE_MASK 0x04000000 |
@@ -63,8 +65,8 @@ struct pvr_s { | |||
63 | #define PVR2_OPCODE_0x0_ILL_MASK 0x00000040 | 65 | #define PVR2_OPCODE_0x0_ILL_MASK 0x00000040 |
64 | #define PVR2_UNALIGNED_EXC_MASK 0x00000020 | 66 | #define PVR2_UNALIGNED_EXC_MASK 0x00000020 |
65 | #define PVR2_ILL_OPCODE_EXC_MASK 0x00000010 | 67 | #define PVR2_ILL_OPCODE_EXC_MASK 0x00000010 |
66 | #define PVR2_IOPB_BUS_EXC_MASK 0x00000008 | 68 | #define PVR2_IOPB_BUS_EXC_MASK 0x00000008 /* or AXI */ |
67 | #define PVR2_DOPB_BUS_EXC_MASK 0x00000004 | 69 | #define PVR2_DOPB_BUS_EXC_MASK 0x00000004 /* or AXI */ |
68 | #define PVR2_DIV_ZERO_EXC_MASK 0x00000002 | 70 | #define PVR2_DIV_ZERO_EXC_MASK 0x00000002 |
69 | #define PVR2_FPU_EXC_MASK 0x00000001 | 71 | #define PVR2_FPU_EXC_MASK 0x00000001 |
70 | 72 | ||
@@ -208,6 +210,8 @@ struct pvr_s { | |||
208 | #define PVR_MMU_TLB_ACCESS(pvr) (pvr.pvr[11] & PVR11_MMU_TLB_ACCESS) | 210 | #define PVR_MMU_TLB_ACCESS(pvr) (pvr.pvr[11] & PVR11_MMU_TLB_ACCESS) |
209 | #define PVR_MMU_ZONES(pvr) (pvr.pvr[11] & PVR11_MMU_ZONES) | 211 | #define PVR_MMU_ZONES(pvr) (pvr.pvr[11] & PVR11_MMU_ZONES) |
210 | 212 | ||
213 | /* endian */ | ||
214 | #define PVR_ENDIAN(pvr) (pvr.pvr[0] & PVR0_ENDI) | ||
211 | 215 | ||
212 | int cpu_has_pvr(void); | 216 | int cpu_has_pvr(void); |
213 | void get_pvr(struct pvr_s *pvr); | 217 | void get_pvr(struct pvr_s *pvr); |