cpu.h (df9b42963f2d010ae3163a894ce22cf6b27cd344) | cpu.h (09dc68d958c67c76cf672ec78b7391af453010f8) |
---|---|
1#ifndef ARCH_X86_CPU_H 2#define ARCH_X86_CPU_H 3 | 1#ifndef ARCH_X86_CPU_H 2#define ARCH_X86_CPU_H 3 |
4struct cpu_model_info { 5 int vendor; 6 int family; 7 const char *model_names[16]; 8}; 9 | |
10/* attempt to consolidate cpu attributes */ 11struct cpu_dev { 12 const char *c_vendor; 13 14 /* some have two possibilities for cpuid string */ 15 const char *c_ident[2]; 16 | 4/* attempt to consolidate cpu attributes */ 5struct cpu_dev { 6 const char *c_vendor; 7 8 /* some have two possibilities for cpuid string */ 9 const char *c_ident[2]; 10 |
17 struct cpu_model_info c_models[4]; 18 | |
19 void (*c_early_init)(struct cpuinfo_x86 *); 20 void (*c_bsp_init)(struct cpuinfo_x86 *); 21 void (*c_init)(struct cpuinfo_x86 *); 22 void (*c_identify)(struct cpuinfo_x86 *); 23 void (*c_detect_tlb)(struct cpuinfo_x86 *); | 11 void (*c_early_init)(struct cpuinfo_x86 *); 12 void (*c_bsp_init)(struct cpuinfo_x86 *); 13 void (*c_init)(struct cpuinfo_x86 *); 14 void (*c_identify)(struct cpuinfo_x86 *); 15 void (*c_detect_tlb)(struct cpuinfo_x86 *); |
24 unsigned int (*c_size_cache)(struct cpuinfo_x86 *, unsigned int); | |
25 int c_x86_vendor; | 16 int c_x86_vendor; |
17#ifdef CONFIG_X86_32 18 /* Optional vendor specific routine to obtain the cache size. */ 19 unsigned int (*legacy_cache_size)(struct cpuinfo_x86 *, 20 unsigned int); 21 22 /* Family/stepping-based lookup table for model names. */ 23 struct legacy_cpu_model_info { 24 int family; 25 const char *model_names[16]; 26 } legacy_models[5]; 27#endif |
|
26}; 27 28struct _tlb_table { 29 unsigned char descriptor; 30 char tlb_type; 31 unsigned int entries; 32 /* unsigned int ways; */ 33 char info[128]; --- 13 unchanged lines hidden --- | 28}; 29 30struct _tlb_table { 31 unsigned char descriptor; 32 char tlb_type; 33 unsigned int entries; 34 /* unsigned int ways; */ 35 char info[128]; --- 13 unchanged lines hidden --- |