]>
Commit | Line | Data |
---|---|---|
de4c8a30 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
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 | \r | |
14 | WatchDogTimer.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Generic watchdog timer implemenetation using EFI APIs\r | |
19 | \r | |
20 | Revision History\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _WATCHDOG_TIMER_H_\r | |
25 | #define _WATCHDOG_TIMER_H_\r | |
26 | \r | |
ba237732 | 27 | \r |
ed7748fe | 28 | \r |
ba237732 A |
29 | #include <PiDxe.h>\r |
30 | #include <Library/DebugLib.h>\r | |
31 | #include <Library/UefiDriverEntryPoint.h>\r | |
32 | #include <Library/ReportStatusCodeLib.h>\r | |
33 | #include <Library/UefiBootServicesTableLib.h>\r | |
34 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
35 | #include <Library/PcdLib.h>\r | |
36 | #include <Protocol/WatchDogTimer.h>\r | |
37 | \r | |
38 | \r | |
de4c8a30 | 39 | //\r |
40 | // Function Prototypes\r | |
41 | //\r | |
42 | EFI_STATUS\r | |
43 | EFIAPI\r | |
44 | WatchdogTimerDriverRegisterHandler (\r | |
45 | IN EFI_WATCHDOG_TIMER_ARCH_PROTOCOL *This,\r | |
46 | IN EFI_WATCHDOG_TIMER_NOTIFY NotifyFunction\r | |
ba237732 | 47 | );\r |
de4c8a30 | 48 | \r |
49 | EFI_STATUS\r | |
50 | EFIAPI\r | |
51 | WatchdogTimerDriverSetTimerPeriod (\r | |
52 | IN EFI_WATCHDOG_TIMER_ARCH_PROTOCOL *This,\r | |
53 | IN UINT64 TimerPeriod\r | |
ba237732 | 54 | );\r |
de4c8a30 | 55 | \r |
56 | EFI_STATUS\r | |
57 | EFIAPI\r | |
58 | WatchdogTimerDriverGetTimerPeriod (\r | |
59 | IN EFI_WATCHDOG_TIMER_ARCH_PROTOCOL *This,\r | |
60 | IN UINT64 *TimerPeriod\r | |
ba237732 | 61 | );\r |
de4c8a30 | 62 | \r |
63 | EFI_STATUS\r | |
64 | EFIAPI\r | |
65 | WatchdogTimerDriverInitialize (\r | |
66 | IN EFI_HANDLE ImageHandle,\r | |
67 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
ba237732 | 68 | );\r |
de4c8a30 | 69 | \r |
70 | #endif\r |