]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/LegacyMetronome/Metronome.h
Fix some errors detected by the GCC 4.4 compiler.
[mirror_edk2.git] / DuetPkg / LegacyMetronome / Metronome.h
CommitLineData
c69dd9df 1/*++\r
2\r
b1f700a8
HT
3Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
c69dd9df 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 LegacyMetronome.h\r
14\r
15Abstract:\r
16\r
17 Driver implementing the EFI 2.0 metronome protocol using the legacy PORT 61 \r
18 timer.\r
19\r
20--*/\r
21\r
22#ifndef _LEGACY_METRONOME_H\r
23#define _LEGACY_METRONOME_H\r
24\r
25//\r
26// Statements that include other files\r
27//\r
28#include <PiDxe.h>\r
29\r
c69dd9df 30#include <Protocol/Metronome.h>\r
31\r
32#include <Library/DebugLib.h>\r
33#include <Library/UefiBootServicesTableLib.h>\r
0f25cc14 34#include <Library/IoLib.h>\r
c69dd9df 35\r
36//\r
37// Private definitions\r
38//\r
39#define TICK_PERIOD 300\r
40#define REFRESH_PORT 0x61\r
41#define REFRESH_ON 0x10\r
42#define REFRESH_OFF 0x00\r
43#define TIMER1_CONTROL_PORT 0x43\r
44#define TIMER1_COUNT_PORT 0x41\r
45#define LOAD_COUNTER1_LSB 0x54\r
46#define COUNTER1_COUNT 0x12\r
47\r
48//\r
49// Function Prototypes\r
50//\r
51EFI_STATUS\r
52EFIAPI\r
53WaitForTick (\r
54 IN EFI_METRONOME_ARCH_PROTOCOL *This,\r
55 IN UINT32 TickNumber\r
56 )\r
57/*++\r
58\r
59Routine Description:\r
60\r
61 TODO: Add function description\r
62\r
63Arguments:\r
64\r
65 This - TODO: add argument description\r
66 TickNumber - TODO: add argument description\r
67\r
68Returns:\r
69\r
70 TODO: add return values\r
71\r
72--*/\r
73;\r
74\r
75#endif\r