1 /* attempt to consolidate cpu attributes */
2 struct cpu_dev {
3 	void		(*c_early_init)(struct cpuinfo_x86 *c);
4 	void		(*c_init)(struct cpuinfo_x86 * c);
5 };
6 
7 extern const struct cpu_dev intel_cpu_dev, amd_cpu_dev, centaur_cpu_dev,
8     shanghai_cpu_dev, hygon_cpu_dev;
9 
10 extern bool_t opt_arat;
11 extern unsigned int opt_cpuid_mask_ecx, opt_cpuid_mask_edx;
12 extern unsigned int opt_cpuid_mask_xsave_eax;
13 extern unsigned int opt_cpuid_mask_ext_ecx, opt_cpuid_mask_ext_edx;
14 
15 extern int get_model_name(struct cpuinfo_x86 *c);
16 extern void display_cacheinfo(struct cpuinfo_x86 *c);
17 
18 extern void detect_ht(struct cpuinfo_x86 *c);
19 extern bool detect_extended_topology(struct cpuinfo_x86 *c);
20 
21 void early_init_amd(struct cpuinfo_x86 *c);
22 void amd_log_freq(const struct cpuinfo_x86 *c);
23