cpu.h 709 B

123456789101112131415161718192021222324252627282930
  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);