Home | History | Annotate | Download | only in TimerDxe

Lines Matching refs:Timer

2   Template for Timer Architecture Protocol driver of the ARM flavor

28 #include <Protocol/Timer.h>
34 // The notification function to call on every timer interrupt.
38 // The current period of the timer interrupt
80 // DXE core uses this callback for the EFI timer tick. The DXE core uses locks
82 // to make sure TPL level is set to TPL_HIGH while we are handling the timer tick.
90 // Clear all timer interrupts
101 the timer interrupt fires. It also passes the amount of time since the last
104 returned. If the CPU does not support registering a timer interrupt handler,
109 register the NotifyFunction with the timer interrupt, then EFI_DEVICE_ERROR
113 @param NotifyFunction The function to call when a timer interrupt fires. This
115 register a handler for the timer interrupt, so it can know
117 signal timer based events. NULL will unregister the handler.
118 @retval EFI_SUCCESS The timer handler was registered.
119 @retval EFI_UNSUPPORTED The platform does not support timer interrupts.
124 @retval EFI_DEVICE_ERROR The timer handler could not be registered.
149 This function adjusts the period of timer interrupts to the value specified
150 by TimerPeriod. If the timer period is updated, then the selected timer
152 the timer hardware is not programmable, then EFI_UNSUPPORTED is returned.
153 If an error occurs while attempting to update the timer period, then the
154 timer hardware will be put back in its state prior to this call, and
155 EFI_DEVICE_ERROR is returned. If TimerPeriod is 0, then the timer interrupt
157 Instead, it must either turn off the timer hardware, or it must adjust the
158 interrupt controller so that a CPU interrupt is not generated when the timer
162 @param TimerPeriod The rate to program the timer interrupt in 100 nS units. If
163 the timer hardware is not programmable, then EFI_UNSUPPORTED is
164 returned. If the timer is programmable, then the timer period
165 will be rounded up to the nearest timer period that is supported
166 by the timer hardware. If TimerPeriod is set to 0, then the
167 timer interrupts will be disabled.
170 @retval EFI_SUCCESS The timer period was changed.
171 @retval EFI_UNSUPPORTED The platform cannot change the period of the timer interrupt.
172 @retval EFI_DEVICE_ERROR The timer period could not be changed due to a device error.
192 // Calculate required timer count
210 // Save the new timer period
218 This function retrieves the period of timer interrupts in 100 ns units,
221 returned, then the timer is currently disabled.
224 @param TimerPeriod A pointer to the timer period to retrieve in 100 ns units. If
225 0 is returned, then the timer is currently disabled.
228 @retval EFI_SUCCESS The timer period was returned in TimerPeriod.
248 This function generates a soft timer interrupt. If the platform does not support soft
249 timer interrupts, then EFI_UNSUPPORTED is returned. Otherwise, EFI_SUCCESS is returned.
251 service, then a soft timer interrupt will be generated. If the timer interrupt is
253 registered handler should not be able to distinguish a hardware-generated timer
254 interrupt from a software-generated timer interrupt.
258 @retval EFI_SUCCESS The soft timer interrupt was generated.
259 @retval EFI_UNSUPPORTED The platform does not support the generation of soft timer interrupts.
273 Interface stucture for the Timer Architectural Protocol.
276 This protocol provides the services to initialize a periodic timer
277 interrupt, and to register a handler that is called each time the timer
279 periodic timer interrupt. When a timer interrupt occurs, the handler is
280 passed the amount of time that has passed since the previous timer
285 timer interrupt fires. TimerPeriod defines the minimum
286 time between timer interrupts, so TimerPeriod will also
291 Sets the period of the timer interrupt in 100 nS units.
293 If this function is supported, then the timer period will
294 be rounded up to the nearest supported timer period.
298 Retrieves the period of the timer interrupt in 100 nS units.
301 Generates a soft timer interrupt that simulates the firing of
302 the timer interrupt. This service can be used to invoke the registered handler if the timer interrupt has been masked for
315 Initialize the state information for the Timer Architectural Protocol and
316 the Timer Debug support protocol that allows the debugger to break into a
342 // Set up the timer registers
350 // Disable the timer
359 // Turn on the functional clock for Timer
362 // Set up default timer
366 // Install the Timer Architectural Protocol onto a new handle