DebugAgentTimerLib.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /** @file
  2. Platform specific Debug Agent abstraction for timer used by the agent.
  3. The timer is used by the debugger to break into a running program.
  4. Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef __GDB_TIMER_LIB__
  8. #define __GDB_TIMER_LIB__
  9. /**
  10. Setup all the hardware needed for the debug agents timer.
  11. This function is used to set up debug environment. It may enable interrupts.
  12. **/
  13. VOID
  14. EFIAPI
  15. DebugAgentTimerIntialize (
  16. VOID
  17. );
  18. /**
  19. Set the period for the debug agent timer. Zero means disable the timer.
  20. @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.
  21. **/
  22. VOID
  23. EFIAPI
  24. DebugAgentTimerSetPeriod (
  25. IN UINT32 TimerPeriodMilliseconds
  26. );
  27. /**
  28. Perform End Of Interrupt for the debug agent timer. This is called in the
  29. interrupt handler after the interrupt has been processed.
  30. **/
  31. VOID
  32. EFIAPI
  33. DebugAgentTimerEndOfInterrupt (
  34. VOID
  35. );
  36. #endif