]>
Commit | Line | Data |
---|---|---|
949f388f | 1 | /*++ @file\r |
2 | Emu Emulation Metronome Architectural Protocol Driver as defined in DXE CIS\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
5 | Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\r | |
6 | This program and the accompanying materials \r | |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _EMU_THUNK_METRONOME_H_\r | |
17 | #define _EMU_THUNK_METRONOME_H_\r | |
18 | \r | |
19 | #include <PiDxe.h>\r | |
20 | \r | |
21 | #include <Library/BaseLib.h>\r | |
22 | #include <Library/DebugLib.h>\r | |
23 | #include <Library/UefiLib.h>\r | |
24 | #include <Library/UefiDriverEntryPoint.h>\r | |
25 | #include <Library/MemoryAllocationLib.h>\r | |
26 | #include <Library/UefiBootServicesTableLib.h>\r | |
27 | #include <Library/EmuThunkLib.h>\r | |
28 | \r | |
29 | #include <Protocol/Metronome.h>\r | |
30 | \r | |
31 | \r | |
32 | \r | |
33 | //\r | |
34 | // Period of on tick in 100 nanosecond units\r | |
35 | //\r | |
36 | #define TICK_PERIOD 2000\r | |
37 | \r | |
38 | //\r | |
39 | // Function Prototypes\r | |
40 | //\r | |
41 | \r | |
42 | EFI_STATUS\r | |
43 | EFIAPI\r | |
44 | EmuMetronomeDriverInitialize (\r | |
45 | IN EFI_HANDLE ImageHandle,\r | |
46 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
47 | );\r | |
48 | \r | |
49 | EFI_STATUS\r | |
50 | EFIAPI\r | |
51 | EmuMetronomeDriverWaitForTick (\r | |
52 | IN EFI_METRONOME_ARCH_PROTOCOL *This,\r | |
53 | IN UINT32 TickNumber\r | |
54 | );\r | |
55 | \r | |
56 | #endif\r |