From 28b2d5ee87176e460322a283d3a90925d33d416a Mon Sep 17 00:00:00 2001 From: "Ian M." Date: Fri, 11 Sep 2026 04:25:45 +0000 Subject: fwi: Add SetWatchdogTimer() wrapper Signed-off-by: Ian M. --- head/sboot/fwi.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 head/sboot/fwi.h (limited to 'head') diff --git a/head/sboot/fwi.h b/head/sboot/fwi.h new file mode 100644 index 0000000..033f8a6 --- /dev/null +++ b/head/sboot/fwi.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2026, Apollo Telephone Laboratories. + * Provided under the BSD-3 clause. + */ + +#ifndef _SBOOT_FWI_H_ +#define _SBOOT_FWI_H_ 1 + +#include +#include + +static inline EFI_STATUS +FwiSetWatchdogTimer( + IN UINTN Timeout, IN UINT64 WatchdogCode, + IN UINTN DataSize, IN CHAR16 *WatchdogData) +{ + return uefi_call_wrapper( + gBS->SetWatchdogTimer, + 4, + Timeout, + WatchdogCode, + DataSize, + WatchdogData + ); +} + +#endif /* !_SBOOT_FWI_H_ */ -- cgit v1.2.3