]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Metronome/Metronome.h
Update the copyright notice format
[mirror_edk2.git] / MdeModulePkg / Universal / Metronome / Metronome.h
1 /** @file
2 Include file of Metronome driver.
3
4 Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _METRONOME_H_
16 #define _METRONOME_H_
17
18 #include <PiDxe.h>
19 #include <Protocol/Metronome.h>
20 #include <Library/UefiBootServicesTableLib.h>
21 #include <Library/TimerLib.h>
22 #include <Library/DebugLib.h>
23 #include <Library/UefiDriverEntryPoint.h>
24
25 /**
26 Waits for the specified number of ticks.
27
28 This function implements EFI_METRONOME_ARCH_PROTOCOL.WaitForTick().
29 The WaitForTick() function waits for the number of ticks specified by
30 TickNumber from a known time source in the platform. If TickNumber of
31 ticks are detected, then EFI_SUCCESS is returned. The actual time passed
32 between entry of this function and the first tick is between 0 and
33 TickPeriod 100 nS units. If you want to guarantee that at least TickPeriod
34 time has elapsed, wait for two ticks. This function waits for a hardware
35 event to determine when a tick occurs. It is possible for interrupt
36 processing, or exception processing to interrupt the execution of the
37 WaitForTick() function. Depending on the hardware source for the ticks, it
38 is possible for a tick to be missed. This function cannot guarantee that
39 ticks will not be missed. If a timeout occurs waiting for the specified
40 number of ticks, then EFI_TIMEOUT is returned.
41
42 @param This The EFI_METRONOME_ARCH_PROTOCOL instance.
43 @param TickNumber Number of ticks to wait.
44
45 @retval EFI_SUCCESS The wait for the number of ticks specified by TickNumber
46 succeeded.
47 @retval EFI_TIMEOUT A timeout occurred waiting for the specified number of ticks.
48
49 **/
50 EFI_STATUS
51 EFIAPI
52 WaitForTick (
53 IN EFI_METRONOME_ARCH_PROTOCOL *This,
54 IN UINT32 TickNumber
55 );
56
57 #endif