VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Metronome/Metronome.h@ 58459

Last change on this file since 58459 was 48674, checked in by vboxsync, 11 years ago

EFI: Export newly imported tinaocore UEFI sources to OSE.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1/** @file
2 Include file of Metronome driver.
3
4Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
5This program and the accompanying materials
6are licensed and made available under the terms and conditions of the BSD License
7which accompanies this distribution. The full text of the license may be found at
8http://opensource.org/licenses/bsd-license.php
9
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11WITHOUT 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**/
50EFI_STATUS
51EFIAPI
52WaitForTick (
53 IN EFI_METRONOME_ARCH_PROTOCOL *This,
54 IN UINT32 TickNumber
55 );
56
57#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette