/arch/i386/kernel/cpu/cpu.h

https://bitbucket.org/evzijst/gittest · C Header · 30 lines · 18 code · 10 blank · 2 comment · 0 complexity · a08faf1ffb5f04885d49f8b38829505f MD5 · raw file

  1. struct cpu_model_info {
  2. int vendor;
  3. int family;
  4. char *model_names[16];
  5. };
  6. /* attempt to consolidate cpu attributes */
  7. struct cpu_dev {
  8. char * c_vendor;
  9. /* some have two possibilities for cpuid string */
  10. char * c_ident[2];
  11. struct cpu_model_info c_models[4];
  12. void (*c_init)(struct cpuinfo_x86 * c);
  13. void (*c_identify)(struct cpuinfo_x86 * c);
  14. unsigned int (*c_size_cache)(struct cpuinfo_x86 * c, unsigned int size);
  15. };
  16. extern struct cpu_dev * cpu_devs [X86_VENDOR_NUM];
  17. extern int get_model_name(struct cpuinfo_x86 *c);
  18. extern void display_cacheinfo(struct cpuinfo_x86 *c);
  19. extern void generic_identify(struct cpuinfo_x86 * c);
  20. extern void early_intel_workaround(struct cpuinfo_x86 *c);