Lines Matching +full:timer +full:-
2 Timer Architectural Protocol as defined in PI Specification VOLUME 2 DXE
4 This code is used to provide the timer tick for the DXE core.
6 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
15 /// Global ID for the Timer Architectural Protocol
21 /// Declare forward reference for the Timer Architectural Protocol
26 This function of this type is called when a timer interrupt fires. This
28 of this type to be called for the timer interrupt, so it can know how much
29 time has passed. This information is used to signal timer based events.
31 @param Time Time since the last timer interrupt in 100 ns units. This will
32 typically be TimerPeriod, but if a timer interrupt is missed, and the
47 the timer interrupt fires. It also passes the amount of time since the last
50 returned. If the CPU does not support registering a timer interrupt handler,
55 register the NotifyFunction with the timer interrupt, then EFI_DEVICE_ERROR
59 @param NotifyFunction The function to call when a timer interrupt fires. This
61 register a handler for the timer interrupt, so it can know
63 signal timer based events. NULL will unregister the handler.
65 @retval EFI_SUCCESS The timer handler was registered.
66 @retval EFI_UNSUPPORTED The platform does not support timer interrupts.
71 @retval EFI_DEVICE_ERROR The timer handler could not be registered.
82 This function adjusts the period of timer interrupts to the value specified
83 by TimerPeriod. If the timer period is updated, then the selected timer
85 the timer hardware is not programmable, then EFI_UNSUPPORTED is returned.
86 If an error occurs while attempting to update the timer period, then the
87 timer hardware will be put back in its state prior to this call, and
88 EFI_DEVICE_ERROR is returned. If TimerPeriod is 0, then the timer interrupt
90 Instead, it must either turn off the timer hardware, or it must adjust the
91 interrupt controller so that a CPU interrupt is not generated when the timer
95 @param TimerPeriod The rate to program the timer interrupt in 100 nS units. If
96 the timer hardware is not programmable, then EFI_UNSUPPORTED is
97 returned. If the timer is programmable, then the timer period
98 will be rounded up to the nearest timer period that is supported
99 by the timer hardware. If TimerPeriod is set to 0, then the
100 timer interrupts will be disabled.
102 @retval EFI_SUCCESS The timer period was changed.
103 @retval EFI_UNSUPPORTED The platform cannot change the period of the timer interrupt.
104 @retval EFI_DEVICE_ERROR The timer period could not be changed due to a device error.
115 This function retrieves the period of timer interrupts in 100 ns units,
118 returned, then the timer is currently disabled.
121 @param TimerPeriod A pointer to the timer period to retrieve in 100 ns units. If
122 0 is returned, then the timer is currently disabled.
124 @retval EFI_SUCCESS The timer period was returned in TimerPeriod.
136 This function generates a soft timer interrupt. If the platform does not support soft
137 timer interrupts, then EFI_UNSUPPORTED is returned. Otherwise, EFI_SUCCESS is returned.
139 service, then a soft timer interrupt will be generated. If the timer interrupt is
141 registered handler should not be able to distinguish a hardware-generated timer
142 interrupt from a software-generated timer interrupt.
146 @retval EFI_SUCCESS The soft timer interrupt was generated.
147 …@retval EFI_UNSUPPORTED The platform does not support the generation of soft timer interrupt…
157 /// This protocol provides the services to initialize a periodic timer
158 /// interrupt, and to register a handler that is called each time the timer
160 /// periodic timer interrupt. When a timer interrupt occurs, the handler is
161 /// passed the amount of time that has passed since the previous timer