hlp.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*++
  2. Copyright (c) 2012 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. hlp.h
  5. Abstract:
  6. This header contains internal definitions for the hardware layer library.
  7. Author:
  8. Evan Green 28-Oct-2012
  9. --*/
  10. //
  11. // ------------------------------------------------------------------- Includes
  12. //
  13. //
  14. // ---------------------------------------------------------------- Definitions
  15. //
  16. //
  17. // Define the amount of time to wait for a system reset to take effect in
  18. // microseconds before moving on.
  19. //
  20. #define RESET_SYSTEM_STALL (5 * MICROSECONDS_PER_SECOND)
  21. //
  22. // ------------------------------------------------------ Data Type Definitions
  23. //
  24. //
  25. // -------------------------------------------------------------------- Globals
  26. //
  27. //
  28. // -------------------------------------------------------- Function Prototypes
  29. //
  30. KSTATUS
  31. HlpArchResetSystem (
  32. SYSTEM_RESET_TYPE ResetType
  33. );
  34. /*++
  35. Routine Description:
  36. This routine resets the system.
  37. Arguments:
  38. ResetType - Supplies the desired reset type. If the desired reset type is
  39. not supported, a cold reset will be attempted.
  40. Return Value:
  41. Does not return on success, the system resets.
  42. STATUS_NOT_SUPPORTED if the system cannot be reset.
  43. STATUS_UNSUCCESSFUL if the system did not reset.
  44. --*/