Loading...
Searching...
No Matches
Go to the documentation of this file.
11#define __stringify_1(x) #x
12#define __stringify(x) __stringify_1(x)
14#define mfspr(rn) ({unsigned long rval; \
15 asm volatile("mfspr %0," __stringify(rn) \
16 : "=r" (rval)); rval;})
23#define MMCR0_FC 0x80000000UL
24#define MMCR0_FCS 0x40000000UL
25#define MMCR0_KERNEL_DISABLE MMCR0_FCS
26#define MMCR0_FCP 0x20000000UL
27#define MMCR0_PROBLEM_DISABLE MMCR0_FCP
28#define MMCR0_FCM1 0x10000000UL
29#define MMCR0_FCM0 0x08000000UL
30#define MMCR0_PMXE 0x04000000UL
31#define MMCR0_FCECE 0x02000000UL
32#define MMCR0_TBEE 0x00400000UL
33#define MMCR0_PMC1CE 0x00008000UL
34#define MMCR0_PMCjCE 0x00004000UL
35#define MMCR0_TRIGGER 0x00002000UL
36#define MMCR0_PMAO 0x00000080UL
37#define MMCR0_SHRFC 0x00000040UL
38#define MMCR0_FC1_4 0x00000020UL
39#define MMCR0_FC5_6 0x00000010UL
40#define MMCR0_FCTI 0x00000008UL
41#define MMCR0_FCTA 0x00000004UL
42#define MMCR0_FCWAIT 0x00000002UL
43#define MMCR0_FCHV 0x00000001UL
45#define SPRN_MMCRA 0x312
46#define MMCRA_SIHV 0x10000000UL
47#define MMCRA_SIPR 0x08000000UL
48#define MMCRA_SAMPLE_ENABLE 0x00000001UL
62#define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF)
63#define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF)
65#define __is_processor(pv) (PVR_VER(mfspr(SPRN_PVR)) == (pv))
69#define PV_NORTHSTAR 0x0033
70#define PV_PULSAR 0x0034
71#define PV_POWER4 0x0035
72#define PV_ICESTAR 0x0036
73#define PV_SSTAR 0x0037
74#define PV_POWER4p 0x0038
76#define PV_POWER5 0x003A
77#define PV_POWER5p 0x003B
78#define PV_970FX 0x003C
79#define PV_POWER6 0x003E
80#define PV_POWER7 0x003F
83#define PV_970MP 0x0044
84#define PV_970GX 0x0045