diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/cputable.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h index d8798f31b360..ef6ead34a773 100644 --- a/include/asm-powerpc/cputable.h +++ b/include/asm-powerpc/cputable.h | |||
@@ -27,10 +27,17 @@ | |||
27 | * via the mkdefs mechanism. | 27 | * via the mkdefs mechanism. |
28 | */ | 28 | */ |
29 | struct cpu_spec; | 29 | struct cpu_spec; |
30 | struct op_powerpc_model; | ||
31 | 30 | ||
32 | typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec); | 31 | typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec); |
33 | 32 | ||
33 | enum powerpc_oprofile_type { | ||
34 | INVALID = 0, | ||
35 | RS64 = 1, | ||
36 | POWER4 = 2, | ||
37 | G4 = 3, | ||
38 | BOOKE = 4, | ||
39 | }; | ||
40 | |||
34 | struct cpu_spec { | 41 | struct cpu_spec { |
35 | /* CPU is matched via (PVR & pvr_mask) == pvr_value */ | 42 | /* CPU is matched via (PVR & pvr_mask) == pvr_value */ |
36 | unsigned int pvr_mask; | 43 | unsigned int pvr_mask; |
@@ -56,7 +63,7 @@ struct cpu_spec { | |||
56 | char *oprofile_cpu_type; | 63 | char *oprofile_cpu_type; |
57 | 64 | ||
58 | /* Processor specific oprofile operations */ | 65 | /* Processor specific oprofile operations */ |
59 | struct op_powerpc_model *oprofile_model; | 66 | enum powerpc_oprofile_type oprofile_type; |
60 | }; | 67 | }; |
61 | 68 | ||
62 | extern struct cpu_spec *cur_cpu_spec; | 69 | extern struct cpu_spec *cur_cpu_spec; |