42 #define WATCHDOG_HOLDOFF_SECS 10 45 #define WATCHDOG_TIMEOUT_SECS ( 5 * 60 ) 48 #define WATCHDOG_CODE 0x6950584544454144ULL 51 #define WATCHDOG_DATA L"iPXE"; 66 DBGC2 (
timer,
"EFI holding off watchdog timer\n" );
76 DBGC (
timer,
"EFI could not set watchdog timer: %s\n",
114 .
name =
"efi_watchdog",
#define WATCHDOG_CODE
Watchdog code (to be logged on watchdog timeout)
EFI_BOOT_SERVICES * BootServices
A pointer to the EFI Boot Services Table.
struct arbelprm_rc_send_wqe rc
EFI_SET_WATCHDOG_TIMER SetWatchdogTimer
#define TICKS_PER_SEC
Number of ticks per second.
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
struct startup_fn efi_watchdog_startup_fn __startup_fn(STARTUP_EARLY)
Watchdog startup/shutdown function.
#define STARTUP_EARLY
Early startup.
#define WATCHDOG_TIMEOUT_SECS
Watchdog timeout (in seconds)
#define TIMER_INIT(expired_fn)
Initialise a static timer.
struct retry_timer efi_watchdog
Watchdog holdoff timer.
A startup/shutdown function.
#define __unused
Declare a variable or data structure as unused.
static void efi_watchdog_expired(struct retry_timer *timer, int over __unused)
Hold off watchdog timer.
#define WATCHDOG_HOLDOFF_SECS
Watchdog holdoff interval (in seconds)
char * strerror(int errno)
Retrieve string representation of error number.
EFI watchdog holdoff timer.
#define WATCHDOG_DATA
Watchdog data (to be logged on watchdog timeout)
void start_timer_fixed(struct retry_timer *timer, unsigned long timeout)
Start timer with a specified timeout.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
static void efi_watchdog_shutdown(int booting)
Disable watching when shutting down to boot an operating system.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint8_t data[48]
Additional event data.
EFI_SYSTEM_TABLE * efi_systab
#define NULL
NULL pointer (VOID *)