diff options
| author | Ian M. <ian@aptel.org> | 2026-09-11 04:25:45 +0000 |
|---|---|---|
| committer | Ian M. <ian@aptel.org> | 2026-09-11 04:25:45 +0000 |
| commit | 28b2d5ee87176e460322a283d3a90925d33d416a (patch) | |
| tree | 3887e444de4155f6eaf8b673bad5d013859172ab /head | |
| parent | 555d0e39ddc7057548d91e5d47a5d7b044392b3f (diff) | |
fwi: Add SetWatchdogTimer() wrapper
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'head')
| -rw-r--r-- | head/sboot/fwi.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <efi.h> +#include <efilib.h> + +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_ */ |
