2 Emu Emulation Metronome Architectural Protocol Driver as defined in DXE CIS
4 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
5 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _EMU_THUNK_METRONOME_H_
17 #define _EMU_THUNK_METRONOME_H_
21 #include <Library/BaseLib.h>
22 #include <Library/DebugLib.h>
23 #include <Library/UefiLib.h>
24 #include <Library/UefiDriverEntryPoint.h>
25 #include <Library/MemoryAllocationLib.h>
26 #include <Library/UefiBootServicesTableLib.h>
27 #include <Library/EmuThunkLib.h>
29 #include <Protocol/Metronome.h>
34 // Period of on tick in 100 nanosecond units
36 #define TICK_PERIOD 2000
39 // Function Prototypes
44 EmuMetronomeDriverInitialize (
45 IN EFI_HANDLE ImageHandle
,
46 IN EFI_SYSTEM_TABLE
*SystemTable
51 EmuMetronomeDriverWaitForTick (
52 IN EFI_METRONOME_ARCH_PROTOCOL
*This
,