Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.0 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995,1996 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. /*****************************************************************************
  15. *
  16. * cpuvsn.h
  17. *
  18. * Description:
  19. * Interface to the CPU version functionality. This is based on CPUVSN.H
  20. * in MRV.
  21. *
  22. * Routines:
  23. *
  24. * Data:
  25. * ProcessorVersionInitialized - if initialized
  26. * MMxVersion - true if running on an MMX system
  27. * P6Version - true if running on a P6
  28. */
  29. /* $Header: R:\h26x\h26x\src\common\ccpuvsn.h_v 1.2 10 Jul 1996 08:26:22 SCDAY $
  30. * $Log: R:\h26x\h26x\src\common\ccpuvsn.h_v $
  31. ;//
  32. ;// Rev 1.2 10 Jul 1996 08:26:22 SCDAY
  33. ;// H261 Quartz merge
  34. ;//
  35. ;// Rev 1.1 27 Dec 1995 14:11:48 RMCKENZX
  36. ;//
  37. ;// Added copyright notice
  38. */
  39. #ifndef __CPUVSN_H__
  40. #define __CPUVSN_H__
  41. /* This file provides global variables detailing which CPU is running the code.
  42. */
  43. extern int ProcessorVersionInitialized;
  44. extern int P6Version;
  45. extern int MMxVersion;
  46. /* Processor choices.
  47. */
  48. #define TARGET_PROCESSOR_PENTIUM 0
  49. #define TARGET_PROCESSOR_P6 1
  50. #define TARGET_PROCESSOR_PENTIUM_MMX 2
  51. #define TARGET_PROCESSOR_P6_MMX 3
  52. #ifdef QUARTZ
  53. void FAR __cdecl InitializeProcessorVersion(int nOn486); // Selects based on hardware
  54. DWORD __cdecl SelectProcessor (DWORD dwTarget); // Selects based on the target
  55. #else
  56. void FAR InitializeProcessorVersion(int nOn486); // Selects based on hardware
  57. DWORD SelectProcessor (DWORD dwTarget); // Selects based on the target
  58. #endif
  59. #endif