Source code of Windows XP (NT5)
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.

71 lines
886 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. legacy.h
  5. Abstract:
  6. Author:
  7. Tom Brown (t-tbrown) 2001-06-11 - created file
  8. Environment:
  9. Kernel mode
  10. Notes:
  11. Revision History:
  12. --*/
  13. #ifndef _LEGACY_H
  14. #define _LEGACY_H
  15. #include "..\lib\processor.h"
  16. #define MAX_V_STEP 50 // mV
  17. extern ULONG NextTransitionThrottle; // Next state that a worker thread will transition to, or INVALID_THROTTLE if no worker thread is queued
  18. #define INVALID_THROTTLE MAXULONG
  19. VOID
  20. InitializeCPU();
  21. VOID
  22. IdentifyCPUVersion();
  23. NTSTATUS
  24. TransitionNow(
  25. IN ULONG Fid,
  26. IN BOOLEAN EnableFid,
  27. IN ULONG Vid,
  28. IN BOOLEAN EnableVid
  29. );
  30. NTSTATUS
  31. TransitionToState(
  32. IN PACPI_PSS_DESCRIPTOR Pss
  33. );
  34. NTSTATUS
  35. QueueTransition(
  36. IN PFDO_DATA DeviceExtension,
  37. IN ULONG NewState
  38. );
  39. #ifdef DBG
  40. VOID
  41. DebugShowCurrent();
  42. #endif
  43. #endif // _LEGACY_H