]>
Commit | Line | Data |
---|---|---|
c69dd9df | 1 | /*++\r |
2 | \r | |
b1f700a8 HT |
3 | Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
c69dd9df | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | LegacyMetronome.h\r | |
14 | \r | |
15 | Abstract:\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 | |
51 | EFI_STATUS\r | |
52 | EFIAPI\r | |
53 | WaitForTick (\r | |
54 | IN EFI_METRONOME_ARCH_PROTOCOL *This,\r | |
55 | IN UINT32 TickNumber\r | |
56 | )\r | |
57 | /*++\r | |
58 | \r | |
59 | Routine Description:\r | |
60 | \r | |
61 | TODO: Add function description\r | |
62 | \r | |
63 | Arguments:\r | |
64 | \r | |
65 | This - TODO: add argument description\r | |
66 | TickNumber - TODO: add argument description\r | |
67 | \r | |
68 | Returns:\r | |
69 | \r | |
70 | TODO: add return values\r | |
71 | \r | |
72 | --*/\r | |
73 | ;\r | |
74 | \r | |
75 | #endif\r |