Home | History | Annotate | Download | only in TimerDxe

Lines Matching refs:Timer

2   Timer Architecture Protocol driver of the ARM flavor

30 #include <Protocol/Timer.h>
33 // The notification function to call on every timer interrupt.
37 // The current period of the timer interrupt
39 // The latest Timer Tick calculated for mTimerPeriod
41 // Number of elapsed period since the last Timer interrupt
49 the timer interrupt fires. It also passes the amount of time since the last
52 returned. If the CPU does not support registering a timer interrupt handler,
57 register the NotifyFunction with the timer interrupt, then EFI_DEVICE_ERROR
61 @param NotifyFunction The function to call when a timer interrupt fires. This
63 register a handler for the timer interrupt, so it can know
65 signal timer based events. NULL will unregister the handler.
66 @retval EFI_SUCCESS The timer handler was registered.
67 @retval EFI_UNSUPPORTED The platform does not support timer interrupts.
72 @retval EFI_DEVICE_ERROR The timer handler could not be registered.
96 Disable the timer
110 This function adjusts the period of timer interrupts to the value specified
111 by TimerPeriod. If the timer period is updated, then the selected timer
113 the timer hardware is not programmable, then EFI_UNSUPPORTED is returned.
114 If an error occurs while attempting to update the timer period, then the
115 timer hardware will be put back in its state prior to this call, and
116 EFI_DEVICE_ERROR is returned. If TimerPeriod is 0, then the timer interrupt
118 Instead, it must either turn off the timer hardware, or it must adjust the
119 interrupt controller so that a CPU interrupt is not generated when the timer
123 @param TimerPeriod The rate to program the timer interrupt in 100 nS units. If
124 the timer hardware is not programmable, then EFI_UNSUPPORTED is
125 returned. If the timer is programmable, then the timer period
126 will be rounded up to the nearest timer period that is supported
127 by the timer hardware. If TimerPeriod is set to 0, then the
128 timer interrupts will be disabled.
131 @retval EFI_SUCCESS The timer period was changed.
132 @retval EFI_UNSUPPORTED The platform cannot change the period of the timer interrupt.
133 @retval EFI_DEVICE_ERROR The timer period could not be changed due to a device error.
147 // Always disable the timer
167 // Get value of the current timer
172 // Enable the timer
175 // Save the new timer period
185 This function retrieves the period of timer interrupts in 100 ns units,
188 returned, then the timer is currently disabled.
191 @param TimerPeriod A pointer to the timer period to retrieve in 100 ns units. If
192 0 is returned, then the timer is currently disabled.
195 @retval EFI_SUCCESS The timer period was returned in TimerPeriod.
215 This function generates a soft timer interrupt. If the platform does not support soft
216 timer interrupts, then EFI_UNSUPPORTED is returned. Otherwise, EFI_SUCCESS is returned.
218 service, then a soft timer interrupt will be generated. If the timer interrupt is
220 registered handler should not be able to distinguish a hardware-generated timer
221 interrupt from a software-generated timer interrupt.
225 @retval EFI_SUCCESS The soft timer interrupt was generated.
226 @retval EFI_UNSUPPORTED The platform does not support the generation of soft timer interrupts.
239 Interface structure for the Timer Architectural Protocol.
242 This protocol provides the services to initialize a periodic timer
243 interrupt, and to register a handler that is called each time the timer
245 periodic timer interrupt. When a timer interrupt occurs, the handler is
246 passed the amount of time that has passed since the previous timer
251 timer interrupt fires. TimerPeriod defines the minimum
252 time between timer interrupts, so TimerPeriod will also
257 Sets the period of the timer interrupt in 100 nS units.
259 If this function is supported, then the timer period will
260 be rounded up to the nearest supported timer period.
264 Retrieves the period of the timer interrupt in 100 nS units.
267 Generates a soft timer interrupt that simulates the firing of
268 the timer interrupt. This service can be used to invoke the registered handler if the timer interrupt has been masked for
304 // DXE core uses this callback for the EFI timer tick. The DXE core uses locks
306 // to make sure TPL level is set to TPL_HIGH while we are handling the timer tick.
310 // Check if the timer interrupt is active
321 // Reload the Timer
343 // Enable timer interrupts
351 Initialize the state information for the Timer Architectural Protocol and
352 the Timer Debug support protocol that allows the debugger to break into a
376 DEBUG ((EFI_D_ERROR, "ARM Architectural Timer is not available in the CPU, hence cann't use this Driver \n"));
384 // Disable the timer
395 // timer PPI
400 // The hypervisor timer interrupt may be omitted by implementations that
415 // Set up default timer
419 // Install the Timer Architectural Protocol onto a new handle
427 // Everything is ready, unmask and enable timer interrupts