1
0

CPUIdLib.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /****************************************************************************
  2. *
  3. * Module Title : CPUIdLib.h
  4. *
  5. * Description : CPU specific definitions.
  6. *
  7. ****************************************************************************/
  8. #ifndef __INC_CPUIDLIB_H
  9. #define __INC_CPUIDLIB_H
  10. /****************************************************************************
  11. * Typedefs
  12. ****************************************************************************/
  13. typedef enum PROCTYPE
  14. {
  15. X86 = 0, /* 486, Pentium plain, or any other x86 compatible */
  16. PMMX = 1, /* Pentium with MMX */
  17. PPRO = 2, /* Pentium Pro */
  18. PII = 3, /* Pentium II */
  19. C6X86 = 4,
  20. C6X86MX = 5,
  21. AMDK63D = 6,
  22. AMDK6 = 7,
  23. AMDK5 = 8,
  24. MACG3 = 9,
  25. MAC68K = 10,
  26. XMM = 11, /* SIMD instructions */
  27. WMT = 12, /* Willamette Processor */
  28. SpecialProc = -1 /* Will NEVER be returned by CPUID, function dependent meaning */
  29. } PROCTYPE;
  30. /****************************************************************************
  31. * Exports
  32. ****************************************************************************/
  33. /****************************************************************************
  34. *
  35. * ROUTINE : findCPUId
  36. *
  37. * INPUTS : None
  38. *
  39. * OUTPUTS : None.
  40. *
  41. * RETURNS : PROCTYPE: processor type.
  42. *
  43. * FUNCTION : Returns type of CPU in your system.
  44. *
  45. * SPECIAL NOTES : None.
  46. *
  47. ****************************************************************************/
  48. #ifdef __cplusplus /* this ifdef only works correctly for Microsoft visual C compilers */
  49. extern "C" PROCTYPE findCPUId ( void );
  50. #else
  51. extern PROCTYPE findCPUId ( void );
  52. #endif
  53. #endif