TianoCore EDK2 master
Loading...
Searching...
No Matches
SetWatchdogTimer.c File Reference
#include "DxeMain.h"

Go to the source code of this file.

Macros

#define WATCHDOG_TIMER_CALIBRATE_PER_SECOND   10000000
 

Functions

EFI_STATUS EFIAPI CoreSetWatchdogTimer (IN UINTN Timeout, IN UINT64 WatchdogCode, IN UINTN DataSize, IN CHAR16 *WatchdogData OPTIONAL)
 

Detailed Description

UEFI Miscellaneous boot Services SetWatchdogTimer service implementation

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SetWatchdogTimer.c.

Macro Definition Documentation

◆ WATCHDOG_TIMER_CALIBRATE_PER_SECOND

#define WATCHDOG_TIMER_CALIBRATE_PER_SECOND   10000000

Definition at line 11 of file SetWatchdogTimer.c.

Function Documentation

◆ CoreSetWatchdogTimer()

EFI_STATUS EFIAPI CoreSetWatchdogTimer ( IN UINTN  Timeout,
IN UINT64  WatchdogCode,
IN UINTN  DataSize,
IN CHAR16 *WatchdogData  OPTIONAL 
)

Sets the system's watchdog timer.

Parameters
TimeoutThe number of seconds to set the watchdog timer to. A value of zero disables the timer.
WatchdogCodeThe numeric code to log on a watchdog timer timeout event. The firmware reserves codes 0x0000 to 0xFFFF. Loaders and operating systems may use other timeout codes.
DataSizeThe size, in bytes, of WatchdogData.
WatchdogDataA data buffer that includes a Null-terminated Unicode string, optionally followed by additional binary data. The string is a description that the call may use to further indicate the reason to be logged with a watchdog event.
Returns
EFI_SUCCESS Timeout has been set
EFI_NOT_AVAILABLE_YET WatchdogTimer is not available yet
EFI_UNSUPPORTED System does not have a timer (currently not used)
EFI_DEVICE_ERROR Could not complete due to hardware error

Definition at line 37 of file SetWatchdogTimer.c.