TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
void | libspdm_sleep (uint64_t milliseconds) |
void | libspdm_sleep_in_us (uint64_t microseconds) |
bool | libspdm_start_watchdog (uint32_t session_id, uint16_t seconds) |
bool | libspdm_stop_watchdog (uint32_t session_id) |
bool | libspdm_reset_watchdog (uint32_t session_id) |
EDKII Device Security library for SPDM device. It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PlatformLibWrapper.c.
bool libspdm_reset_watchdog | ( | uint32_t | session_id | ) |
Reset the watchdog in heartbeat response.
session_id | Indicate the SPDM session ID. |
Definition at line 80 of file PlatformLibWrapper.c.
void libspdm_sleep | ( | uint64_t | milliseconds | ) |
Suspends the execution of the current thread until the time-out interval elapses.
milliseconds | The time interval for which execution is to be suspended, in milliseconds. |
Definition at line 21 of file PlatformLibWrapper.c.
void libspdm_sleep_in_us | ( | uint64_t | microseconds | ) |
Suspends the execution of the current thread until the time-out interval elapses.
microseconds | The time interval for which execution is to be suspended, in milliseconds. |
Definition at line 35 of file PlatformLibWrapper.c.
bool libspdm_start_watchdog | ( | uint32_t | session_id, |
uint16_t | seconds | ||
) |
If no heartbeat arrives in seconds, the watchdog timeout event should terminate the session.
session_id | Indicate the SPDM session ID. |
seconds | heartbeat period, in seconds. |
Definition at line 51 of file PlatformLibWrapper.c.
bool libspdm_stop_watchdog | ( | uint32_t | session_id | ) |
stop watchdog.
session_id | Indicate the SPDM session ID. |
Definition at line 66 of file PlatformLibWrapper.c.