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.

62 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. xxtimer.h
  5. Abstract:
  6. This module contains definitions used by the HAL's timer-related
  7. functions
  8. Author:
  9. Eric Nelson (enelson) July 7, 2000
  10. Revision History:
  11. --*/
  12. #ifndef __XXTIMER_H__
  13. #define __XXTIMER_H__
  14. typedef
  15. ULONG
  16. (*PSTE_ROUTINE)( // (S)et (T)ime (I)ncrement
  17. IN ULONG DesiredIncrement
  18. );
  19. typedef
  20. VOID
  21. (*PSEP_ROUTINE)( // (S)tall (E)xecution (P)rocessor
  22. IN ULONG Microseconds
  23. );
  24. typedef
  25. VOID
  26. (*PCPC_ROUTINE)( // (C)alibrate (P)erformance (C)ounter
  27. IN LONG volatile *Number,
  28. IN ULONGLONG NewCount
  29. );
  30. typedef
  31. LARGE_INTEGER
  32. (*PQPC_ROUTINE)( // (Q)uery (P)erformance (C)ounter
  33. OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL
  34. );
  35. typedef struct _TIMER_FUNCTIONS {
  36. PSEP_ROUTINE StallExecProc;
  37. PCPC_ROUTINE CalibratePerfCount;
  38. PQPC_ROUTINE QueryPerfCount;
  39. PSTE_ROUTINE SetTimeIncrement;
  40. } TIMER_FUNCTIONS, *PTIMER_FUNCTIONS;
  41. VOID
  42. HalpSetTimerFunctions(
  43. IN PTIMER_FUNCTIONS TimerFunctions
  44. );
  45. #endif // __XXTIMER_H__